1Gtk2::ScrolledWindow(3)User Contributed Perl DocumentatioGntk2::ScrolledWindow(3)
2
3
4
6 Gtk2::ScrolledWindow - wrapper for GtkScrolledWindow
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Bin
15 +----Gtk2::ScrolledWindow
16
18 Glib::Object::_Unregistered::AtkImplementorIface
19 Gtk2::Buildable
20
22 widget = Gtk2::ScrolledWindow->new ($hadjustment=undef, $vadjustment=undef)
23 • $hadjustment (Gtk2::Adjustment or undef)
24
25 • $vadjustment (Gtk2::Adjustment or undef)
26
27 $scrolled_window->add_with_viewport ($child)
28 • $child (Gtk2::Widget)
29
30 adjustment = $scrolled_window->get_hadjustment
31 $scrolled_window->set_hadjustment ($hadjustment)
32 • $hadjustment (Gtk2::Adjustment)
33
34 widget or undef = $scrolled_window->get_hscrollbar
35 Since: gtk+ 2.8
36
37 cornertype = $scrolled_window->get_placement
38 $scrolled_window->set_placement ($window_placement)
39 • $window_placement (Gtk2::CornerType)
40
41 list = $scrolled_window->get_policy
42 $scrolled_window->set_policy ($hscrollbar_policy, $vscrollbar_policy)
43 • $hscrollbar_policy (Gtk2::PolicyType)
44
45 • $vscrollbar_policy (Gtk2::PolicyType)
46
47 shadowtype = $scrolled_window->get_shadow_type
48 $scrolled_window->set_shadow_type ($type)
49 • $type (Gtk2::ShadowType)
50
51 $scrolled_window->unset_placement
52 Since: gtk+ 2.10
53
54 adjustment = $scrolled_window->get_vadjustment
55 $scrolled_window->set_vadjustment ($hadjustment)
56 • $hadjustment (Gtk2::Adjustment)
57
58 widget or undef = $scrolled_window->get_vscrollbar
59 Since: gtk+ 2.8
60
62 'hadjustment' (Gtk2::Adjustment : default undef : readable / writable /
63 construct / private / static-nick / static-blurb)
64 The GtkAdjustment for the horizontal position
65
66 'hscrollbar-policy' (Gtk2::PolicyType : default "always" : readable /
67 writable / private / static-nick / static-blurb)
68 When the horizontal scrollbar is displayed
69
70 'shadow-type' (Gtk2::ShadowType : default "none" : readable / writable
71 / private / static-nick / static-blurb)
72 Style of bevel around the contents
73
74 'vadjustment' (Gtk2::Adjustment : default undef : readable / writable /
75 construct / private / static-nick / static-blurb)
76 The GtkAdjustment for the vertical position
77
78 'vscrollbar-policy' (Gtk2::PolicyType : default "always" : readable /
79 writable / private / static-nick / static-blurb)
80 When the vertical scrollbar is displayed
81
82 'window-placement' (Gtk2::CornerType : default "top-left" : readable /
83 writable / private / static-nick / static-blurb)
84 Where the contents are located with respect to the scrollbars. This
85 property only takes effect if "window-placement-set" is TRUE.
86
87 'window-placement-set' (boolean : default false : readable / writable /
88 private / static-nick / static-blurb)
89 Whether "window-placement" should be used to determine the location
90 of the contents with respect to the scrollbars.
91
93 'scrollbar-spacing' (integer : default 3 : readable / private / static-
94 nick / static-blurb)
95 Number of pixels between the scrollbars and the scrolled window
96
97 'scrollbars-within-bevel' (boolean : default false : readable / private
98 / static-nick / static-blurb)
99 Place scrollbars within the scrolled window's bevel
100
102 move-focus-out (Gtk2::ScrolledWindow, Gtk2::DirectionType)
103 boolean = scroll-child (Gtk2::ScrolledWindow, Gtk2::ScrollType,
104 boolean)
105
107 enum Gtk2::CornerType
108 • 'top-left' / 'GTK_CORNER_TOP_LEFT'
109
110 • 'bottom-left' / 'GTK_CORNER_BOTTOM_LEFT'
111
112 • 'top-right' / 'GTK_CORNER_TOP_RIGHT'
113
114 • 'bottom-right' / 'GTK_CORNER_BOTTOM_RIGHT'
115
116 enum Gtk2::DirectionType
117 • 'tab-forward' / 'GTK_DIR_TAB_FORWARD'
118
119 • 'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
120
121 • 'up' / 'GTK_DIR_UP'
122
123 • 'down' / 'GTK_DIR_DOWN'
124
125 • 'left' / 'GTK_DIR_LEFT'
126
127 • 'right' / 'GTK_DIR_RIGHT'
128
129 enum Gtk2::PolicyType
130 • 'always' / 'GTK_POLICY_ALWAYS'
131
132 • 'automatic' / 'GTK_POLICY_AUTOMATIC'
133
134 • 'never' / 'GTK_POLICY_NEVER'
135
136 enum Gtk2::ScrollType
137 • 'none' / 'GTK_SCROLL_NONE'
138
139 • 'jump' / 'GTK_SCROLL_JUMP'
140
141 • 'step-backward' / 'GTK_SCROLL_STEP_BACKWARD'
142
143 • 'step-forward' / 'GTK_SCROLL_STEP_FORWARD'
144
145 • 'page-backward' / 'GTK_SCROLL_PAGE_BACKWARD'
146
147 • 'page-forward' / 'GTK_SCROLL_PAGE_FORWARD'
148
149 • 'step-up' / 'GTK_SCROLL_STEP_UP'
150
151 • 'step-down' / 'GTK_SCROLL_STEP_DOWN'
152
153 • 'page-up' / 'GTK_SCROLL_PAGE_UP'
154
155 • 'page-down' / 'GTK_SCROLL_PAGE_DOWN'
156
157 • 'step-left' / 'GTK_SCROLL_STEP_LEFT'
158
159 • 'step-right' / 'GTK_SCROLL_STEP_RIGHT'
160
161 • 'page-left' / 'GTK_SCROLL_PAGE_LEFT'
162
163 • 'page-right' / 'GTK_SCROLL_PAGE_RIGHT'
164
165 • 'start' / 'GTK_SCROLL_START'
166
167 • 'end' / 'GTK_SCROLL_END'
168
169 enum Gtk2::ShadowType
170 • 'none' / 'GTK_SHADOW_NONE'
171
172 • 'in' / 'GTK_SHADOW_IN'
173
174 • 'out' / 'GTK_SHADOW_OUT'
175
176 • 'etched-in' / 'GTK_SHADOW_ETCHED_IN'
177
178 • 'etched-out' / 'GTK_SHADOW_ETCHED_OUT'
179
181 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
182 Gtk2::Container, Gtk2::Bin
183
185 Copyright (C) 2003-2011 by the gtk2-perl team.
186
187 This software is licensed under the LGPL. See Gtk2 for a full notice.
188
189
190
191perl v5.36.0 2022-07-22 Gtk2::ScrolledWindow(3)