24#include "StateManager.h"
25#include <juce_gui_basics/juce_gui_basics.h>
53 void paintButton(juce::Graphics&,
bool isMouseOver,
bool isDown)
override;
55 std::unique_ptr<plugin::StateManager::ButtonAttachment> _attachment;
Custom Switch component that displays a toggle switch.
Definition Switch.h:37
Switch(const Params &)
Constructor.
Definition Switch.cpp:26
void attach(plugin::StateManager &, juce::ParameterID)
Attach this Switch to a parameter.
Definition Switch.cpp:49
Base class for storing plugin state.
Definition StateManager.h:39
juce::SharedResourcePointer< Fonts > Instance
Add this as a member to your component/editor class to access the fonts.
Definition Fonts.h:58
Parameters for the Switch component.
Definition Switch.h:41
juce::Colour highlightColor
The color of the glyph when selected.
Definition Switch.h:43
juce::Colour color
The color of the glyph when not selected.
Definition Switch.h:42