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.

juce_ArrowButton.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. namespace juce
  14. {
  15. //==============================================================================
  16. /**
  17. A button with an arrow in it.
  18. @see Button
  19. @tags{GUI}
  20. */
  21. class JUCE_API ArrowButton : public Button
  22. {
  23. public:
  24. //==============================================================================
  25. /** Creates an ArrowButton.
  26. @param buttonName the name to give the button
  27. @param arrowDirection the direction the arrow should point in, where 0.0 is
  28. pointing right, 0.25 is down, 0.5 is left, 0.75 is up
  29. @param arrowColour the colour to use for the arrow
  30. */
  31. ArrowButton (const String& buttonName,
  32. float arrowDirection,
  33. Colour arrowColour);
  34. /** Destructor. */
  35. ~ArrowButton() override;
  36. /** @internal */
  37. void paintButton (Graphics&, bool, bool) override;
  38. private:
  39. Colour colour;
  40. Path path;
  41. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ArrowButton)
  42. };
  43. } // namespace juce