class_colorpickerbutton.rst 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ColorPickerButton.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ColorPickerButton:
  5. ColorPickerButton
  6. =================
  7. **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>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Button that pops out a :ref:`ColorPicker<class_colorpicker>`.
  12. Member Functions
  13. ----------------
  14. +----------------------------------------+-------------------------------------------------------------------------+
  15. | :ref:`ColorPicker<class_colorpicker>` | :ref:`get_picker<class_ColorPickerButton_get_picker>` **(** **)** const |
  16. +----------------------------------------+-------------------------------------------------------------------------+
  17. | :ref:`PopupPanel<class_popuppanel>` | :ref:`get_popup<class_ColorPickerButton_get_popup>` **(** **)** const |
  18. +----------------------------------------+-------------------------------------------------------------------------+
  19. Signals
  20. -------
  21. .. _class_ColorPickerButton_color_changed:
  22. - **color_changed** **(** :ref:`Color<class_color>` color **)**
  23. Emitted when the color changes.
  24. Member Variables
  25. ----------------
  26. .. _class_ColorPickerButton_color:
  27. - :ref:`Color<class_color>` **color** - The currently selected color.
  28. .. _class_ColorPickerButton_edit_alpha:
  29. - :ref:`bool<class_bool>` **edit_alpha** - If ``true`` the alpha channel in the displayed :ref:`ColorPicker<class_colorpicker>` will be visible. Default value: ``true``.
  30. Description
  31. -----------
  32. Encapsulates a :ref:`ColorPicker<class_colorpicker>` making it accesible by pressing a button, pressing the button will toggle the :ref:`ColorPicker<class_colorpicker>` visibility
  33. Member Function Description
  34. ---------------------------
  35. .. _class_ColorPickerButton_get_picker:
  36. - :ref:`ColorPicker<class_colorpicker>` **get_picker** **(** **)** const
  37. Returns the ``ColorPicker`` that this ``ColorPickerButton`` toggles.
  38. .. _class_ColorPickerButton_get_popup:
  39. - :ref:`PopupPanel<class_popuppanel>` **get_popup** **(** **)** const
  40. Returns the control's :ref:`PopupPanel<class_popuppanel>` which allows you to connect to Popup Signals. This allows you to handle events when the ColorPicker is shown or hidden.