Skip to main content

Type Alias: GtkLevelBarProps

GtkLevelBarProps = WidgetProps & object

Defined in: generated/jsx.ts:6034

Props for the GtkLevelBar widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:6074
inverted?booleanWhether the GtkLeveBar is inverted. Level bars normally grow from top to bottom or left to right. Inverted level bars grow in the opposite direction.generated/jsx.ts:6041
maxValue?numberDetermines the maximum value of the interval that can be displayed by the bar.generated/jsx.ts:6043
minValue?numberDetermines the minimum value of the interval that can be displayed by the bar.generated/jsx.ts:6045
mode?Gtk.LevelBarModeDetermines the way GtkLevelBar interprets the value properties to draw the level fill area. Specifically, when the value is %GTK_LEVEL_BAR_MODE_CONTINUOUS, GtkLevelBar will draw a single block representing the current value in that area; when the value is %GTK_LEVEL_BAR_MODE_DISCRETE, the widget will draw a succession of separate blocks filling the draw area, with the number of blocks being equal to the units separating the integral roundings of LevelBar.min-value and LevelBar.max-value.generated/jsx.ts:6058
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:6080
onOffsetChanged()?(self, name) => void | nullEmitted when an offset specified on the bar changes value. This typically is the result of a LevelBar.add_offset_value call. The signal supports detailed connections; you can connect to the detailed signal "changed::x" in order to only receive callbacks when the value of offset "x" changes.generated/jsx.ts:6073
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:6062
ref?Ref<Gtk.LevelBar>-generated/jsx.ts:6086
value?numberDetermines the currently filled value of the level bar.generated/jsx.ts:6060