Skip to main content

Type Alias: GtkProgressBarProps

GtkProgressBarProps = WidgetProps & object

Defined in: generated/jsx.ts:6153

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:6165
fraction?numberThe fraction of total work that has been completed.generated/jsx.ts:6167
inverted?booleanInvert the direction in which the progress bar grows.generated/jsx.ts:6169
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:6188
pulseStep?numberThe fraction of total progress to move the bounding block when pulsed.generated/jsx.ts:6171
ref?Ref<Gtk.ProgressBar>-generated/jsx.ts:6189
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:6184
text?string | nullText to be displayed in the progress bar.generated/jsx.ts:6186