C4 Engine Terathon Software C4 Engine API Documentation

• Interface Manager

API Links
Developer Links

class ColorWidget

Defined in:  C4Widgets.h
The ColorWidget class represents an interface widget that displays a color picking box.
Definition

class ColorWidget : public RenderableWidget

Constructor

ColorWidget(const Vector2D& size, const ColorRGBA& color = K::white);

Parameters
size The size of the color box, in pixels.
color The color that is initially displayed in the color box.
Description
The ColorWidget class displays a color selection box that displays a color picker dialog when clicked.

The default widget color corresponds to the kWidgetColorBorder color type and determines the color of the border. The kWidgetColorFocus color type is also supported, and it controls the color of the glow rendered around the box while the user is clicking on it. If a focus color has not been explicitly specified, then the Interface Manager's global button color is used.
Base Classes
RenderableWidget All rendered interface widgets are subclasses of RenderableWidget.