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)
99           The amount of space between two consecutive columns
100
101       'homogeneous' (boolean : default false : readable / writable / private)
102           If TRUE, the table cells are all the same width/height
103
104       'n-columns' (Glib::UInt : default 1 : readable / writable / private)
105           The number of columns in the table
106
107       'n-rows' (Glib::UInt : default 1 : readable / writable / private)
108           The number of rows in the table
109
110       'row-spacing' (Glib::UInt : default 0 : readable / writable / private)
111           The amount of space between two consecutive rows
112

CHILD PROPERTIES

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

ENUMS AND FLAGS

144   flags Gtk2::AttachOptions
145       ·   'expand' / 'GTK_EXPAND'
146
147       ·   'shrink' / 'GTK_SHRINK'
148
149       ·   'fill' / 'GTK_FILL'
150

SEE ALSO

152       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
153       Gtk2::Container
154
156       Copyright (C) 2003-2011 by the gtk2-perl team.
157
158       This software is licensed under the LGPL.  See Gtk2 for a full notice.
159
160
161
162perl v5.28.0                      2018-07-18                    Gtk2::Table(3)
Impressum