.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ColorPickerButton.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ColorPickerButton: ColorPickerButton ================= **Inherits:** :ref:`Button` **<** :ref:`BaseButton` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Button that pops out a :ref:`ColorPicker` Member Functions ---------------- +----------------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_pick_color` **(** **)** const | +----------------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`ColorPicker` | :ref:`get_picker` **(** **)** | +----------------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_editing_alpha` **(** **)** const | +----------------------------------------+-------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_edit_alpha` **(** :ref:`bool` show **)** | +----------------------------------------+-------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pick_color` **(** :ref:`Color` color **)** | +----------------------------------------+-------------------------------------------------------------------------------------------------------------+ Signals ------- - **color_changed** **(** :ref:`Color` color **)** Emitted when the color is changed. Member Variables ---------------- - :ref:`Color` **color** - :ref:`bool` **edit_alpha** Description ----------- Encapsulates a :ref:`ColorPicker` making it accesible by pressing a button, pressing the button will toggle the :ref:`ColorPicker` visibility Member Function Description --------------------------- .. _class_ColorPickerButton_get_pick_color: - :ref:`Color` **get_pick_color** **(** **)** const .. _class_ColorPickerButton_get_picker: - :ref:`ColorPicker` **get_picker** **(** **)** .. _class_ColorPickerButton_is_editing_alpha: - :ref:`bool` **is_editing_alpha** **(** **)** const See :ref:`ColorPicker.is_edit_alpha` .. _class_ColorPickerButton_set_edit_alpha: - void **set_edit_alpha** **(** :ref:`bool` show **)** See :ref:`ColorPicker.set_edit_alpha` .. _class_ColorPickerButton_set_pick_color: - void **set_pick_color** **(** :ref:`Color` color **)** Set new color to ColorRect. :: var cr = get_node("colorrect_node") cr.set_frame_color(Color(1, 0, 0, 1)) # Set color rect node to red