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 / static-
95       nick / static-blurb)
96           The minimum value of the adjustment
97
98       'page-increment' (double : default 0 : readable / writable / private /
99       static-nick / static-blurb)
100           The page increment of the adjustment
101
102       'page-size' (double : default 0 : readable / writable / private /
103       static-nick / static-blurb)
104           The page size of the adjustment
105
106       'step-increment' (double : default 0 : readable / writable / private /
107       static-nick / static-blurb)
108           The step increment of the adjustment
109
110       'upper' (double : default 0 : readable / writable / private / static-
111       nick / static-blurb)
112           The maximum value of the adjustment
113
114       'value' (double : default 0 : readable / writable / private / static-
115       nick / static-blurb)
116           The value of the adjustment
117

SIGNALS

119       changed (Gtk2::Adjustment)
120       value-changed (Gtk2::Adjustment)
121

SEE ALSO

123       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
124
126       Copyright (C) 2003-2011 by the gtk2-perl team.
127
128       This software is licensed under the LGPL.  See Gtk2 for a full notice.
129
130
131
132perl v5.38.0                      2023-07-20               Gtk2::Adjustment(3)
Impressum