PHP-GTK
Tuesday, September 23, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previouspre-activate
GtkAdjustment Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GtkAdjustment

A GtkObject representing an adjustable bounded value

Object Hierarchy

Description

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.

Methods

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.

Fields

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.

Signals

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


User Contributed Notes
gtk.gtkadjustment.php
add a note about notes
There are no user contributed notes for this page.


previouspre-activate
GtkAdjustment Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:56 2013 CEST