|
Back to Table of contents |
General information |
type: struct
inherits: GlowWidgetParams
module: glowPushButtonWidgetGlowPushButtonParams encloses parameters for construction of a GlowPushButtonWidget.
GLOW programs which use pushbuttons may need to use GlowPushButtonParams to construct a button.
Data |
General widget parameter data
These fields are inherited from GlowWidgetParams. Note that their default values may be different from those of the generic widget params.int width
Width of the widget. Initial default is 100.int height
Height of the widget. Initial default is 25.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 false.Parameter data specific to pushbuttons
const char* text
Label string for the button. Initial default is "".GlowFont font
Font for the button label. Initial default is GlowFont::helvetica12.bool down
Initial state for the button. Initial default is false.GlowPushButtonWidget::Behavior behavior
Behavior for the button. Initial default is GlowPushButtonWidget::normalBehavior.GlowPushButtonReceiver* receiver
Receiver for button press events. Initial default is 0.Color parameter data
GlowColor upBoxColor
GlowColor upTextColor
GlowColor downBoxColor
GlowColor downTextColor
GlowColor hiliteBoxColor
GlowColor hiliteTextColor
GlowColor disableUpBoxColor
GlowColor disableDownBoxColor
GlowColor disableTextColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColor
Static Data |
Defaults
static GlowPushButtonParams defaults
Default parameters. These are copied every time a new GlowPushButtonParams is constructed.
Methods |
Constructor
GlowPushButtonParams(void)
Constructs a new parameter block, copying defaults
|
Back to Table of contents |
The GLOW Toolkit