- _addPresetPressed
void _addPresetPressed()
- _focusEnter
void _focusEnter()
- _focusExit
void _focusExit()
- _hsvDraw
void _hsvDraw(long arg0, Control arg1)
- _htmlEntered
void _htmlEntered(String arg0)
- _htmlFocusExit
void _htmlFocusExit()
- _presetInput
void _presetInput(InputEvent arg0)
- _sampleDraw
void _sampleDraw()
- _screenInput
void _screenInput(InputEvent arg0)
- _screenPickPressed
void _screenPickPressed()
- _textTypeToggled
void _textTypeToggled()
- _updatePresets
void _updatePresets()
- _uvInput
void _uvInput(InputEvent arg0)
- _valueChanged
void _valueChanged(double arg0)
- _wInput
void _wInput(InputEvent arg0)
- addPreset
void addPreset(Color color)
Adds the given color to a list of color presets. The presets are displayed in the color picker and the user will be able to select them.
Note: the presets list is only for this color picker.
- arePresetsEnabled
bool arePresetsEnabled()
- arePresetsVisible
bool arePresetsVisible()
- erasePreset
void erasePreset(Color color)
Removes the given color from the list of color presets of this color picker.
- getPickColor
Color getPickColor()
- getPresets
PoolColorArray getPresets()
Returns the list of colors in the presets of the color picker.
- isDeferredMode
bool isDeferredMode()
- isEditingAlpha
bool isEditingAlpha()
- isHsvMode
bool isHsvMode()
- isRawMode
bool isRawMode()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(ColorPicker other)
- opEquals
bool opEquals(typeof(null) n)
- setDeferredMode
void setDeferredMode(bool mode)
- setEditAlpha
void setEditAlpha(bool show)
- setHsvMode
void setHsvMode(bool mode)
- setPickColor
void setPickColor(Color color)
- setPresetsEnabled
void setPresetsEnabled(bool enabled)
- setPresetsVisible
void setPresetsVisible(bool visible)
- setRawMode
void setRawMode(bool mode)
- toHash
size_t toHash()
- color
Color color [@property getter]
Color color [@property setter]
The currently selected color.
- deferredMode
bool deferredMode [@property getter]
bool deferredMode [@property setter]
If true, the color will apply only after the user releases the mouse button, otherwise it will apply immediately even in mouse motion event (which can cause performance issues).
- editAlpha
bool editAlpha [@property getter]
bool editAlpha [@property setter]
If true, shows an alpha channel slider (transparency).
- hsvMode
bool hsvMode [@property getter]
bool hsvMode [@property setter]
If true, allows editing the color with Hue/Saturation/Value sliders.
Note: Cannot be enabled if raw mode is on.
- presetsEnabled
bool presetsEnabled [@property getter]
bool presetsEnabled [@property setter]
If true, the "add preset" button is enabled.
- presetsVisible
bool presetsVisible [@property getter]
bool presetsVisible [@property setter]
If true, saved color presets are visible.
- rawMode
bool rawMode [@property getter]
bool rawMode [@property setter]
If true, allows the color R, G, B component values to go beyond 1.0, which can be used for certain special operations that require it (like tinting without darkening or rendering sprites in HDR).
Note: Cannot be enabled if HSV mode is on.
Color picker control.
Control node displaying a color picker widget. It's useful for selecting a color from an RGB/RGBA colorspace.