Class: Gtk::ProgressBar

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#ellipsizePango::EllipsizeMode

The preferred place to ellipsize the string, if the progress bar does not have enough room to display the entire string, specified as a Pango::EllipsizeMode.

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 gtk_widget_set_size_request().

Returns:

#ellipsize=(ellipsize) ⇒ Pango::EllipsizeMode

The preferred place to ellipsize the string, if the progress bar does not have enough room to display the entire string, specified as a Pango::EllipsizeMode.

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 gtk_widget_set_size_request().

Parameters:

Returns:

#fractionFloat

Returns fraction.

Returns:

  • (Float)

    fraction

#fraction=(fraction) ⇒ Float

Parameters:

  • fraction (Float)

Returns:

  • (Float)

    fraction

  • (Float)

    fraction

#invertedTrueClass

Gets the value set by gtk_progress_bar_set_inverted().

Returns:

  • (TrueClass)

    true if the progress bar is inverted

#inverted=(inverted) ⇒ TrueClass

Parameters:

  • inverted (TrueClass)

Returns:

  • (TrueClass)

    inverted

  • (TrueClass)

    inverted

#inverted?TrueClass

Returns inverted.

Returns:

  • (TrueClass)

    inverted

#newGtk::Widget

Creates a new Gtk::ProgressBar.

Returns:

#pulsenil

Indicates that some progress has been made, but you don’t know how much. Causes the progress bar to enter “activity mode,” where a block bounces back and forth. Each call to gtk_progress_bar_pulse() causes the block to move by a little bit (the amount of movement per pulse is determined by gtk_progress_bar_set_pulse_step()).

Returns:

  • (nil)

#pulse_stepFloat

Returns pulse-step.

Returns:

  • (Float)

    pulse-step

#pulse_step=(pulse_step) ⇒ Float

Parameters:

  • pulse_step (Float)

Returns:

  • (Float)

    pulse-step

  • (Float)

    pulse-step

#show_textTrueClass

Gets the value of the Gtk::ProgressBar:show-text property. See gtk_progress_bar_set_show_text().

Returns:

  • (TrueClass)

    true if text is shown in the progress bar

#show_text=(show_text) ⇒ TrueClass

Sets whether the progress bar will show a text in addition to the bar itself. The shown text is either the value of the Gtk::ProgressBar:text property or, if that is nil, the Gtk::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 Gtk::ProgressBar:show-text to true and #GtkProgressBar:text to the empty string (not nil).

Parameters:

  • show_text (TrueClass)

Returns:

  • (TrueClass)

    show-text

  • (TrueClass)

    show-text

#show_text?TrueClass

Sets whether the progress bar will show a text in addition to the bar itself. The shown text is either the value of the Gtk::ProgressBar:text property or, if that is nil, the Gtk::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 Gtk::ProgressBar:show-text to true and #GtkProgressBar:text to the empty string (not nil).

Returns:

  • (TrueClass)

    show-text

#textString

Returns text.

Returns:

  • (String)

    text

#text=(text) ⇒ String

Parameters:

  • text (String)

Returns:

  • (String)

    text

  • (String)

    text