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

NAME

6       Gtk2::Container - wrapper for GtkContainer
7

HIERARCHY

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

INTERFACES

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

METHODS

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

PROPERTIES

141       'border-width' (Glib::UInt : default 0 : readable / writable / private)
142           The width of the empty border outside the containers children
143
144       'child' (Gtk2::Widget : default undef : writable / private)
145           Can be used to add a new child to the container
146
147       'resize-mode' (Gtk2::ResizeMode : default "parent" : readable /
148       writable / private)
149           Specify how resize events are handled
150

SIGNALS

152       add (Gtk2::Container, Gtk2::Widget)
153       check-resize (Gtk2::Container)
154       remove (Gtk2::Container, Gtk2::Widget)
155       set-focus-child (Gtk2::Container, Gtk2::Widget)
156

ENUMS AND FLAGS

158   enum Gtk2::ResizeMode
159       ·   'parent' / 'GTK_RESIZE_PARENT'
160
161       ·   'queue' / 'GTK_RESIZE_QUEUE'
162
163       ·   'immediate' / 'GTK_RESIZE_IMMEDIATE'
164

SEE ALSO

166       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
167
169       Copyright (C) 2003-2011 by the gtk2-perl team.
170
171       This software is licensed under the LGPL.  See Gtk2 for a full notice.
172
173
174
175perl v5.30.0                      2019-07-26                Gtk2::Container(3)
Impressum