12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- .. 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_ColorPickerButton:
- ColorPickerButton
- =================
- **Inherits:** :ref:`Button<class_button>` **<** :ref:`BaseButton<class_basebutton>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Button that pops out a :ref:`ColorPicker<class_colorpicker>`
- Member Functions
- ----------------
- +----------------------------------------+----------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_color>` | :ref:`get_color<class_ColorPickerButton_get_color>` **(** **)** const |
- +----------------------------------------+----------------------------------------------------------------------------------------------------------+
- | :ref:`ColorPicker<class_colorpicker>` | :ref:`get_picker<class_ColorPickerButton_get_picker>` **(** **)** |
- +----------------------------------------+----------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_editing_alpha<class_ColorPickerButton_is_editing_alpha>` **(** **)** const |
- +----------------------------------------+----------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_color<class_ColorPickerButton_set_color>` **(** :ref:`Color<class_color>` color **)** |
- +----------------------------------------+----------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_edit_alpha<class_ColorPickerButton_set_edit_alpha>` **(** :ref:`bool<class_bool>` show **)** |
- +----------------------------------------+----------------------------------------------------------------------------------------------------------+
- Signals
- -------
- - **color_changed** **(** :ref:`Color<class_color>` color **)**
- Emitted when the color is changed.
- Description
- -----------
- Encapsulates a :ref:`ColorPicker<class_colorpicker>` making it accesible by pressing a button, pressing the button will toggle the :ref:`ColorPicker<class_colorpicker>` visibility
- Member Function Description
- ---------------------------
- .. _class_ColorPickerButton_get_color:
- - :ref:`Color<class_color>` **get_color** **(** **)** const
- Gets the current color
- .. _class_ColorPickerButton_get_picker:
- - :ref:`ColorPicker<class_colorpicker>` **get_picker** **(** **)**
- .. _class_ColorPickerButton_is_editing_alpha:
- - :ref:`bool<class_bool>` **is_editing_alpha** **(** **)** const
- See :ref:`ColorPicker.is_edit_alpha<class_ColorPicker_is_edit_alpha>`
- .. _class_ColorPickerButton_set_color:
- - void **set_color** **(** :ref:`Color<class_color>` color **)**
- Sets the current color
- .. _class_ColorPickerButton_set_edit_alpha:
- - void **set_edit_alpha** **(** :ref:`bool<class_bool>` show **)**
- See :ref:`ColorPicker.set_edit_alpha<class_ColorPicker_set_edit_alpha>`
|