1Gtk2::Container(3) User Contributed Perl Documentation Gtk2::Container(3)
2
3
4
6 Gtk2::Container
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14
16 Glib::Object::_Unregistered::AtkImplementorIface
17 Gtk2::Buildable
18
20 $container->add ($widget)
21 · $widget (Gtk2::Widget)
22
23 $container->add_with_properties ($widget, ...)
24 · $widget (Gtk2::Widget)
25
26 · ... (list) list of property name/value pairs
27
28 integer = $container->get_border_width
29 $container->set_border_width ($border_width)
30 · $border_width (integer)
31
32 $container->check_resize
33 list = $container->child_get ($child, ...)
34 · $child (Gtk2::Widget)
35
36 · ... (list) list of property names
37
38 Returns a list of properties of the child.
39
40 list = $container->child_get_property ($child, ...)
41 · $child (Gtk2::Widget)
42
43 · ... (list)
44
45 Alias for child_get
46
47 $container->child_set ($child, ...)
48 · $child (Gtk2::Widget)
49
50 · ... (list) list of property name/value pairs
51
52 Sets a list of properties on the child.
53
54 $container->child_set_property ($child, ...)
55 · $child (Gtk2::Widget)
56
57 · ... (list)
58
59 Alias for child_set
60
61 string = $container->child_type
62 list = $container->get_children
63 Returns a list of Gtk2::Widget's, the children of the container.
64
65 list = $container->get_focus_chain
66 Returns a list of Gtk2::Widgets, the focus chain.
67
68 $container->set_focus_chain (...)
69 · ... (list) of Gtk2::Widget's, the focus chain
70
71 Sets a focus chain, overriding the one computed automatically by
72 GTK+.
73
74 In principle each widget in the chain should be a descendant of the
75 container, but this is not enforced by this method, since it's
76 allowed to set the focus chain before you pack the widgets, or have
77 a widget in the chain that isn't always packed. The necessary
78 checks are done when the focus chain is actually traversed.
79
80 widget or undef = $container->get_focus_child
81 Since: gtk+ 2.14
82
83 $container->set_focus_child ($child)
84 · $child (Gtk2::Widget or undef)
85
86 adjustment or undef = $container->get_focus_hadjustment
87 $container->set_focus_hadjustment ($adjustment)
88 · $adjustment (Gtk2::Adjustment or undef)
89
90 adjustment or undef = $container->get_focus_vadjustment
91 $container->set_focus_vadjustment ($adjustment)
92 · $adjustment (Gtk2::Adjustment or undef)
93
94 $container->forall ($callback, $callback_data=undef)
95 · $callback (subroutine) Code to invoke on each child widget
96
97 · $callback_data (scalar)
98
99 Invoke $callback on each child of $container, including "internal"
100 children. Most applications should not use this function. Compare
101 with Gtk2::Container::foreach.
102
103 $container->foreach ($callback, $callback_data=undef)
104 · $callback (subroutine) Code to invoke on each child widget
105
106 · $callback_data (scalar)
107
108 Invoke $callback on each child of $container, ignoring "internal"
109 children.
110
111 $container->propagate_expose ($child, $event)
112 · $child (Gtk2::Widget)
113
114 · $event (Gtk2::Gdk::Event)
115
116 $container->set_reallocate_redraws ($needs_redraws)
117 · $needs_redraws (boolean)
118
119 $container->remove ($widget)
120 · $widget (Gtk2::Widget)
121
122 $container->resize_children
123 resizemode = $container->get_resize_mode
124 $container->set_resize_mode ($resize_mode)
125 · $resize_mode (Gtk2::ResizeMode)
126
127 $container->unset_focus_chain
129 'border-width' (Glib::UInt : readable / writable / private)
130 The width of the empty border outside the containers children
131
132 'child' (Gtk2::Widget : writable / private)
133 Can be used to add a new child to the container
134
135 'resize-mode' (Gtk2::ResizeMode : readable / writable / private)
136 Specify how resize events are handled
137
139 add (Gtk2::Container, Gtk2::Widget)
140 remove (Gtk2::Container, Gtk2::Widget)
141 check-resize (Gtk2::Container)
142 set-focus-child (Gtk2::Container, Gtk2::Widget)
143
145 enum Gtk2::ResizeMode
146 · 'parent' / 'GTK_RESIZE_PARENT'
147
148 · 'queue' / 'GTK_RESIZE_QUEUE'
149
150 · 'immediate' / 'GTK_RESIZE_IMMEDIATE'
151
153 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
154
156 Copyright (C) 2003-2008 by the gtk2-perl team.
157
158 This software is licensed under the LGPL. See Gtk2 for a full notice.
159
160
161
162perl v5.12.0 2010-05-02 Gtk2::Container(3)