.. 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` **<** :ref:`BaseButton` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Button that pops out a :ref:`ColorPicker` Member Functions ---------------- +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_color` **(** :ref:`Color` color **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_color` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_edit_alpha` **(** :ref:`bool` show **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_editing_alpha` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ Signals ------- - **color_changed** **(** :ref:`Color` color **)** 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_set_color: - void **set_color** **(** :ref:`Color` color **)** Sets the current color .. _class_ColorPickerButton_get_color: - :ref:`Color` **get_color** **(** **)** const Gets the current color .. _class_ColorPickerButton_set_edit_alpha: - void **set_edit_alpha** **(** :ref:`bool` show **)** See :ref:`ColorPicker.set_edit_alpha` .. _class_ColorPickerButton_is_editing_alpha: - :ref:`bool` **is_editing_alpha** **(** **)** const See :ref:`ColorPicker.is_edit_alpha`