Forum und email

GtkAdjustment

A GtkObject representing an adjustable bounded value

Йерархия на обектите

GObject
`-- GtkObject
       `-- GtkAdjustment

Описание

The GtkAdjustment 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 GtkSpinButton, GtkViewport, and GtkRange (which is a base class for GtkHScrollbar, GtkVScrollbar, GtkHScale, and GtkVScale).

The GtkAdjustment object does not update the value itself. Instead it is left up to the owner of the GtkAdjustment to control the value.

The owner of the GtkAdjustment typically calls the value_changed() and changed() functions after changing the value and its bounds. This results in the emission of the "value-changed" or "changed" signal respectively.

Constructors

GtkAdjustment (double value, double lower, double upper, double step_increment, double page_increment, double page_size);

-- Creates a new GtkAdjustment.

Методи

changed()
  Emits a "changed" signal.
clamp_page()
  Ensure that the value is in a certain range.
get_value()
  Gets the current value of the adjustment.
set_value()
  Set the value.
value_changed()
  Emits a "value-changed" signal.

Полета

lower:
  The minimum value of the adjustment.
page_increment:
  The page increment of the adjustment.
page_size:
  The page size of the adjustment.
step_increment:
  The step increment of the adjustment.
upper:
  The maximum value of the adjustment.
value:
  The value of the adjustment.

Сигнали

"changed"
  One or more fields have changed.
"value-changed"
  The value field has been changed.