.. 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:`ColorPicker` | :ref:`get_picker` **(** **)** const | +----------------------------------------+-------------------------------------------------------------------------+ | :ref:`PopupPanel` | :ref:`get_popup` **(** **)** const | +----------------------------------------+-------------------------------------------------------------------------+ Signals ------- .. _class_ColorPickerButton_color_changed: - **color_changed** **(** :ref:`Color` color **)** Emitted when the color changes. Member Variables ---------------- .. _class_ColorPickerButton_color: - :ref:`Color` **color** - The currently selected color. .. _class_ColorPickerButton_edit_alpha: - :ref:`bool` **edit_alpha** - If ``true`` the alpha channel in the displayed :ref:`ColorPicker` will be visible. Default value: ``true``. 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_picker: - :ref:`ColorPicker` **get_picker** **(** **)** const Returns the ``ColorPicker`` that this ``ColorPickerButton`` toggles. .. _class_ColorPickerButton_get_popup: - :ref:`PopupPanel` **get_popup** **(** **)** const Returns the control's :ref:`PopupPanel` which allows you to connect to Popup Signals. This allows you to handle events when the ColorPicker is shown or hidden.