gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

textbuttonStyle.h (514B)


      1 #pragma once
      2 
      3 #include "uiObjectStyle.h"
      4 
      5 namespace genericUI
      6 {
      7 	class TextButtonStyle : public UiObjectStyle
      8 	{
      9 	public:
     10 		explicit TextButtonStyle(Editor& _editor) : UiObjectStyle(_editor) {}
     11 
     12 	private:
     13 		void drawButtonBackground(juce::Graphics&, juce::Button&, const juce::Colour& backgroundColour, bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override;
     14 		juce::Font getTextButtonFont(juce::TextButton&, int buttonHeight) override;
     15 	public:
     16 		void apply(juce::Button& _target) const;
     17 	};
     18 }