Class: Gtk::Adjustment
- Inherits:
-
Object
- Object
- Gtk::Adjustment
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#changed ⇒ nil
Emits a Gtk::Adjustment::changed signal from the #GtkAdjustment.
-
#clamp_page(lower, upper) ⇒ nil
Updates the Gtk::Adjustment:value property to ensure that the range between lower and upper is in the current page (i.e. between Gtk::Adjustment:value and #GtkAdjustment:value + #GtkAdjustment:page-size).
-
#configure(value, lower, upper, step_increment, page_increment, page_size) ⇒ nil
Sets all properties of the adjustment at once.
-
#lower ⇒ Float
The minimum value of the adjustment.
-
#lower=(lower) ⇒ Float
The minimum value of the adjustment.
-
#minimum_increment ⇒ Float
Gets the smaller of step increment and page increment.
-
#new(value, lower, upper, step_increment, page_increment, page_size) ⇒ Gtk::Adjustment
Creates a new Gtk::Adjustment.
-
#page_increment ⇒ Float
The page increment of the adjustment.
-
#page_increment=(page_increment) ⇒ Float
The page increment of the adjustment.
-
#page_size ⇒ Float
The page size of the adjustment.
-
#page_size=(page_size) ⇒ Float
The page size of the adjustment.
-
#step_increment ⇒ Float
The step increment of the adjustment.
-
#step_increment=(step_increment) ⇒ Float
The step increment of the adjustment.
-
#upper ⇒ Float
The maximum value of the adjustment.
-
#upper=(upper) ⇒ Float
The maximum value of the adjustment.
-
#value ⇒ Float
The value of the adjustment.
-
#value=(value) ⇒ Float
The value of the adjustment.
-
#value_changed ⇒ nil
Emits a Gtk::Adjustment::value-changed signal from the #GtkAdjustment.
Instance Method Details
#changed ⇒ nil
Emits a Gtk::Adjustment::changed signal from the #GtkAdjustment. This is typically called by the owner of the Gtk::Adjustment after it has changed any of the Gtk::Adjustment properties other than the value.
#clamp_page(lower, upper) ⇒ nil
Updates the Gtk::Adjustment:value property to ensure that the range between lower and upper is in the current page (i.e. between Gtk::Adjustment:value and #GtkAdjustment:value + #GtkAdjustment:page-size). If the range is larger than the page size, then only the start of it will be in the current page.
A Gtk::Adjustment::value-changed signal will be emitted if the value is changed.
#configure(value, lower, upper, step_increment, page_increment, page_size) ⇒ nil
Sets all properties of the adjustment at once.
Use this function to avoid multiple emissions of the Gtk::Adjustment::changed signal. See gtk_adjustment_set_lower() for an alternative way of compressing multiple emissions of Gtk::Adjustment::changed into one.
#lower ⇒ Float
The minimum value of the adjustment.
#lower=(lower) ⇒ Float
The minimum value of the adjustment.
#minimum_increment ⇒ Float
Gets the smaller of step increment and page increment.
#new(value, lower, upper, step_increment, page_increment, page_size) ⇒ Gtk::Adjustment
Creates a new Gtk::Adjustment.
#page_increment ⇒ Float
The page increment of the adjustment.
#page_increment=(page_increment) ⇒ Float
The page increment of the adjustment.
#page_size ⇒ Float
The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g. in a Gtk::SpinButton.
#page_size=(page_size) ⇒ Float
The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g. in a Gtk::SpinButton.
#step_increment ⇒ Float
The step increment of the adjustment.
#step_increment=(step_increment) ⇒ Float
The step increment of the adjustment.
#upper ⇒ Float
The maximum value of the adjustment. Note that values will be restricted by ‘upper - page-size` if the page-size property is nonzero.
#upper=(upper) ⇒ Float
The maximum value of the adjustment. Note that values will be restricted by ‘upper - page-size` if the page-size property is nonzero.
#value ⇒ Float
The value of the adjustment.
#value=(value) ⇒ Float
The value of the adjustment.
#value_changed ⇒ nil
Emits a Gtk::Adjustment::value-changed signal from the #GtkAdjustment. This is typically called by the owner of the Gtk::Adjustment after it has changed the Gtk::Adjustment:value property.