Skip to main content

Type Alias: GtkRangeProps

GtkRangeProps = WidgetProps & object

Defined in: generated/jsx.ts:7721

Props for the GtkRange widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:7773
fillLevel?numberThe fill level (e.g. prebuffering of a network stream).generated/jsx.ts:7723
inverted?booleanIf %TRUE, the direction in which the slider moves is inverted.generated/jsx.ts:7725
onAdjustBounds()?(self, value) => void | nullEmitted before clamping a value, to give the application a chance to adjust the bounds.generated/jsx.ts:7749
onChangeValue()?(self, scroll, value) => 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:7764
onMoveSlider()?(self, step) => void | nullVirtual function that moves the slider. Used for keybindings.generated/jsx.ts:7770
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:7779
onValueChanged()?(self) => void | nullEmitted when the range value changes.generated/jsx.ts:7772
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:7744
ref?Ref<Gtk.Range>-generated/jsx.ts:7792
restrictToFillLevel?booleanControls whether slider movement is restricted to an upper boundary set by the fill level.generated/jsx.ts:7730
roundDigits?numberThe number of digits to round the value to when it changes. See Range.:change-value.generated/jsx.ts:7737
showFillLevel?booleanControls whether fill level indicator graphics are displayed on the trough.generated/jsx.ts:7742