class EE::UI::Tools::UIColorPicker

#include <uicolorpicker.hpp>

class UIColorPicker {
public:
    // typedefs

    typedef std::function<void(Color color)> ColorPickedCb;

    // construction

    UIColorPicker(UIWindow* attach = NULL, const ColorPickedCb& colorPickedCb = ColorPickedCb(), const Uint8& modalAlpha = 0);

    // methods

    static UIColorPicker* NewModal(Node* nodeCreator, const ColorPickedCb& colorPickedCb = ColorPickedCb(), const Uint8& modalAlpha = 120, const Uint32& winFlags = UI_WIN_NO_DECORATION|UI_WIN_MODAL|UI_WIN_DRAGABLE_CONTAINER|UI_WIN_FRAME_BUFFER, const Sizef& winSize = Sizef(320, 470));
    static UIColorPicker* NewWindow(const ColorPickedCb& colorPickedCb = ColorPickedCb(), const Uint32& winFlags = UI_WIN_DEFAULT_FLAGS|UI_WIN_SHADOW|UI_WIN_FRAME_BUFFER, const Sizef& winSize = Sizef(320, 478), const Uint8& modalAlpha = 0);
    static UIColorPicker* New(UIWindow* attach = NULL, const ColorPickedCb& colorPickedCb = ColorPickedCb(), const Uint8& modalAlpha = 0);
    void setColor(const Color& color, bool hexColorNeedsUpdate = true);
    const Color& getColor() const;
    void setHsvColor(const Colorf& color);
    const Colorf& getHsvColor() const;
    UIWindow* getUIWindow() const;
    void closePicker();
};