Adjustment
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_adjustment_get_type ()" ) ]
public class Adjustment : InitiallyUnowned
The Adjustment object represents a value which has an associated lower and upper bound, together with step and
page increments, and a page size.
It is used within several GTK+ widgets, including SpinButton,
Viewport, and Range (which is a base
class for Scrollbar and Scale).
The Adjustment object does not update the value itself. Instead it is left up to the owner of the
Adjustment to control the value.
Content:
Properties:
- public double lower { get; set; }
The minimum value of the adjustment.
- public double page_increment { get; set; }
The page increment of the adjustment.
- public double page_size { get; set; }
The page size of the adjustment.
- public double step_increment { get; set; }
The step increment of the adjustment.
- public double upper { get; set; }
The maximum value of the adjustment.
- public double value { get; set; }
The value of the adjustment.
Creation methods:
Methods:
- public void clamp_page (double lower, double upper)
Updates the value
property to ensure that the range between lower
and upper
is in the current page (i.
- public void configure (double value, double lower, double upper, double step_increment, double page_increment, double page_size)
Sets all properties of the adjustment at once.
- public double get_lower ()
Retrieves the minimum value of the adjustment.
- public double get_minimum_increment ()
Gets the smaller of step increment and page increment.
- public double get_page_increment ()
Retrieves the page increment of the adjustment.
- public double get_page_size ()
Retrieves the page size of the adjustment.
- public double get_step_increment ()
Retrieves the step increment of the adjustment.
- public double get_upper ()
Retrieves the maximum value of the adjustment.
- public double get_value ()
Gets the current value of the adjustment.
- public void set_lower (double lower)
Sets the minimum value of the adjustment.
- public void set_page_increment (double page_increment)
Sets the page increment of the adjustment.
- public void set_page_size (double page_size)
Sets the page size of the adjustment.
- public void set_step_increment (double step_increment)
Sets the step increment of the adjustment.
- public void set_upper (double upper)
Sets the maximum value of the adjustment.
- public void set_value (double value)
Sets the Adjustment value.
Signals:
- public virtual signal void changed ()
Emitted when one or more of the Adjustment
properties have been changed, other than the value property.
- public virtual signal void value_changed ()
Emitted when the
value property has been changed.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref