Widget::SetWidgetColor
Defined in:
Sets a widget color.
C4Widgets.h
Prototype
virtual void SetWidgetColor(const ColorRGBA& color, WidgetColorType type = kWidgetColorDefault) override;
Parameters
color |
The new widget color. |
type |
The type of the color to set. See below for possible values. |
Description
The SetWidgetColor
function sets the widget color corresponding to the type specified by the type
parameter. The type can be one of the following constants.
kWidgetColorDefault |
The default color for the widget. This is usually equivalent to one of the other types of colors, but which one varies with the type of the widget. See the documentation for the individual Widget subclasses for information about the default color.
|
kWidgetColorText |
The color of any text shown by the widget. |
kWidgetColorLine |
The color of any lines or strokes shown by the widget. |
kWidgetColorFill |
The color of any solid fills shown by the widget. |
kWidgetColorBorder |
The color of the widget's border. |
kWidgetColorBackground |
The color of the widget's background. |
kWidgetColorButton |
The color of any buttons belonging to the widget. |
kWidgetColorHilite |
The color used to highlight parts of the widget. |
kWidgetColorCaret |
The color of the insertion caret. |
kWidgetColorClear |
The clear color for viewport widgets. |
kWidgetColorGlyphEffect |
The color of glyph effects applied to text. |
type
parameter, then no change is made to any of the widget's colors.
See Also