GtkAdjustment {RGtk2} | R Documentation |
A GtkObject representing an adjustable bounded value
gtkAdjustmentNew(value = NULL, lower = NULL, upper = NULL, step.incr = NULL, page.incr = NULL, page.size = NULL)
gtkAdjustmentGetValue(object)
gtkAdjustmentSetValue(object, value)
gtkAdjustmentClampPage(object, lower, upper)
gtkAdjustmentChanged(object)
gtkAdjustmentValueChanged(object)
gtkAdjustmentConfigure(object, value, lower, upper, step.increment, page.increment, page.size)
gtkAdjustmentGetLower(object)
gtkAdjustmentGetPageIncrement(object)
gtkAdjustmentGetPageSize(object)
gtkAdjustmentGetStepIncrement(object)
gtkAdjustmentGetUpper(object)
gtkAdjustmentSetLower(object, lower)
gtkAdjustmentSetPageIncrement(object, page.increment)
gtkAdjustmentSetPageSize(object, page.size)
gtkAdjustmentSetStepIncrement(object, step.increment)
gtkAdjustmentSetUpper(object, upper)
gtkAdjustment(value = NULL, lower = NULL, upper = NULL, step.incr = NULL, page.incr = NULL, page.size = NULL)
GObject +----GInitiallyUnowned +----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
gtkAdjustmentValueChanged
and gtkAdjustmentChanged
functions
after changing the value and its bounds. This results in the emission of the
"value_changed" or "changed" signal respectively.
GtkAdjustment
The GtkAdjustment
struct contains the following fields.
numericlower; | the minimum value. |
numericupper; | the maximum value. |
numericvalue; | the current value. |
numericstep_increment; | the increment to use to make minor changes to the value.
In a GtkScrollbar this increment is used when the mouse is clicked on the
arrows at the top and bottom of the scrollbar, to scroll by a small amount. |
numericpage_increment; | the increment to use to make major changes to the value.
In a GtkScrollbar this increment is used when the mouse is clicked in the
trough, to scroll by a large amount. |
numericpage_size; | the page size.
In a GtkScrollbar this is the size of the area which is currently visible. |
gtkAdjustment
is the equivalent of gtkAdjustmentNew
.
Derived by RGtkGen from GTK+ documentation
http://library.gnome.org/devel//gtk/GtkAdjustment.html