.. index:: pair: class; EE::UI::Tools::UIColorPicker .. _doxid-class_e_e_1_1_u_i_1_1_tools_1_1_u_i_color_picker: class EE::UI::Tools::UIColorPicker ================================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UIColorPicker { public: // typedefs typedef std::function` color)> :target:`ColorPickedCb`; // construction :target:`UIColorPicker`(:ref:`UIWindow`* attach = NULL, const :ref:`ColorPickedCb`& colorPickedCb = :ref:`ColorPickedCb`(), const :ref:`Uint8`& modalAlpha = 0); // methods static UIColorPicker* :target:`NewModal`(:ref:`Node`* nodeCreator, const :ref:`ColorPickedCb`& colorPickedCb = :ref:`ColorPickedCb`(), const :ref:`Uint8`& modalAlpha = 120, const :ref:`Uint32`& winFlags = :ref:`UI_WIN_NO_DECORATION`|:ref:`UI_WIN_MODAL`|:ref:`UI_WIN_DRAGABLE_CONTAINER`|:ref:`UI_WIN_FRAME_BUFFER`, const :ref:`Sizef`& winSize = :ref:`Sizef`(320, 470)); static UIColorPicker* :target:`NewWindow`(const :ref:`ColorPickedCb`& colorPickedCb = :ref:`ColorPickedCb`(), const :ref:`Uint32`& winFlags = :ref:`UI_WIN_DEFAULT_FLAGS`|:ref:`UI_WIN_SHADOW`|:ref:`UI_WIN_FRAME_BUFFER`, const :ref:`Sizef`& winSize = :ref:`Sizef`(320, 478), const :ref:`Uint8`& modalAlpha = 0); static UIColorPicker* :target:`New`(:ref:`UIWindow`* attach = NULL, const :ref:`ColorPickedCb`& colorPickedCb = :ref:`ColorPickedCb`(), const :ref:`Uint8`& modalAlpha = 0); void :target:`setColor`(const :ref:`Color`& color, bool hexColorNeedsUpdate = true); const :ref:`Color`& :target:`getColor`() const; void :target:`setHsvColor`(const :ref:`Colorf`& color); const :ref:`Colorf`& :target:`getHsvColor`() const; :ref:`UIWindow`* :target:`getUIWindow`() const; void :target:`closePicker`(); };