GLOW API version 1.0 reference

Back to
Table of contents


class GlowTextFieldParams

General information

type: struct
inherits: GlowWidgetParams
module: glowTextFieldWidget

GlowTextFieldParams encloses parameters for construction of a GlowTextFieldWidget.

GLOW programs which use text fields may need to use GlowTextFieldParams to construct a text field widget.

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

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 text fields

GlowTextFieldWidget::Style style

Drawing style for the box. Initial default is GlowTextFieldWidget::loweredStyle.

const char* initialText

Text for the label. Initial default is "".

GlowFont font

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

int selectionStart

Starting position of the selection. Initial default is 0.

int selectionEnd

Ending position of the selection. Initial default is 0.

int blinkInterval

Interval between caret blinks in milliseconds. Initial default is 500.

int autoScrollInterval

Interval between autoscroll moves in milliseconds. Initial default is 50.

int inset

Pixels to inset the text from the edge of the box. Initial defauilt is 5.

int caretInset

Pixels to inset the clip area for the caret from the edge of the box. Initial defauilt is 2.

Color parameter data

GlowColor backColor
GlowColor textColor
GlowColor caretColor
GlowColor focusBackColor
GlowColor focusTextColor
GlowColor focusCaretColor
GlowColor hiliteBackColor
GlowColor hiliteTextColor
GlowColor disableBackColor
GlowColor disableTextColor
GlowColor disableCaretColor
GlowColor disableOutlineColor
GlowColor lightBevelColor
GlowColor darkBevelColor

Static Data

Defaults

static GlowTextFieldParams defaults

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

Methods

Constructor

GlowTextFieldParams(void)

Constructs a new parameter block, copying defaults

Back to
Table of contents


The GLOW Toolkit