1Gtk2::Adjustment(3)   User Contributed Perl Documentation  Gtk2::Adjustment(3)
2
3
4

NAME

6       Gtk2::Adjustment - wrapper for GtkAdjustment
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Adjustment
13

METHODS

15   object = Gtk2::Adjustment->new ($value, $lower, $upper, $step_increment,
16       $page_increment, $page_size)
17       ·   $value (double)
18
19       ·   $lower (double)
20
21       ·   $upper (double)
22
23       ·   $step_increment (double)
24
25       ·   $page_increment (double)
26
27       ·   $page_size (double)
28
29   $adjustment->changed
30   $adjustment->clamp_page ($lower, $upper)
31       ·   $lower (double)
32
33       ·   $upper (double)
34
35   $adjustment->configure ($value, $lower, $upper, $step_increment,
36       $page_increment, $page_size)
37       ·   $value (double)
38
39       ·   $lower (double)
40
41       ·   $upper (double)
42
43       ·   $step_increment (double)
44
45       ·   $page_increment (double)
46
47       ·   $page_size (double)
48
49       Since: gtk+ 2.14
50
51   $adjustment->set_lower ($newval)
52   $adjustment->set_page_increment ($newval)
53   $adjustment->set_page_size ($newval)
54   $adjustment->set_step_increment ($newval)
55   $adjustment->set_upper ($newval)
56       ·   $newval (double)
57
58       These functions differ from the plain "->lower" etc setters in that
59       they emit "notify" and "changed" signals if $newval is different from
60       the current value.
61
62       The corresponding "get_lower" etc are not wrapped because they're the
63       same as the "lower" etc field accessors above.
64
65       Since: gtk+ 2.14
66
67   double = $adjustment->value
68   double = $adjustment->value ($newval)
69   double = $adjustment->lower
70   double = $adjustment->lower ($newval)
71   double = $adjustment->upper
72   double = $adjustment->upper ($newval)
73   double = $adjustment->step_increment
74   double = $adjustment->step_increment ($newval)
75   double = $adjustment->page_increment
76   double = $adjustment->page_increment ($newval)
77   double = $adjustment->page_size
78   double = $adjustment->page_size ($newval)
79       ·   $newval (double)
80
81       Get or set the six fields of a Gtk2::Adjustment.
82
83       The setter functions store $newval and return the old value.  Note that
84       they don't emit any signals; it's up to you to emit "notify" (because
85       the fields are also properties) and "changed" or "value-changed", when
86       you're ready.
87
88   $adjustment->value_changed
89   double = $adjustment->get_value
90   $adjustment->set_value ($value)
91       ·   $value (double)
92

PROPERTIES

94       'lower' (double : default 0 : readable / writable / private)
95           The minimum value of the adjustment
96
97       'page-increment' (double : default 0 : readable / writable / private)
98           The page increment of the adjustment
99
100       'page-size' (double : default 0 : readable / writable / private)
101           The page size of the adjustment
102
103       'step-increment' (double : default 0 : readable / writable / private)
104           The step increment of the adjustment
105
106       'upper' (double : default 0 : readable / writable / private)
107           The maximum value of the adjustment
108
109       'value' (double : default 0 : readable / writable / private)
110           The value of the adjustment
111

SIGNALS

113       changed (Gtk2::Adjustment)
114       value-changed (Gtk2::Adjustment)
115

SEE ALSO

117       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
118
120       Copyright (C) 2003-2011 by the gtk2-perl team.
121
122       This software is licensed under the LGPL.  See Gtk2 for a full notice.
123
124
125
126perl v5.30.0                      2019-07-26               Gtk2::Adjustment(3)
Impressum