Skip to main content

Type Alias: GtkLevelBarProps

GtkLevelBarProps = WidgetProps & object

Defined in: generated/jsx.ts:4876

Props for the GtkLevelBar widget.

Type Declaration

NameTypeDescriptionDefined in
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:4883
maxValue?numberDetermines the maximum value of the interval that can be displayed by the bar.generated/jsx.ts:4885
minValue?numberDetermines the minimum value of the interval that can be displayed by the bar.generated/jsx.ts:4887
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:4900
offsets?object[] | nullArray of named offset thresholds for visual style changesgenerated/jsx.ts:4917
onOffsetChanged?(name, self) => 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:4915
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:4904
ref?Ref<Gtk.LevelBar>-generated/jsx.ts:4918
value?numberDetermines the currently filled value of the level bar.generated/jsx.ts:4902