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

NAME

6       Gtk2::Table - wrapper for GtkTable
7

HIERARCHY

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

INTERFACES

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

METHODS

21   widget = Gtk2::Table->new ($rows, $columns, $homogeneous=FALSE)
22       •   $rows (integer)
23
24       •   $columns (integer)
25
26       •   $homogeneous (boolean)
27
28   $table->attach ($child, $left_attach, $right_attach, $top_attach,
29       $bottom_attach, $xoptions, $yoptions, $xpadding, $ypadding)
30       •   $child (Gtk2::Widget)
31
32       •   $left_attach (integer)
33
34       •   $right_attach (integer)
35
36       •   $top_attach (integer)
37
38       •   $bottom_attach (integer)
39
40       •   $xoptions (Gtk2::AttachOptions)
41
42       •   $yoptions (Gtk2::AttachOptions)
43
44       •   $xpadding (integer)
45
46       •   $ypadding (integer)
47
48   $table->attach_defaults ($widget, $left_attach, $right_attach, $top_attach,
49       $bottom_attach)
50       •   $widget (Gtk2::Widget)
51
52       •   $left_attach (integer)
53
54       •   $right_attach (integer)
55
56       •   $top_attach (integer)
57
58       •   $bottom_attach (integer)
59
60   integer = $table->get_col_spacing ($column)
61       •   $column (integer)
62
63   $table->set_col_spacing ($column, $spacing)
64       •   $column (integer)
65
66       •   $spacing (integer)
67
68   $table->set_col_spacings ($spacing)
69       •   $spacing (integer)
70
71   integer = $table->get_default_col_spacing
72   integer = $table->get_default_row_spacing
73   boolean = $table->get_homogeneous
74   $table->set_homogeneous ($homogeneous)
75       •   $homogeneous (boolean)
76
77   $table->resize ($rows, $columns)
78       •   $rows (integer)
79
80       •   $columns (integer)
81
82   integer = $table->get_row_spacing ($row)
83       •   $row (integer)
84
85   $table->set_row_spacing ($row, $spacing)
86       •   $row (integer)
87
88       •   $spacing (integer)
89
90   $table->set_row_spacings ($spacing)
91       •   $spacing (integer)
92
93   (rows, columns) = $table->get_size
94       Since: gtk+ 2.22
95

PROPERTIES

97       'column-spacing' (Glib::UInt : default 0 : readable / writable /
98       private / static-nick / static-blurb)
99           The amount of space between two consecutive columns
100
101       'homogeneous' (boolean : default false : readable / writable / private
102       / static-nick / static-blurb)
103           If TRUE, the table cells are all the same width/height
104
105       'n-columns' (Glib::UInt : default 1 : readable / writable / private /
106       static-nick / static-blurb)
107           The number of columns in the table
108
109       'n-rows' (Glib::UInt : default 1 : readable / writable / private /
110       static-nick / static-blurb)
111           The number of rows in the table
112
113       'row-spacing' (Glib::UInt : default 0 : readable / writable / private /
114       static-nick / static-blurb)
115           The amount of space between two consecutive rows
116

CHILD PROPERTIES

118       'bottom-attach' (Glib::UInt : default 1 : readable / writable / private
119       / static-nick / static-blurb)
120           The row number to attach the bottom of the child to
121
122       'left-attach' (Glib::UInt : default 0 : readable / writable / private /
123       static-nick / static-blurb)
124           The column number to attach the left side of the child to
125
126       'right-attach' (Glib::UInt : default 1 : readable / writable / private
127       / static-nick / static-blurb)
128           The column number to attach the right side of a child widget to
129
130       'top-attach' (Glib::UInt : default 0 : readable / writable / private /
131       static-nick / static-blurb)
132           The row number to attach the top of a child widget to
133
134       'x-options' (Gtk2::AttachOptions : default expand,fill : readable /
135       writable / private / static-nick / static-blurb)
136           Options specifying the horizontal behaviour of the child
137
138       'x-padding' (Glib::UInt : default 0 : readable / writable / private /
139       static-nick / static-blurb)
140           Extra space to put between the child and its left and right
141           neighbors, in pixels
142
143       'y-options' (Gtk2::AttachOptions : default expand,fill : readable /
144       writable / private / static-nick / static-blurb)
145           Options specifying the vertical behaviour of the child
146
147       'y-padding' (Glib::UInt : default 0 : readable / writable / private /
148       static-nick / static-blurb)
149           Extra space to put between the child and its upper and lower
150           neighbors, in pixels
151

ENUMS AND FLAGS

153   flags Gtk2::AttachOptions
154       •   'expand' / 'GTK_EXPAND'
155
156       •   'shrink' / 'GTK_SHRINK'
157
158       •   'fill' / 'GTK_FILL'
159

SEE ALSO

161       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
162       Gtk2::Container
163
165       Copyright (C) 2003-2011 by the gtk2-perl team.
166
167       This software is licensed under the LGPL.  See Gtk2 for a full notice.
168
169
170
171perl v5.32.1                      2021-01-27                    Gtk2::Table(3)
Impressum