Skip to main content

Type Alias: GtkProgressBarProps

GtkProgressBarProps = WidgetProps & object

Defined in: generated/jsx.ts:7671

Props for the GtkProgressBar widget.

Type Declaration

NameTypeDescriptionDefined in
ellipsize?Pango.EllipsizeModeThe preferred place to ellipsize the string. The text will be ellipsized if the progress bar does not have enough room to display the entire string, specified as a PangoEllipsizeMode. Note that setting this property to a value other than %PANGO_ELLIPSIZE_NONE has the side-effect that the progress bar requests only enough space to display the ellipsis ("..."). Another means to set a progress bar's width is Widget.set_size_request.generated/jsx.ts:7683
fraction?numberThe fraction of total work that has been completed.generated/jsx.ts:7685
inverted?booleanInvert the direction in which the progress bar grows.generated/jsx.ts:7687
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:7712
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:7706
pulseStep?numberThe fraction of total progress to move the bounding block when pulsed.generated/jsx.ts:7689
ref?Ref<Gtk.ProgressBar>-generated/jsx.ts:7718
showText?booleanSets whether the progress bar will show a text in addition to the bar itself. The shown text is either the value of the ProgressBar.text property or, if that is %NULL, the ProgressBar.fraction value, as a percentage. To make a progress bar that is styled and sized suitably for showing text (even if the actual text is blank), set ProgressBar.show-text to %TRUE and ProgressBar.text to the empty string (not %NULL).generated/jsx.ts:7702
text?string | nullText to be displayed in the progress bar.generated/jsx.ts:7704