Skip to main content

Type Alias: GtkRangeProps

GtkRangeProps = WidgetProps & object

Defined in: generated/jsx.ts:6192

Props for the GtkRange widget.

Type Declaration

NameTypeDescriptionDefined in
fillLevel?numberThe fill level (e.g. prebuffering of a network stream).generated/jsx.ts:6194
inverted?booleanIf %TRUE, the direction in which the slider moves is inverted.generated/jsx.ts:6196
lower?numberThe minimum valuegenerated/jsx.ts:6245
onAdjustBounds?(value, self) => void | nullEmitted before clamping a value, to give the application a chance to adjust the bounds.generated/jsx.ts:6220
onChangeValue?(scroll, value, self) => boolean | nullEmitted when a scroll action is performed on a range. It allows an application to determine the type of scroll event that occurred and the resultant new value. The application can handle the event itself and return %TRUE to prevent further processing. Or, by returning %FALSE, it can pass the event to other handlers until the default GTK handler is reached. The value parameter is unrounded. An application that overrides the ::change-value signal is responsible for clamping the value to the desired number of decimal digits; the default GTK handler clamps the value based on Range.round-digits.generated/jsx.ts:6235
onMoveSlider?(step, self) => void | nullVirtual function that moves the slider. Used for keybindings.generated/jsx.ts:6241
onValueChanged?(value, self) => void | nullCallback when the value changesgenerated/jsx.ts:6255
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:6215
pageIncrement?numberThe increment for page up/downgenerated/jsx.ts:6251
pageSize?numberThe page size (usually 0 for scales)generated/jsx.ts:6253
ref?Ref<Gtk.Range>-generated/jsx.ts:6256
restrictToFillLevel?booleanControls whether slider movement is restricted to an upper boundary set by the fill level.generated/jsx.ts:6201
roundDigits?numberThe number of digits to round the value to when it changes. See Range.:change-value.generated/jsx.ts:6208
showFillLevel?booleanControls whether fill level indicator graphics are displayed on the trough.generated/jsx.ts:6213
stepIncrement?numberThe increment for arrow keysgenerated/jsx.ts:6249
upper?numberThe maximum valuegenerated/jsx.ts:6247
value?numberThe current value of the adjustmentgenerated/jsx.ts:6243