|
Back to Table of contents |
General information |
type: struct
inherits: GlowWidgetParams
module: glowLabelWidgetGlowLabelParams encloses parameters for construction of a GlowLabelWidget.
GLOW programs which use labels may need to use GlowLabelParams to construct a label widget.
Data |
General widget parameter data
These fields are inherited from GlowWidgetParams. Note that their default values may be different from the generic widget parameters.int width
Width of the widget. Initial default is 100.int height
Height of the widget. Initial default is 100.int x
X location of the upper left of the widget, in pixel coordinates of the parent widget. Initial default is 0.int y
Y location of the upper left of the widget, in pixel coordinates of the parent widget. Initial default is 0.long refcon
Reference constant for this widget. Initial default 0.bool clipping
Should the widget clip to its rectangle when drawing children. Initial default is true.Parameter data specific to labels
const char* text
Text for the label. Initial default is "".GlowFont font
Font for the label. Initial default is GlowFont::helvetica12.bool opaque
Should the label be drawn as opaque. Initial default is false.int hIndent
Pixels to indent the text from the left edge. Initial default is 1.int vIndent
Pixels to indent the text from the top edge. Initial default is 0.Color parameter data
GlowColor backColor
GlowColor textColor
GlowColor disableTextColor
Static Data |
Defaults
static GlowLabelParams defaults
Default parameters. These are copied every time a new GlowLabelParams is constructed.
Methods |
Constructor
GlowLabelParams(void)
Constructs a new parameter block, copying defaults
|
Back to Table of contents |
The GLOW Toolkit