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

NAME

6       Gtk2::Notebook
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Notebook
15

INTERFACES

17         Glib::Object::_Unregistered::AtkImplementorIface
18         Gtk2::Buildable
19

METHODS

21   widget = Gtk2::Notebook->new
22   integer = $notebook->append_page ($child, $tab_label=undef)
23           ·   $child (Gtk2::Widget)
24
25           ·   $tab_label (scalar)
26
27           (integer return since Gtk2-Perl 1.080)
28
29   integer = $notebook->append_page_menu ($child, $tab_label, $menu_label)
30           ·   $child (Gtk2::Widget)
31
32           ·   $tab_label (Gtk2::Widget or undef)
33
34           ·   $menu_label (Gtk2::Widget or undef)
35
36           (integer return since Gtk2-Perl 1.080)
37
38   integer = $notebook->get_current_page
39   $notebook->set_current_page ($page_num)
40           ·   $page_num (integer)
41
42   integer = $notebook->get_group_id
43           Since: gtk+ 2.10
44
45   $notebook->set_group_id ($group_id)
46           ·   $group_id (integer)
47
48           Since: gtk+ 2.10
49
50   integer = $notebook->insert_page ($child, $tab_label, $position)
51           ·   $child (Gtk2::Widget)
52
53           ·   $tab_label (scalar)
54
55           ·   $position (integer)
56
57           (integer return since Gtk2-Perl 1.080)
58
59   integer = $notebook->insert_page_menu ($child, $tab_label, $menu_label,
60       $position)
61           ·   $child (Gtk2::Widget)
62
63           ·   $tab_label (Gtk2::Widget or undef)
64
65           ·   $menu_label (Gtk2::Widget or undef)
66
67           ·   $position (integer)
68
69           (integer return since Gtk2-Perl 1.080)
70
71   widget or undef = $notebook->get_menu_label ($child)
72           ·   $child (Gtk2::Widget)
73
74   $notebook->set_menu_label ($child, $menu_label=undef)
75           ·   $child (Gtk2::Widget)
76
77           ·   $menu_label (Gtk2::Widget or undef)
78
79   string = $notebook->get_menu_label_text ($child)
80           ·   $child (Gtk2::Widget)
81
82   $notebook->set_menu_label_text ($child, $menu_text)
83           ·   $child (Gtk2::Widget)
84
85           ·   $menu_text (string)
86
87   integer = $notebook->get_n_pages
88   $notebook->next_page
89   widget or undef = $notebook->get_nth_page ($page_num)
90           ·   $page_num (integer)
91
92   integer = $notebook->page_num ($child)
93           ·   $child (Gtk2::Widget)
94
95   $notebook->popup_disable
96   $notebook->popup_enable
97   integer = $notebook->prepend_page ($child, $tab_label=undef)
98           ·   $child (Gtk2::Widget)
99
100           ·   $tab_label (scalar)
101
102           (integer return since Gtk2-Perl 1.080)
103
104   integer = $notebook->prepend_page_menu ($child, $tab_label, $menu_label)
105           ·   $child (Gtk2::Widget)
106
107           ·   $tab_label (Gtk2::Widget or undef)
108
109           ·   $menu_label (Gtk2::Widget or undef)
110
111           (integer return since Gtk2-Perl 1.080)
112
113   $notebook->prev_page
114   list = $notebook->query_tab_label_packing ($child)
115           ·   $child (Gtk2::Widget)
116
117   $notebook->remove_page ($page_num)
118           ·   $page_num (integer)
119
120   $notebook->reorder_child ($child, $position)
121           ·   $child (Gtk2::Widget)
122
123           ·   $position (integer)
124
125   boolean = $notebook->get_scrollable
126   $notebook->set_scrollable ($scrollable)
127           ·   $scrollable (boolean)
128
129   boolean = $notebook->get_show_border
130   $notebook->set_show_border ($show_border)
131           ·   $show_border (boolean)
132
133   boolean = $notebook->get_show_tabs
134   $notebook->set_show_tabs ($show_tabs)
135           ·   $show_tabs (boolean)
136
137   $notebook->set_tab_border ($border_width)
138           ·   $border_width (integer)
139
140   boolean = $notebook->get_tab_detachable ($child)
141           ·   $child (Gtk2::Widget)
142
143           Since: gtk+ 2.10
144
145   $notebook->set_tab_detachable ($child, $detachable)
146           ·   $child (Gtk2::Widget)
147
148           ·   $detachable (boolean)
149
150           Since: gtk+ 2.10
151
152   $notebook->set_tab_hborder ($tab_hborder)
153           ·   $tab_hborder (integer)
154
155   widget = $notebook->get_tab_label ($child)
156           ·   $child (Gtk2::Widget)
157
158   $notebook->set_tab_label_packing ($child, $expand, $fill, $pack_type)
159           ·   $child (Gtk2::Widget)
160
161           ·   $expand (boolean)
162
163           ·   $fill (boolean)
164
165           ·   $pack_type (Gtk2::PackType)
166
167   $notebook->set_tab_label ($child, $tab_label=undef)
168           ·   $child (Gtk2::Widget)
169
170           ·   $tab_label (Gtk2::Widget or undef)
171
172   string = $notebook->get_tab_label_text ($child)
173           ·   $child (Gtk2::Widget)
174
175   $notebook->set_tab_label_text ($child, $tab_text)
176           ·   $child (Gtk2::Widget)
177
178           ·   $tab_text (string)
179
180   positiontype = $notebook->get_tab_pos
181   $notebook->set_tab_pos ($pos)
182           ·   $pos (Gtk2::PositionType)
183
184   boolean = $notebook->get_tab_reorderable ($child)
185           ·   $child (Gtk2::Widget)
186
187           Since: gtk+ 2.10
188
189   $notebook->set_tab_reorderable ($child, $reorderable)
190           ·   $child (Gtk2::Widget)
191
192           ·   $reorderable (boolean)
193
194           Since: gtk+ 2.10
195
196   $notebook->set_tab_vborder ($tab_vborder)
197           ·   $tab_vborder (integer)
198
199   Gtk2::Notebook->set_window_creation_hook ($func, $data=undef)
200           ·   $func (scalar)
201
202           ·   $data (scalar)
203
204           Since: gtk+ 2.10
205

PROPERTIES

207       'enable-popup' (boolean : readable / writable / private)
208           If TRUE, pressing the right mouse button on the notebook pops up a
209           menu that you can use to go to a page
210
211       'group' (gpointer : readable / writable / private)
212           Group for tabs drag and drop
213
214       'group-id' (integer : readable / writable / private)
215           Group ID for tabs drag and drop
216
217       'homogeneous' (boolean : readable / writable / private)
218           Whether tabs should have homogeneous sizes
219
220       'page' (integer : readable / writable / private)
221           The index of the current page
222
223       'scrollable' (boolean : readable / writable / private)
224           If TRUE, scroll arrows are added if there are too many tabs to fit
225
226       'show-border' (boolean : readable / writable / private)
227           Whether the border should be shown or not
228
229       'show-tabs' (boolean : readable / writable / private)
230           Whether tabs should be shown or not
231
232       'tab-border' (Glib::UInt : writable / private)
233           Width of the border around the tab labels
234
235       'tab-hborder' (Glib::UInt : readable / writable / private)
236           Width of the horizontal border of tab labels
237
238       'tab-pos' (Gtk2::PositionType : readable / writable / private)
239           Which side of the notebook holds the tabs
240
241       'tab-vborder' (Glib::UInt : readable / writable / private)
242           Width of the vertical border of tab labels
243

SIGNALS

245       switch-page (Gtk2::Notebook, gpointer, Glib::UInt)
246       boolean = focus-tab (Gtk2::Notebook, Gtk2::NotebookTab)
247       boolean = select-page (Gtk2::Notebook, boolean)
248       boolean = change-current-page (Gtk2::Notebook, integer)
249       move-focus-out (Gtk2::Notebook, Gtk2::DirectionType)
250       boolean = reorder-tab (Gtk2::Notebook, Gtk2::DirectionType, boolean)
251       page-reordered (Gtk2::Notebook, Gtk2::Widget, Glib::UInt)
252       page-removed (Gtk2::Notebook, Gtk2::Widget, Glib::UInt)
253       page-added (Gtk2::Notebook, Gtk2::Widget, Glib::UInt)
254       Gtk2::Notebook = create-window (Gtk2::Notebook, Gtk2::Widget, integer,
255       integer)
256

ENUMS AND FLAGS

258   enum Gtk2::DirectionType
259       ·   'tab-forward' / 'GTK_DIR_TAB_FORWARD'
260
261       ·   'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
262
263       ·   'up' / 'GTK_DIR_UP'
264
265       ·   'down' / 'GTK_DIR_DOWN'
266
267       ·   'left' / 'GTK_DIR_LEFT'
268
269       ·   'right' / 'GTK_DIR_RIGHT'
270
271   enum Gtk2::NotebookTab
272       ·   'first' / 'GTK_NOTEBOOK_TAB_FIRST'
273
274       ·   'last' / 'GTK_NOTEBOOK_TAB_LAST'
275
276   enum Gtk2::PackType
277       ·   'start' / 'GTK_PACK_START'
278
279       ·   'end' / 'GTK_PACK_END'
280
281   enum Gtk2::PositionType
282       ·   'left' / 'GTK_POS_LEFT'
283
284       ·   'right' / 'GTK_POS_RIGHT'
285
286       ·   'top' / 'GTK_POS_TOP'
287
288       ·   'bottom' / 'GTK_POS_BOTTOM'
289

SEE ALSO

291       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
292       Gtk2::Container
293
295       Copyright (C) 2003-2008 by the gtk2-perl team.
296
297       This software is licensed under the LGPL.  See Gtk2 for a full notice.
298
299
300
301perl v5.12.0                      2010-05-02                 Gtk2::Notebook(3)
Impressum