ColorPicker

Color picker control.

Control node displaying a color picker widget. It's useful for selecting a color from an RGB/RGBA colorspace.

@GodotBaseClass
struct ColorPicker {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_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()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

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.

Static functions

_new
ColorPicker _new()

Construct a new instance of ColorPicker. Note: use memnew!ColorPicker instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta