Class: Gtk::ProgressBar
- Inherits:
-
Object
- Object
- Gtk::ProgressBar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#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.
-
#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.
-
#fraction ⇒ Float
Fraction.
- #fraction=(fraction) ⇒ Float
-
#inverted ⇒ TrueClass
Gets the value set by gtk_progress_bar_set_inverted().
- #inverted=(inverted) ⇒ TrueClass
-
#inverted? ⇒ TrueClass
Inverted.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::ProgressBar.
-
#pulse ⇒ nil
Indicates that some progress has been made, but you don’t know how much.
-
#pulse_step ⇒ Float
Pulse-step.
- #pulse_step=(pulse_step) ⇒ Float
-
#show_text ⇒ TrueClass
Gets the value of the Gtk::ProgressBar:show-text property.
-
#show_text=(show_text) ⇒ TrueClass
Sets whether the progress bar will show a text in addition to the bar itself.
-
#show_text? ⇒ TrueClass
Sets whether the progress bar will show a text in addition to the bar itself.
-
#text ⇒ String
Text.
- #text=(text) ⇒ String
Instance Method Details
#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().
#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().
#fraction ⇒ Float
Returns fraction.
#fraction=(fraction) ⇒ Float
#inverted ⇒ TrueClass
Gets the value set by gtk_progress_bar_set_inverted().
#inverted=(inverted) ⇒ TrueClass
#inverted? ⇒ TrueClass
Returns inverted.
#new ⇒ Gtk::Widget
Creates a new Gtk::ProgressBar.
#pulse ⇒ nil
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()).
#pulse_step ⇒ Float
Returns pulse-step.
#pulse_step=(pulse_step) ⇒ Float
#show_text ⇒ TrueClass
Gets the value of the Gtk::ProgressBar:show-text property. See gtk_progress_bar_set_show_text().
#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).
#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).
#text ⇒ String
Returns text.