Property component for selecting colors with a visual color picker.
More...
#include <gin_propertycomponents.h>
Property component for selecting colors with a visual color picker.
ColourPropertyComponent displays a color swatch that shows the current color and opens a color selector popup when clicked. The color value is stored as a string (via Colour::toString()) in the bound Value object.
Usage:
Value colorValue("ff0080ff");
propertyPanel.addProperty(&colorProp);
ColourPropertyComponent(const juce::Value &valueToControl, const juce::String &propertyName, bool showAlpha=false)
Definition gin_propertycomponents.h:147
- See also
- PropertyComponentBase, juce::ColourSelector
◆ ColourPropertyComponent()
| ColourPropertyComponent::ColourPropertyComponent |
( |
const juce::Value & | valueToControl, |
|
|
const juce::String & | propertyName, |
|
|
bool | showAlpha = false ) |
◆ refresh()
| void ColourPropertyComponent::refresh |
( |
| ) |
|
|
override |
◆ paint()
| void ColourPropertyComponent::paint |
( |
juce::Graphics & | g | ) |
|
|
override |
The documentation for this class was generated from the following file: