ColorPicker

Color picker control.

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

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, GodotObject arg1)
_htmlEntered
void _htmlEntered(StringArg0 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.

getPickColor
Color getPickColor()
isDeferredMode
bool isDeferredMode()
isEditingAlpha
bool isEditingAlpha()
isRawMode
bool isRawMode()
opAssign
ColorPicker opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(ColorPicker other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setDeferredMode
void setDeferredMode(bool mode)
setEditAlpha
void setEditAlpha(bool show)
setPickColor
void setPickColor(Color color)
setRawMode
void setRawMode(bool mode)

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 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).

deferredMode
bool deferredMode [@property getter]

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).

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).

Static functions

_new
ColorPicker _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
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
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
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