Update guiColorPicker.h

This commit is contained in:
Anis 2016-02-21 22:10:17 +01:00
parent aed2e0b5b6
commit 5c2bfbf82e

View file

@ -77,11 +77,10 @@ class GuiColorPickerCtrl : public GuiControl
}; };
protected: protected:
/// @name Core Rendering functions /// @name Core Rendering functions
/// @{ /// @{
void renderColorBox(RectI &bounds); ///< Function that draws the actual color box void renderColorBox(RectI &bounds); ///< Function that draws the actual color box
void drawSelector(RectI &bounds, Point2I &selectorPos, SelectorMode mode); ///< Function that draws the selection indicator void drawSelector(RectI &bounds, Point2I &selectorPos, SelectorMode mode); /// < Function that draws the selection indicator
void drawBlendBox(RectI &bounds, ColorF &c1, ColorF &c2, ColorF &c3, ColorF &c4); void drawBlendBox(RectI &bounds, ColorF &c1, ColorF &c2, ColorF &c3, ColorF &c4);
void drawBlendRangeBox(RectI &bounds, bool vertical, U8 numColors, ColorI *colors); void drawBlendRangeBox(RectI &bounds, bool vertical, U8 numColors, ColorI *colors);
/// @} /// @}
@ -127,7 +126,7 @@ class GuiColorPickerCtrl : public GuiControl
/// NOTE: setValue only sets baseColor, since setting pickColor wouldn't be useful /// NOTE: setValue only sets baseColor, since setting pickColor wouldn't be useful
void setValue(ColorF &value) {mBaseColor = value;} void setValue(ColorF &value) {mBaseColor = value;}
/// NOTE: getValue() returns baseColor if pallet (since pallet controls can't "pick" colours themselves) /// NOTE: getValue() returns baseColor if pallet (since pallet controls can't "pick" colours themselves)
ColorF getValue() {return mDisplayMode == pPallet ? mBaseColor : mPickColor;} ColorF getValue() { return mDisplayMode == pPallet ? mBaseColor : mPickColor; }
const char *getScriptValue(); const char *getScriptValue();
void setScriptValue(const char *value); void setScriptValue(const char *value);
void updateColor() {mPositionChanged = true;} void updateColor() {mPositionChanged = true;}