GuiSwatchButtonCtrl
Engine/source/gui/buttons/guiSwatchButtonCtrl.h
A color swatch button.
Public Types
Parent
Protected Attributes
Background texture that will show through with transparent colors.
Bitmap used for mGrid.
The color to display on the button.
Public Functions
DECLARE_DESCRIPTION("A color swatch button." )
getColor()
Return the color displayed in the swatch.
bool
onWake()
Called when this object is asked to wake up returns true if it's actually awake at the end.
setColor(const LinearColorF & color)
Set the color to display in the swatch.
Public Static Functions
Detailed Description
A color swatch button.
Public Types
typedef GuiButtonBaseCtrl Parent
Protected Attributes
GFXTexHandle mGrid
Background texture that will show through with transparent colors.
String mGridBitmap
Bitmap used for mGrid.
LinearColorF mSwatchColor
The color to display on the button.
Public Functions
GuiSwatchButtonCtrl()
DECLARE_CONOBJECT(GuiSwatchButtonCtrl )
DECLARE_DESCRIPTION("A color swatch button." )
getColor()
Return the color displayed in the swatch.
onRender(Point2I offset, const RectI & updateRect)
Reimplemented from: GuiControl
Reimplemented by: GuiGradientSwatchCtrl
onWake()
Reimplemented from: GuiButtonBaseCtrl
Reimplemented by: GuiGradientSwatchCtrl
setColor(const LinearColorF & color)
Set the color to display in the swatch.