A ToggleButton that uses an OpenGlShapeButtonComponent for its rendering.
More...
#include <synth_button.h>
A ToggleButton that uses an OpenGlShapeButtonComponent for its rendering.
This class acts as a JUCE ToggleButton but overrides its look with a custom OpenGL shape.
◆ OpenGlShapeButton()
OpenGlShapeButton::OpenGlShapeButton |
( |
String | name | ) |
|
|
inline |
Constructor.
- Parameters
-
name | The name of the button. |
◆ getGlComponent()
Retrieves the underlying OpenGL component.
- Returns
- A pointer to the OpenGlComponent used for rendering.
◆ mouseDown()
void OpenGlShapeButton::mouseDown |
( |
const MouseEvent & | e | ) |
|
|
inlineoverride |
Called when the mouse is pressed down on the button.
- Parameters
-
◆ mouseEnter()
void OpenGlShapeButton::mouseEnter |
( |
const MouseEvent & | e | ) |
|
|
inlineoverride |
Called when the mouse enters the button area.
- Parameters
-
◆ mouseExit()
void OpenGlShapeButton::mouseExit |
( |
const MouseEvent & | e | ) |
|
|
inlineoverride |
Called when the mouse leaves the button area.
- Parameters
-
◆ mouseUp()
void OpenGlShapeButton::mouseUp |
( |
const MouseEvent & | e | ) |
|
|
inlineoverride |
Called when the mouse is released from the button.
- Parameters
-
◆ resized()
void OpenGlShapeButton::resized |
( |
| ) |
|
|
inlineoverride |
Called when the button is resized. Updates the internal image.
◆ setShape()
void OpenGlShapeButton::setShape |
( |
const Path & | shape | ) |
|
|
inline |
Sets the shape to be rendered by the button.
- Parameters
-
shape | The new path representing the shape. |
◆ useOnColors()
void OpenGlShapeButton::useOnColors |
( |
bool | use | ) |
|
|
inline |
Toggles whether to use on-colors.
- Parameters
-
use | If true, use on-colors; otherwise off-colors. |
The documentation for this class was generated from the following file:
- /Users/davidvogel/repos/VitalHelp/src/interface/editor_components/synth_button.h