1Gtk2::Container(3) User Contributed Perl Documentation Gtk2::Container(3)
2
3
4
6 Gtk2::Container - wrapper for GtkContainer
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 pspec or undef = $object_or_class_name->find_child_property ($name)
66 · $name (string)
67
68 Return a "Glib::ParamSpec" for child property $name on container
69 $object_or_class_name. If there's no property $name then return
70 "undef". See Glib::Object "list_properties" for the fields in a
71 ParamSpec.
72
73 list = $container->get_focus_chain
74 Returns a list of Gtk2::Widgets, the focus chain.
75
76 $container->set_focus_chain (...)
77 · ... (list) of Gtk2::Widget's, the focus chain
78
79 Sets a focus chain, overriding the one computed automatically by GTK+.
80
81 In principle each widget in the chain should be a descendant of the
82 container, but this is not enforced by this method, since it's allowed
83 to set the focus chain before you pack the widgets, or have a widget in
84 the chain that isn't always packed. The necessary checks are done when
85 the focus chain is actually traversed.
86
87 widget or undef = $container->get_focus_child
88 Since: gtk+ 2.14
89
90 $container->set_focus_child ($child)
91 · $child (Gtk2::Widget or undef)
92
93 adjustment or undef = $container->get_focus_hadjustment
94 $container->set_focus_hadjustment ($adjustment)
95 · $adjustment (Gtk2::Adjustment or undef)
96
97 adjustment or undef = $container->get_focus_vadjustment
98 $container->set_focus_vadjustment ($adjustment)
99 · $adjustment (Gtk2::Adjustment or undef)
100
101 $container->forall ($callback, $callback_data=undef)
102 · $callback (subroutine) Code to invoke on each child widget
103
104 · $callback_data (scalar)
105
106 Invoke $callback on each child of $container, including "internal"
107 children. Most applications should not use this function. Compare
108 with Gtk2::Container::foreach.
109
110 $container->foreach ($callback, $callback_data=undef)
111 · $callback (subroutine) Code to invoke on each child widget
112
113 · $callback_data (scalar)
114
115 Invoke $callback on each child of $container, ignoring "internal"
116 children.
117
118 list = $object_or_class_name->list_child_properties
119 Return a list of "Glib::ParamSpec" objects which are the child
120 properties available for children of a container $object_or_class_name.
121 See Glib::Object "list_properties" for the fields in a ParamSpec.
122
123 $container->propagate_expose ($child, $event)
124 · $child (Gtk2::Widget)
125
126 · $event (Gtk2::Gdk::Event)
127
128 $container->set_reallocate_redraws ($needs_redraws)
129 · $needs_redraws (boolean)
130
131 $container->remove ($widget)
132 · $widget (Gtk2::Widget)
133
134 $container->resize_children
135 resizemode = $container->get_resize_mode
136 $container->set_resize_mode ($resize_mode)
137 · $resize_mode (Gtk2::ResizeMode)
138
139 $container->unset_focus_chain
141 'border-width' (Glib::UInt : default 0 : readable / writable / private
142 / static-nick / static-blurb)
143 The width of the empty border outside the containers children
144
145 'child' (Gtk2::Widget : default undef : writable / private / static-
146 nick / static-blurb)
147 Can be used to add a new child to the container
148
149 'resize-mode' (Gtk2::ResizeMode : default "parent" : readable /
150 writable / private / static-nick / static-blurb)
151 Specify how resize events are handled
152
154 add (Gtk2::Container, Gtk2::Widget)
155 check-resize (Gtk2::Container)
156 remove (Gtk2::Container, Gtk2::Widget)
157 set-focus-child (Gtk2::Container, Gtk2::Widget)
158
160 enum Gtk2::ResizeMode
161 · 'parent' / 'GTK_RESIZE_PARENT'
162
163 · 'queue' / 'GTK_RESIZE_QUEUE'
164
165 · 'immediate' / 'GTK_RESIZE_IMMEDIATE'
166
168 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
169
171 Copyright (C) 2003-2011 by the gtk2-perl team.
172
173 This software is licensed under the LGPL. See Gtk2 for a full notice.
174
175
176
177perl v5.32.0 2020-07-28 Gtk2::Container(3)