Functions
gtk_adjustment_clamp_page ()
void
gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
gdouble lower,
gdouble upper);
Updates the “value” property to ensure that the range
between lower
and upper
is in the current page (i.e. between
“value” and “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 “value-changed” signal will be emitted if the value is changed.
gtk_adjustment_changed ()
void
gtk_adjustment_changed (GtkAdjustment *adjustment);
gtk_adjustment_changed has been deprecated since version 3.18 and should not be used in newly-written code.
GTK+ emits “changed” itself whenever any
of the properties (other than value) change
Emits a “changed” signal from the GtkAdjustment.
This is typically called by the owner of the GtkAdjustment after it has
changed any of the GtkAdjustment properties other than the value.
gtk_adjustment_value_changed ()
void
gtk_adjustment_value_changed (GtkAdjustment *adjustment);
gtk_adjustment_value_changed has been deprecated since version 3.18 and should not be used in newly-written code.
GTK+ emits “value-changed” itself whenever
the value changes
Emits a “value-changed” signal from the GtkAdjustment.
This is typically called by the owner of the GtkAdjustment after it has
changed the “value” property.
gtk_adjustment_get_lower ()
gdouble
gtk_adjustment_get_lower (GtkAdjustment *adjustment);
Retrieves the minimum value of the adjustment.
Returns
The current minimum value of the adjustment
Since: 2.14
gtk_adjustment_get_page_increment ()
gdouble
gtk_adjustment_get_page_increment (GtkAdjustment *adjustment);
Retrieves the page increment of the adjustment.
Returns
The current page increment of the adjustment
Since: 2.14
gtk_adjustment_get_page_size ()
gdouble
gtk_adjustment_get_page_size (GtkAdjustment *adjustment);
Retrieves the page size of the adjustment.
Returns
The current page size of the adjustment
Since: 2.14
gtk_adjustment_get_step_increment ()
gdouble
gtk_adjustment_get_step_increment (GtkAdjustment *adjustment);
Retrieves the step increment of the adjustment.
Returns
The current step increment of the adjustment.
Since: 2.14
gtk_adjustment_get_minimum_increment ()
gdouble
gtk_adjustment_get_minimum_increment (GtkAdjustment *adjustment);
Gets the smaller of step increment and page increment.
Returns
the minimum increment of adjustment
Since: 3.2
gtk_adjustment_get_upper ()
gdouble
gtk_adjustment_get_upper (GtkAdjustment *adjustment);
Retrieves the maximum value of the adjustment.
Returns
The current maximum value of the adjustment
Since: 2.14
gtk_adjustment_set_page_increment ()
void
gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
gdouble page_increment);
Sets the page increment of the adjustment.
See gtk_adjustment_set_lower() about how to compress multiple
emissions of the “changed” signal when setting
multiple adjustment properties.
Since: 2.14
gtk_adjustment_set_page_size ()
void
gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
gdouble page_size);
Sets the page size of the adjustment.
See gtk_adjustment_set_lower() about how to compress multiple
emissions of the GtkAdjustment::changed signal when setting
multiple adjustment properties.
Since: 2.14
gtk_adjustment_set_step_increment ()
void
gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
gdouble step_increment);
Sets the step increment of the adjustment.
See gtk_adjustment_set_lower() about how to compress multiple
emissions of the “changed” signal when setting
multiple adjustment properties.
Since: 2.14
gtk_adjustment_set_upper ()
void
gtk_adjustment_set_upper (GtkAdjustment *adjustment,
gdouble upper);
Sets the maximum value of the adjustment.
Note that values will be restricted by upper - page-size
if the page-size property is nonzero.
See gtk_adjustment_set_lower() about how to compress multiple
emissions of the “changed” signal when setting
multiple adjustment properties.
Since: 2.14