Class: Gtk::Range
- Inherits:
-
Object
- Object
- Gtk::Range
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#adjustment ⇒ Gtk::Adjustment
Adjustment.
- #adjustment=(adjustment) ⇒ Gtk::Adjustment
-
#fill_level ⇒ Float
The fill level (e.g. prebuffering of a network stream).
-
#fill_level=(fill_level) ⇒ Float
The fill level (e.g. prebuffering of a network stream).
-
#flippable ⇒ TrueClass
Gets the value set by gtk_range_set_flippable().
-
#flippable=(flippable) ⇒ nil
If a range is flippable, it will switch its direction if it is horizontal and its direction is %GTK_TEXT_DIR_RTL.
-
#get_range_rect(range_rect) ⇒ nil
This function returns the area that contains the range’s trough and its steppers, in widget->window coordinates.
-
#get_slider_range(slider_start, slider_end) ⇒ nil
This function returns sliders range along the long dimension, in widget->window coordinates.
-
#inverted ⇒ TrueClass
Gets the value set by gtk_range_set_inverted().
- #inverted=(inverted) ⇒ TrueClass
-
#inverted? ⇒ TrueClass
Inverted.
-
#lower_stepper_sensitivity ⇒ Gtk::SensitivityType
Lower-stepper-sensitivity.
- #lower_stepper_sensitivity=(lower_stepper_sensitivity) ⇒ Gtk::SensitivityType
-
#min_slider_size ⇒ Integer
This function is useful mainly for Gtk::Range subclasses.
-
#min_slider_size=(min_size) ⇒ nil
Sets the minimum size of the range’s slider.
-
#restrict_to_fill_level ⇒ TrueClass
Gets whether the range is restricted to the fill level.
-
#restrict_to_fill_level=(restrict_to_fill_level) ⇒ TrueClass
The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level.
-
#restrict_to_fill_level? ⇒ TrueClass
The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level.
-
#round_digits ⇒ Integer
The number of digits to round the value to when it changes, or -1.
-
#round_digits=(round_digits) ⇒ Integer
The number of digits to round the value to when it changes, or -1.
-
#set_increments(step, page) ⇒ nil
Sets the step and page sizes for the range.
-
#set_range(min, max) ⇒ nil
Sets the allowable values in the Gtk::Range, and clamps the range value to be between min and max.
-
#show_fill_level ⇒ TrueClass
Gets whether the range displays the fill level graphically.
-
#show_fill_level=(show_fill_level) ⇒ TrueClass
The show-fill-level property controls whether fill level indicator graphics are displayed on the trough.
-
#show_fill_level? ⇒ TrueClass
The show-fill-level property controls whether fill level indicator graphics are displayed on the trough.
-
#slider_size_fixed ⇒ TrueClass
This function is useful mainly for Gtk::Range subclasses.
-
#slider_size_fixed=(size_fixed) ⇒ nil
Sets whether the range’s slider has a fixed size, or a size that depends on its adjustment’s page size.
-
#upper_stepper_sensitivity ⇒ Gtk::SensitivityType
Upper-stepper-sensitivity.
- #upper_stepper_sensitivity=(upper_stepper_sensitivity) ⇒ Gtk::SensitivityType
-
#value ⇒ Float
Gets the current value of the range.
-
#value=(value) ⇒ nil
Sets the current value of the range; if the value is outside the minimum or maximum range values, it will be clamped to fit inside them.
Instance Method Details
#adjustment ⇒ Gtk::Adjustment
Returns adjustment.
#adjustment=(adjustment) ⇒ Gtk::Adjustment
#fill_level ⇒ Float
The fill level (e.g. prebuffering of a network stream). See gtk_range_set_fill_level().
#fill_level=(fill_level) ⇒ Float
The fill level (e.g. prebuffering of a network stream). See gtk_range_set_fill_level().
#flippable ⇒ TrueClass
Gets the value set by gtk_range_set_flippable().
#flippable=(flippable) ⇒ nil
If a range is flippable, it will switch its direction if it is horizontal and its direction is %GTK_TEXT_DIR_RTL.
See gtk_widget_get_direction().
#get_range_rect(range_rect) ⇒ nil
This function returns the area that contains the range’s trough and its steppers, in widget->window coordinates.
This function is useful mainly for Gtk::Range subclasses.
#get_slider_range(slider_start, slider_end) ⇒ nil
This function returns sliders range along the long dimension, in widget->window coordinates.
This function is useful mainly for Gtk::Range subclasses.
#inverted ⇒ TrueClass
Gets the value set by gtk_range_set_inverted().
#inverted=(inverted) ⇒ TrueClass
#inverted? ⇒ TrueClass
Returns inverted.
#lower_stepper_sensitivity ⇒ Gtk::SensitivityType
Returns lower-stepper-sensitivity.
#lower_stepper_sensitivity=(lower_stepper_sensitivity) ⇒ Gtk::SensitivityType
#min_slider_size ⇒ Integer
This function is useful mainly for Gtk::Range subclasses.
See gtk_range_set_min_slider_size().
#min_slider_size=(min_size) ⇒ nil
Sets the minimum size of the range’s slider.
This function is useful mainly for Gtk::Range subclasses.
#restrict_to_fill_level ⇒ TrueClass
Gets whether the range is restricted to the fill level.
#restrict_to_fill_level=(restrict_to_fill_level) ⇒ TrueClass
The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level. See gtk_range_set_restrict_to_fill_level().
#restrict_to_fill_level? ⇒ TrueClass
The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level. See gtk_range_set_restrict_to_fill_level().
#round_digits ⇒ Integer
The number of digits to round the value to when it changes, or -1. See Gtk::Range::change-value.
#round_digits=(round_digits) ⇒ Integer
The number of digits to round the value to when it changes, or -1. See Gtk::Range::change-value.
#set_increments(step, page) ⇒ nil
Sets the step and page sizes for the range. The step size is used when the user clicks the Gtk::Scrollbar arrows or moves Gtk::Scale via arrow keys. The page size is used for example when moving via Page Up or Page Down keys.
#set_range(min, max) ⇒ nil
Sets the allowable values in the Gtk::Range, and clamps the range value to be between min and max. (If the range has a non-zero page size, it is clamped between min and max - page-size.)
#show_fill_level ⇒ TrueClass
Gets whether the range displays the fill level graphically.
#show_fill_level=(show_fill_level) ⇒ TrueClass
The show-fill-level property controls whether fill level indicator graphics are displayed on the trough. See gtk_range_set_show_fill_level().
#show_fill_level? ⇒ TrueClass
The show-fill-level property controls whether fill level indicator graphics are displayed on the trough. See gtk_range_set_show_fill_level().
#slider_size_fixed ⇒ TrueClass
This function is useful mainly for Gtk::Range subclasses.
See gtk_range_set_slider_size_fixed().
#slider_size_fixed=(size_fixed) ⇒ nil
Sets whether the range’s slider has a fixed size, or a size that depends on its adjustment’s page size.
This function is useful mainly for Gtk::Range subclasses.
#upper_stepper_sensitivity ⇒ Gtk::SensitivityType
Returns upper-stepper-sensitivity.
#upper_stepper_sensitivity=(upper_stepper_sensitivity) ⇒ Gtk::SensitivityType
#value ⇒ Float
Gets the current value of the range.
#value=(value) ⇒ nil
Sets the current value of the range; if the value is outside the minimum or maximum range values, it will be clamped to fit inside them. The range emits the Gtk::Range::value-changed signal if the value changes.