class ColorWidget
Defined in:
The C4Widgets.h
ColorWidget
class represents an interface widget that displays a color picking box.
Definition
class ColorWidget final : public RectangleWidget
Constructor
ColorWidget(const Vector2D& size, const ColorRGBA& color = Color::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.
Base Classes
RectangleWidget |
The color widget is rendered as a rectangular box. |
Wiki Articles