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.

46 lines
1.3KB

  1. /*
  2. * dRowLookAndFeel.h
  3. *
  4. * Created by David Rowland on 23/01/2009.
  5. * Copyright 2009 dRowAudio. All rights reserved.
  6. *
  7. */
  8. #ifndef _DROWLOOKANDFEEL_H_
  9. #define _DROWLOOKANDFEEL_H_
  10. #include "includes.h"
  11. class dRowLookAndFeel : public LookAndFeel_V2
  12. {
  13. public:
  14. /**
  15. Draws a shiny, rounded-top knob rotary slider.
  16. */
  17. virtual void drawRotarySlider (Graphics& g,
  18. int x, int y,
  19. int width, int height,
  20. float sliderPosProportional,
  21. const float rotaryStartAngle,
  22. const float rotaryEndAngle,
  23. Slider& slider) override;
  24. /**
  25. Draws a label.
  26. If the label's background is not transparent then it will draw a 3D label.
  27. */
  28. virtual void drawLabel (Graphics& g, Label& label) override;
  29. /**
  30. Draws a line that will look like it is inset in its background.
  31. */
  32. static void drawInsetLine (Graphics& g,
  33. const float startX,
  34. const float startY,
  35. const float endX,
  36. const float endY,
  37. const float lineThickness);
  38. };
  39. #endif