The
AG_Scrollbar widget provides the following bindings:
float *{value,min,max,inc,visible} | Single precision number
| double *{value,min,max,inc,visible} | Double precision number
| int *{value,min,max,inc,visible} | Natural integer
| Uint *{value,min,max,inc,visible} | Unsigned integer
| [SU]int8 *{value,min,max,inc,visible} | Fixed 8-bit integer
| [SU]int16 *{value,min,max,inc,visible} | Fixed 16-bit integer
| [SU]int32 *{value,min,max,inc,visible} | Fixed 32-bit integer
| [SU]int64 *{value,min,max,inc,visible} | Fixed 64-bit integer
|
The scrollbar is positioned to represent
value inside of a given range defined by
min and
max. The range defaults to 0.0 to 1.0 (for floating-point values),
or 0 to the maximum representible value (for integer values).
Thea optional
inc binding specifies the increment effected by the buttons, or keyboard.
If not specified, it defaults to 0.1 (for floating-point values), or 1 (for
integer values).
The optional
visible binding may be set to indicate the portion of the total range which is
currently visible on-screen.
If this is a non-zero value, then the size of the scrolling control button
will be set automatically.
Note that the
min, max, inc and
visible bindings must share the same type as
value. The 64-bit types are only available if
AG_HAVE_64BIT is set.
|