GLOW API version 1.0 reference

Back to
Table of contents


class GlowCheckBoxParams

General information

type: struct
inherits: GlowWidgetParams
module: glowCheckBoxWidget

GlowCheckBoxParams encloses parameters for construction of a GlowCheckBoxWidget.

GLOW programs which use checkboxes may need to use GlowCheckBoxParams to construct a checkbox.

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 16.

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 checkboxes

const char* text

Label string for the checkbox. Initial default is "".

GlowFont font

Font for the checkbox label. Initial default is GlowFont::helvetica12.

GlowCheckBoxWidget::State state

State for the checkbox. Initial default is off.

GlowCheckBoxWidget::Behavior behavior

Behavior options for the checkbox. Initial default is GlowCheckBoxWidget::defaultBehavior.

int spacing

Spacing between the box and label. Initial default 5.

GlowCheckBoxReceiver* receiver

Receiver for checkbox toggle events. Initial default is 0.

Color parameter data

GlowColor boxColor
GlowColor textColor
GlowColor checkColor
GlowColor hiliteBoxColor
GlowColor hiliteTextColor
GlowColor hiliteCheckColor
GlowColor disableBoxColor
GlowColor disableTextColor
GlowColor disableCheckColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColor

Static Data

Defaults

static GlowCheckBoxParams defaults

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

Methods

Constructor

GlowCheckBoxParams(void)

Constructs a new parameter block, copying defaults

Back to
Table of contents


The GLOW Toolkit