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

NAME

6       Gtk2::Box - wrapper for GtkBox
7

HIERARCHY

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

INTERFACES

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

METHODS

22   $box->set_child_packing ($child, $expand, $fill, $padding, $pack_type)
23       ·   $child (Gtk2::Widget)
24
25       ·   $expand (boolean)
26
27       ·   $fill (boolean)
28
29       ·   $padding (integer)
30
31       ·   $pack_type (Gtk2::PackType)
32
33   boolean = $box->get_homogeneous
34   $box->set_homogeneous ($homogeneous)
35       ·   $homogeneous (boolean)
36
37   $box->pack_end ($child, $expand, $fill, $padding)
38       ·   $child (Gtk2::Widget)
39
40       ·   $expand (boolean)
41
42       ·   $fill (boolean)
43
44       ·   $padding (integer)
45
46   $box->pack_end_defaults ($widget)
47       ·   $widget (Gtk2::Widget)
48
49   $box->pack_start ($child, $expand, $fill, $padding)
50       ·   $child (Gtk2::Widget)
51
52       ·   $expand (boolean)
53
54       ·   $fill (boolean)
55
56       ·   $padding (integer)
57
58   $box->pack_start_defaults ($widget)
59       ·   $widget (Gtk2::Widget)
60
61   list = $box->query_child_packing ($child)
62       ·   $child (Gtk2::Widget)
63
64   $box->reorder_child ($child, $position)
65       ·   $child (Gtk2::Widget)
66
67       ·   $position (integer)
68
69   integer = $box->get_spacing
70   $box->set_spacing ($spacing)
71       ·   $spacing (integer)
72

PROPERTIES

74       'homogeneous' (boolean : default false : readable / writable / private)
75           Whether the children should all be the same size
76
77       'spacing' (integer : default 0 : readable / writable / private)
78           The amount of space between children
79

CHILD PROPERTIES

81       'expand' (boolean : default true : readable / writable / private)
82           Whether the child should receive extra space when the parent grows
83
84       'fill' (boolean : default true : readable / writable / private)
85           Whether extra space given to the child should be allocated to the
86           child or used as padding
87
88       'pack-type' (Gtk2::PackType : default "start" : readable / writable /
89       private)
90           A GtkPackType indicating whether the child is packed with reference
91           to the start or end of the parent
92
93       'padding' (Glib::UInt : default 0 : readable / writable / private)
94           Extra space to put between the child and its neighbors, in pixels
95
96       'position' (integer : default 0 : readable / writable / private)
97           The index of the child in the parent
98

ENUMS AND FLAGS

100   enum Gtk2::PackType
101       ·   'start' / 'GTK_PACK_START'
102
103       ·   'end' / 'GTK_PACK_END'
104

SEE ALSO

106       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
107       Gtk2::Container
108
110       Copyright (C) 2003-2011 by the gtk2-perl team.
111
112       This software is licensed under the LGPL.  See Gtk2 for a full notice.
113
114
115
116perl v5.30.0                      2019-07-26                      Gtk2::Box(3)
Impressum