GLOW API version 1.0 reference

Back to
Table of contents


class GlowSliderParams

General information

type: struct
inherits: GlowWidgetParams
module: glowSliderWidget

GlowSliderParams encloses parameters for construction of a GlowSliderWidget.

GLOW programs which use sliders may need to use GlowSliderParams to construct a slider.

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

int height

Height of the widget. Initial default is 30.

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 sliders

GlowSliderWidget::Options options

Options. Default is GlowSliderWidget::defaultOptions

double min

Initial minimum value. Default is 0.0.

double max

Initial maximum value. Default is 1.0.

double initial

Initial value. Default is 0.0.

int numTicks

Number of tick marks to draw. Initial default is 2.

GlowSliderReceiver* receiver

Receiver for indicator drag and release events. Initial default is 0.

Color parameter data

GlowColor stripColor
GlowColor indicatorColor
GlowColor tickMarkColor
GlowColor hiliteIndicatorColor
GlowColor disableStripColor
GlowColor disableIndicatorColor
GlowColor disableTickMarkColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColor

Static Data

Defaults

static GlowSliderParams defaults

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

Methods

Constructor

GlowSliderParams(void)

Constructs a new parameter block, copying defaults

Back to
Table of contents


The GLOW Toolkit