|
Back to Table of contents |
General information |
type: struct
inherits: GlowPopupMenuParams
module: glowMenuButtonWidgetGlowLabeledPopupMenuParams encloses parameters for construction of a GlowLabeledPopupMenuWidget.
GLOW programs which use labeled popup menus may need to use GlowLabeledPopupMenuParams to construct a menu.
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 200.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 popup menus
These fields are inherited from GlowPopupMenuParams.const char* items
Items for the popup menu, as a tab-delimited string, or 0 for no items. Initial default is 0.int initial
Initial selected item for the menu. Initial default is 0.const char* mark
Mark string for the selected item. Initial default is "> ".GlowFont font
Font for the menu box. Initial default is GlowFont::helvetica12.int spacing
Spacing between items in the menu box. Initial default is 8.Menu color parameter data
These fields are inherited from GlowPopupMenuParams.GlowColor boxColor
GlowColor iconColor
GlowColor textColor
GlowColor hiliteBoxColor
GlowColor hiliteIconColor
GlowColor hiliteTextColor
GlowColor disableBoxColor
GlowColor disableIconColor
GlowColor disableTextColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColorParameter data specific to the label
const char* labelText
Text for the label. Initial default is "".GlowFont labelFont
Font for the label. Initial default is GlowFont::helvetica12.int labelPosition
Position code for the label. Use the constants given in GlowLabeledPopupMenuWidget.int labelWidth
Width of the label in pixels.int labelHeight
Height of the label in pixels.int labelSpacing
Spacing between the label and the popup menu box in pixels.GlowColor labelColor
Color of the label text.GlowColor hiliteLabelColor
Color of the label text when the menu is down (hilited).GlowColor disableLabelColor
Color of the label text when the menu is disabled.
Static Data |
Defaults
static GlowLabeledPopupMenuParams defaults
Default parameters. These are copied every time a new GlowLabeledPopupMenuParams is constructed.
Methods |
Constructor
GlowLabeledPopupMenuParams(void)
Constructs a new parameter block, copying defaults
|
Back to Table of contents |
The GLOW Toolkit