Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MyLookAndFeel.h 2.7KB

11 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCETICE project - Copyright 2008 by Lucio Asnaghi.
  4. JUCETICE is based around the JUCE library - "Jules' Utility Class Extensions"
  5. Copyright 2008 by Julian Storer.
  6. ------------------------------------------------------------------------------
  7. JUCE and JUCETICE can be redistributed and/or modified under the terms of
  8. the GNU Lesser General Public License, as published by the Free Software
  9. Foundation; either version 2 of the License, or (at your option) any later
  10. version.
  11. JUCE and JUCETICE are distributed in the hope that they will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public License
  16. along with JUCE and JUCETICE; if not, visit www.gnu.org/licenses or write to
  17. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  18. Boston, MA 02111-1307 USA
  19. ==============================================================================
  20. @author rockhardbuns
  21. @tweaker Lucio Asnaghi
  22. ==============================================================================
  23. */
  24. #ifndef __JUCETICE_VEXMYLOOKANDFEEL_HEADER__
  25. #define __JUCETICE_VEXMYLOOKANDFEEL_HEADER__
  26. #ifndef CARLA_EXPORT
  27. #define CARLA_EXPORT
  28. #endif
  29. #ifdef CARLA_EXPORT
  30. #include "juce_gui_basics.h"
  31. #else
  32. #include "../StandardHeader.h"
  33. #endif
  34. #include "../resources/Resources.h"
  35. class MyLookAndFeel : public LookAndFeel_V2
  36. {
  37. public:
  38. MyLookAndFeel();
  39. ~MyLookAndFeel();
  40. Font getComboBoxFont (ComboBox& box);
  41. Font getPopupMenuFont();
  42. void getIdealPopupMenuItemSize (const String& text,
  43. const bool isSeparator,
  44. int standardMenuItemHeight,
  45. int& idealWidth,
  46. int& idealHeight);
  47. void drawToggleButton (Graphics& g,
  48. ToggleButton& button,
  49. bool isMouseOverButton,
  50. bool isButtonDown);
  51. void drawRotarySlider (Graphics& g,
  52. int x, int y,
  53. int width, int height,
  54. float sliderPosProportional,
  55. const float rotaryStartAngle,
  56. const float rotaryEndAngle,
  57. Slider& slider);
  58. public:
  59. Font* Topaz;
  60. };
  61. #endif