type Gtk_Table_Record is new Gtk.Container.Gtk_Container_Record with private;
type Gtk_Table is access all Gtk_Table_Record'Class;
N_Rows_Property : constant Glib.Properties.Property_Uint;
N_Columns_Property : constant Glib.Properties.Property_Uint;
Row_Spacing_Property : constant Glib.Properties.Property_Uint;
Column_Spacing_Property : constant Glib.Properties.Property_Uint;
Homogeneous_Property : constant Glib.Properties.Property_Boolean;
Bottom_Attach_Property : constant Glib.Properties.Property_Uint;
Left_Attach_Property : constant Glib.Properties.Property_Uint;
Right_Attach_Property : constant Glib.Properties.Property_Uint;
Top_Attach_Property : constant Glib.Properties.Property_Uint;
X_Padding_Property : constant Glib.Properties.Property_Uint;
Y_Padding_Property : constant Glib.Properties.Property_Uint;
procedure Initialize
( | Widget | : access Gtk_Table_Record'Class; |
Rows | : Guint; | |
Columns | : Guint; | |
Homogeneous | : Boolean); |
function Get_Type return Gtk.Gtk_Type;
procedure Resize
( | Table | : access Gtk_Table_Record; |
Rows | : Guint; | |
Columns | : Guint); |
procedure Attach
( | Table | : access Gtk_Table_Record; |
Child | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Left_Attach | : Guint; | |
Right_Attach | : Guint; | |
Top_Attach | : Guint; | |
Bottom_Attach | : Guint; | |
Xoptions | : Gtk_Attach_Options := Expand or Fill; | |
Yoptions | : Gtk_Attach_Options := Expand or Fill; | |
Xpadding | : Guint := 0; | |
Ypadding | : Guint := 0); |
procedure Attach_Defaults
( | Table | : access Gtk_Table_Record; |
Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Left_Attach | : Guint; | |
Right_Attach | : Guint; | |
Top_Attach | : Guint; | |
Bottom_Attach | : Guint); |
procedure Set_Row_Spacing
( | Table | : access Gtk_Table_Record; |
Row | : Guint; | |
Spacing | : Guint); |
procedure Set_Col_Spacing
( | Table | : access Gtk_Table_Record; |
Column | : Guint; | |
Spacing | : Guint); |
procedure Set_Row_Spacings
( | Table | : access Gtk_Table_Record; |
Spacing | : Guint); |
procedure Set_Col_Spacings
( | Table | : access Gtk_Table_Record; |
Spacing | : Guint); |
procedure Set_Homogeneous
( | Table | : access Gtk_Table_Record; |
Homogeneous | : Boolean); |
function Get_Row_Spacing
( | Table | : access Gtk_Table_Record; |
Row | : Guint) return Guint; |
function Get_Col_Spacing
( | Table | : access Gtk_Table_Record; |
Column | : Guint) return Guint; |
function Get_Default_Row_Spacing
( | Table | : access Gtk_Table_Record) return Guint; |
function Get_Default_Col_Spacing
( | Table | : access Gtk_Table_Record) return Guint; |
function Get_Homogeneous
( | Table | : access Gtk_Table_Record) return Boolean; |
A Gtk_Table is a container that can contain any number of children.
Each of them is attached to a specific row and a specific column in widget.
Every row in the table must have the same height, and every column must have the same width if the table was said as Homogeneous. But you can also decide to have an heterogeneous table, where the width and height are set by the children contained in the table.
Check out the Gtk_Sheet widget for a different kind of table that can also contain text and images in a more efficient way.
Binding from C File version 2.8.17