GLOW API version 1.0 reference

Back to
Table of contents


class GlowPopupMenuParams

General information

type: struct
inherits: GlowWidgetParams
module: glowMenuButtonWidget

GlowPopupMenuParams encloses parameters for construction of a GlowPopupMenuWidget.

GLOW programs which use popup menus may need to use GlowPopupMenuParams 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

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.

Color parameter data

GlowColor boxColor
GlowColor iconColor
GlowColor textColor
GlowColor hiliteBoxColor
GlowColor hiliteIconColor
GlowColor hiliteTextColor
GlowColor disableBoxColor
GlowColor disableIconColor
GlowColor disableTextColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColor

Static Data

Defaults

static GlowPopupMenuParams defaults

Default parameters. These are copied every time a new GlowPopupMenuParams is constructed.

Methods

Constructor

GlowPopupMenuParams(void)

Constructs a new parameter block, copying defaults

Back to
Table of contents


The GLOW Toolkit