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       / static-nick / static-blurb)
76           Whether the children should all be the same size
77
78       'spacing' (integer : default 0 : readable / writable / private /
79       static-nick / static-blurb)
80           The amount of space between children
81

CHILD PROPERTIES

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

ENUMS AND FLAGS

106   enum Gtk2::PackType
107       •   'start' / 'GTK_PACK_START'
108
109       •   'end' / 'GTK_PACK_END'
110

SEE ALSO

112       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
113       Gtk2::Container
114
116       Copyright (C) 2003-2011 by the gtk2-perl team.
117
118       This software is licensed under the LGPL.  See Gtk2 for a full notice.
119
120
121
122perl v5.34.0                      2022-01-21                      Gtk2::Box(3)
Impressum