Class: Gtk::Adjustment
- Inherits:
-
GObject::InitiallyUnowned
- Object
- GObject::InitiallyUnowned
- Gtk::Adjustment
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#clamp_page(lower, upper) ⇒ nil
Updates the value property to ensure that the range between lower and upper is in the current page.
-
#configure(value, lower, upper, step_increment, page_increment, page_size) ⇒ nil
Sets all properties of the adjustment at once.
-
#initialize(value, lower, upper, step_increment, page_increment, page_size) ⇒ Gtk::Adjustment
constructor
Creates a new
GtkAdjustment. -
#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.
-
#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.
Constructor Details
#initialize(value, lower, upper, step_increment, page_increment, page_size) ⇒ Gtk::Adjustment
Creates a new GtkAdjustment.
Instance Method Details
#clamp_page(lower, upper) ⇒ nil
Updates the value property to ensure that the range between lower and upper is in the current page.
The current page goes from value to value + page-size.
If the range is larger than the page size, then only the
start of it will be in the current page.
A [signalGtk.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 [signalGtk.Adjustment::changed] signal. See [methodGtk.Adjustment.set_lower] for an alternative way of compressing multiple emissions of [signalGtk.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.
#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
GtkSpinButton.
#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
GtkSpinButton.
#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.