Torque3D Documentation / _generateds / GuiSwatchButtonCtrl

GuiSwatchButtonCtrl

Engine/source/gui/buttons/guiSwatchButtonCtrl.h

A color swatch button.

More...

Public Types

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." )

Return the color displayed in the swatch.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

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.

Public Static Functions

initPersistFields()