12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the ColorPicker.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_ColorPicker:
- ColorPicker
- ===========
- **Inherits:** :ref:`BoxContainer<class_boxcontainer>` **<** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Color picker control.
- Member Functions
- ----------------
- +-------+---------------------------------------------------------------------------------------------+
- | void | :ref:`add_preset<class_ColorPicker_add_preset>` **(** :ref:`Color<class_color>` color **)** |
- +-------+---------------------------------------------------------------------------------------------+
- Signals
- -------
- .. _class_ColorPicker_color_changed:
- - **color_changed** **(** :ref:`Color<class_color>` color **)**
- Emitted when the color is changed.
- Member Variables
- ----------------
- .. _class_ColorPicker_color:
- - :ref:`Color<class_color>` **color** - The currently selected color.
- .. _class_ColorPicker_edit_alpha:
- - :ref:`bool<class_bool>` **edit_alpha** - If ``true``, shows an alpha channel slider (transparency).
- .. _class_ColorPicker_raw_mode:
- - :ref:`bool<class_bool>` **raw_mode** - 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).
- Description
- -----------
- This is a simple color picker :ref:`Control<class_control>`. It's useful for selecting a color from an RGB/RGBA colorspace.
- Member Function Description
- ---------------------------
- .. _class_ColorPicker_add_preset:
- - void **add_preset** **(** :ref:`Color<class_color>` color **)**
- Adds the current selected to color to a list of colors (presets), the presets will be displayed in the color picker and the user will be able to select them, notice that the presets list is only for this color picker.
|