|
Back to Table of contents |
General information |
type: struct
inherits: GlowSliderParams
module: glowSliderWidgetGlowLabeledSliderParams encloses parameters for construction of a GlowLabeledSliderWidget.
GLOW programs which use labeled sliders may need to use GlowLabeledSliderParams to construct a labeled 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
These fields are inherited from GlowSliderParams.GlowSliderWidget::Options options
Options. Default is GlowSliderWidget::defaultOptionsdouble 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 slider events. Initial default is 0.Color parameter data
These fields are inherited from GlowSliderParams.GlowColor stripColor
GlowColor indicatorColor
GlowColor tickMarkColor
GlowColor hiliteIndicatorColor
GlowColor disableStripColor
GlowColor disableIndicatorColor
GlowColor disableTickMarkColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColorParameter data specific to the label
const char* labelTemplate
Template text for the main label, or 0 for no label. Initial default is 0.GlowFont labelFont
Font for the main label. Initial default is GlowFont::helvetica12.int labelPosition
Position code for the label. Use the constants given in GlowLabeledSliderWidget.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 main label text.GlowColor disableLabelColor
Color of the main label text when the menu is disabled.const char* minmaxTemplate
Template text for minimum and maximum labels, or 0 for no labels. Initial default is 0.GlowFont minmaxFont
Font for the minimum and maximum labels. Initial default is GlowFont::helvetica12.int minmaxSize
Maximum size allocated to minimum and maximum labels. Initial default is 15.GlowColor minmaxColor
Color of the minimum and maximum label text.GlowColor disableMinmaxColor
Color of the minimum and maximum label text when the menu is disabled.
Static Data |
Defaults
static GlowLabeledSliderParams defaults
Default parameters. These are copied every time a new GlowLabeledSliderParams is constructed.
Methods |
Constructor
GlowLabeledSliderParams(void)
Constructs a new parameter block, copying defaults
|
Back to Table of contents |
The GLOW Toolkit