Class: Gtk::LevelBar
- Inherits:
-
Object
- Object
- Gtk::LevelBar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_offset_value(name, value) ⇒ nil
Adds a new offset marker on self at the position specified by value.
-
#get_offset_value(name, value) ⇒ TrueClass
Fetches the value specified for the offset marker name in self, returning true in case an offset named name was found.
-
#inverted ⇒ TrueClass
Return the value of the Gtk::LevelBar:inverted property.
-
#inverted=(inverted) ⇒ TrueClass
Level bars normally grow from top to bottom or left to right.
-
#inverted? ⇒ TrueClass
Level bars normally grow from top to bottom or left to right.
-
#max_value ⇒ Float
The Gtk::LevelBar:max-value property determaxes the maximum value of the interval that can be displayed by the bar.
-
#max_value=(max_value) ⇒ Float
The Gtk::LevelBar:max-value property determaxes the maximum value of the interval that can be displayed by the bar.
-
#min_value ⇒ Float
The Gtk::LevelBar:min-value property determines the minimum value of the interval that can be displayed by the bar.
-
#min_value=(min_value) ⇒ Float
The Gtk::LevelBar:min-value property determines the minimum value of the interval that can be displayed by the bar.
-
#mode ⇒ Gtk::LevelBarMode
The Gtk::LevelBar:mode property determines the way #GtkLevelBar interprets the value properties to draw the level fill area.
-
#mode=(mode) ⇒ Gtk::LevelBarMode
The Gtk::LevelBar:mode property determines the way #GtkLevelBar interprets the value properties to draw the level fill area.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::LevelBar.
-
#new_for_interval(min_value, max_value) ⇒ Gtk::Widget
Utility constructor that creates a new Gtk::LevelBar for the specified interval.
-
#remove_offset_value(name) ⇒ nil
Removes an offset marker previously added with gtk_level_bar_add_offset_value().
-
#value ⇒ Float
The Gtk::LevelBar:value property determines the currently filled value of the level bar.
-
#value=(value) ⇒ Float
The Gtk::LevelBar:value property determines the currently filled value of the level bar.
Instance Method Details
#add_offset_value(name, value) ⇒ nil
Adds a new offset marker on self at the position specified by value. When the bar value is in the interval topped by value (or between value and Gtk::LevelBar:max-value in case the offset is the last one on the bar) a style class named ‘level-`name will be applied when rendering the level bar fill. If another offset marker named name exists, its value will be replaced by value.
#get_offset_value(name, value) ⇒ TrueClass
Fetches the value specified for the offset marker name in self, returning true in case an offset named name was found.
#inverted ⇒ TrueClass
Return the value of the Gtk::LevelBar:inverted property.
#inverted=(inverted) ⇒ TrueClass
Level bars normally grow from top to bottom or left to right. Inverted level bars grow in the opposite direction.
#inverted? ⇒ TrueClass
Level bars normally grow from top to bottom or left to right. Inverted level bars grow in the opposite direction.
#max_value ⇒ Float
The Gtk::LevelBar:max-value property determaxes the maximum value of the interval that can be displayed by the bar.
#max_value=(max_value) ⇒ Float
The Gtk::LevelBar:max-value property determaxes the maximum value of the interval that can be displayed by the bar.
#min_value ⇒ Float
The Gtk::LevelBar:min-value property determines the minimum value of the interval that can be displayed by the bar.
#min_value=(min_value) ⇒ Float
The Gtk::LevelBar:min-value property determines the minimum value of the interval that can be displayed by the bar.
#mode ⇒ Gtk::LevelBarMode
The Gtk::LevelBar:mode property determines the way #GtkLevelBar interprets the value properties to draw the level fill area. Specifically, when the value is #GTK_LEVEL_BAR_MODE_CONTINUOUS, Gtk::LevelBar 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 Gtk::LevelBar:min-value and #GtkLevelBar:max-value.
#mode=(mode) ⇒ Gtk::LevelBarMode
The Gtk::LevelBar:mode property determines the way #GtkLevelBar interprets the value properties to draw the level fill area. Specifically, when the value is #GTK_LEVEL_BAR_MODE_CONTINUOUS, Gtk::LevelBar 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 Gtk::LevelBar:min-value and #GtkLevelBar:max-value.
#new ⇒ Gtk::Widget
Creates a new Gtk::LevelBar.
#new_for_interval(min_value, max_value) ⇒ Gtk::Widget
Utility constructor that creates a new Gtk::LevelBar for the specified interval.
#remove_offset_value(name) ⇒ nil
Removes an offset marker previously added with gtk_level_bar_add_offset_value().
#value ⇒ Float
The Gtk::LevelBar:value property determines the currently filled value of the level bar.
#value=(value) ⇒ Float
The Gtk::LevelBar:value property determines the currently filled value of the level bar.