.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_ColorPicker: ColorPicker =========== **Inherits:** :ref:`BoxContainer` **<** :ref:`Container` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Color picker control. Member Functions ---------------- +----------------------------+----------------------------------------------------------------------------------------------------+ | void | :ref:`set_color` **(** :ref:`Color` color **)** | +----------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_color` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------+ | void | :ref:`set_raw_mode` **(** :ref:`bool` mode **)** | +----------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_raw_mode` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------+ | void | :ref:`set_edit_alpha` **(** :ref:`bool` show **)** | +----------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_editing_alpha` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------+ | void | :ref:`add_preset` **(** :ref:`Color` arg0 **)** | +----------------------------+----------------------------------------------------------------------------------------------------+ Signals ------- - **color_changed** **(** :ref:`Color` color **)** Description ----------- This is a simple color picker :ref:`Control`. It's useful for selecting a color from an RGB/RGBA colorspace. Member Function Description --------------------------- .. _class_ColorPicker_set_color: - void **set_color** **(** :ref:`Color` color **)** Select the current color. .. _class_ColorPicker_get_color: - :ref:`Color` **get_color** **(** **)** const Return the current (edited) color. .. _class_ColorPicker_set_raw_mode: - void **set_raw_mode** **(** :ref:`bool` mode **)** .. _class_ColorPicker_is_raw_mode: - :ref:`bool` **is_raw_mode** **(** **)** const .. _class_ColorPicker_set_edit_alpha: - void **set_edit_alpha** **(** :ref:`bool` show **)** .. _class_ColorPicker_is_editing_alpha: - :ref:`bool` **is_editing_alpha** **(** **)** const .. _class_ColorPicker_add_preset: - void **add_preset** **(** :ref:`Color` arg0 **)**