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

NAME

6       Gtk2::Container
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

METHODS

19       $container->add ($widget)
20
21           * $widget (Gtk2::Widget)
22
23       $container->add_with_properties ($widget, ...)
24
25           * $widget (Gtk2::Widget)
26           * ... (list) list of property name/value pairs
27
28       integer = $container->get_border_width
29
30       $container->set_border_width ($border_width)
31
32           * $border_width (integer)
33
34       $container->check_resize
35
36       list = $container->child_get ($child, ...)
37
38           * $child (Gtk2::Widget)
39           * ... (list) list of property names
40
41           Returns a list of properties of the child.
42
43       list = $container->child_get_property ($child, ...)
44
45           * $child (Gtk2::Widget)
46           * ... (list)
47
48           Alias for child_get
49
50       $container->child_set ($child, ...)
51
52           * $child (Gtk2::Widget)
53           * ... (list) list of property name/value pairs
54
55           Sets a list of properties on the child.
56
57       $container->child_set_property ($child, ...)
58
59           * $child (Gtk2::Widget)
60           * ... (list)
61
62           Alias for child_set
63
64       string = $container->child_type
65
66       list = $container->get_children
67
68           Returns a list of Gtk2::Widget's, the children of the container.
69
70       list = $container->get_focus_chain
71
72           Returns a list of Gtk2::Widgets, the focus chain.
73
74       $container->set_focus_chain (...)
75
76           * ... (list) of Gtk2::Widget's, the focus chain
77
78           Sets a focus chain, overriding the one computed automatically by
79           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
83           allowed to set the focus chain before you pack the widgets, or have
84           a widget in the chain that isn't always packed. The necessary
85           checks are done when the focus chain is actually traversed.
86
87       $container->set_focus_child ($child)
88
89           * $child (Gtk2::Widget)
90
91       adjustment or undef = $container->get_focus_hadjustment
92
93       $container->set_focus_hadjustment ($adjustment)
94
95           * $adjustment (Gtk2::Adjustment or undef)
96
97       adjustment or undef = $container->get_focus_vadjustment
98
99       $container->set_focus_vadjustment ($adjustment)
100
101           * $adjustment (Gtk2::Adjustment or undef)
102
103       $container->foreach ($callback, $callback_data=undef)
104
105           * $callback (scalar)
106           * $callback_data (scalar)
107
108       $container->propagate_expose ($child, $event)
109
110           * $child (Gtk2::Widget)
111           * $event (Gtk2::Gdk::Event)
112
113       $container->set_reallocate_redraws ($needs_redraws)
114
115           * $needs_redraws (boolean)
116
117       $container->remove ($widget)
118
119           * $widget (Gtk2::Widget)
120
121       $container->resize_children
122
123       resizemode = $container->get_resize_mode
124
125       $container->set_resize_mode ($resize_mode)
126
127           * $resize_mode (Gtk2::ResizeMode)
128
129       $container->unset_focus_chain
130

PROPERTIES

132       'border-width' (Glib::UInt : readable / writable / private)
133           The width of the empty border outside the containers children
134
135       'child' (Gtk2::Widget : writable / private)
136           Can be used to add a new child to the container
137
138       'resize-mode' (Gtk2::ResizeMode : readable / writable / private)
139           Specify how resize events are handled
140

SIGNALS

142       add (Gtk2::Container, Gtk2::Widget)
143       remove (Gtk2::Container, Gtk2::Widget)
144       check-resize (Gtk2::Container)
145       set-focus-child (Gtk2::Container, Gtk2::Widget)
146

ENUMS AND FLAGS

148       enum Gtk2::ResizeMode
149
150       * 'parent' / 'GTK_RESIZE_PARENT'
151       * 'queue' / 'GTK_RESIZE_QUEUE'
152       * 'immediate' / 'GTK_RESIZE_IMMEDIATE'
153

SEE ALSO

155       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
156
158       Copyright (C) 2003-2007 by the gtk2-perl team.
159
160       This software is licensed under the LGPL.  See Gtk2 for a full notice.
161
162
163
164perl v5.8.8                       2007-03-18                Gtk2::Container(3)
Impressum