![]() |
![]() |
![]() |
GTK+ 3 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <gtk/gtk.h> GtkTable; GtkWidget* gtk_table_new (guint rows
,guint columns
,gboolean homogeneous
); void gtk_table_resize (GtkTable *table
,guint rows
,guint columns
); void gtk_table_get_size (GtkTable *table
,guint *rows
,guint *columns
); void gtk_table_attach (GtkTable *table
,GtkWidget *child
,guint left_attach
,guint right_attach
,guint top_attach
,guint bottom_attach
,GtkAttachOptions xoptions
,GtkAttachOptions yoptions
,guint xpadding
,guint ypadding
); void gtk_table_attach_defaults (GtkTable *table
,GtkWidget *widget
,guint left_attach
,guint right_attach
,guint top_attach
,guint bottom_attach
); void gtk_table_set_row_spacing (GtkTable *table
,guint row
,guint spacing
); void gtk_table_set_col_spacing (GtkTable *table
,guint column
,guint spacing
); void gtk_table_set_row_spacings (GtkTable *table
,guint spacing
); void gtk_table_set_col_spacings (GtkTable *table
,guint spacing
); void gtk_table_set_homogeneous (GtkTable *table
,gboolean homogeneous
); guint gtk_table_get_default_row_spacing (GtkTable *table
); gboolean gtk_table_get_homogeneous (GtkTable *table
); guint gtk_table_get_row_spacing (GtkTable *table
,guint row
); guint gtk_table_get_col_spacing (GtkTable *table
,guint column
); guint gtk_table_get_default_col_spacing (GtkTable *table
);
GtkWidget* gtk_table_new (guint rows
,guint columns
,gboolean homogeneous
);
|
|
|
|
|
|
Returns : |
void gtk_table_resize (GtkTable *table
,guint rows
,guint columns
);
|
|
|
|
|
void gtk_table_get_size (GtkTable *table
,guint *rows
,guint *columns
);
Gets the number of rows and columns in the table.
|
a GtkTable |
|
return location for the number of
rows, or NULL . [out][allow-none]
|
|
return location for the number
of columns, or NULL . [out][allow-none]
|
Since 2.22
void gtk_table_attach (GtkTable *table
,GtkWidget *child
,guint left_attach
,guint right_attach
,guint top_attach
,guint bottom_attach
,GtkAttachOptions xoptions
,GtkAttachOptions yoptions
,guint xpadding
,guint ypadding
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void gtk_table_attach_defaults (GtkTable *table
,GtkWidget *widget
,guint left_attach
,guint right_attach
,guint top_attach
,guint bottom_attach
);
|
|
|
|
|
|
|
|
|
|
|
void gtk_table_set_row_spacing (GtkTable *table
,guint row
,guint spacing
);
|
|
|
|
|
void gtk_table_set_col_spacing (GtkTable *table
,guint column
,guint spacing
);
|
|
|
|
|
void gtk_table_set_row_spacings (GtkTable *table
,guint spacing
);
|
|
|
void gtk_table_set_col_spacings (GtkTable *table
,guint spacing
);
|
|
|
void gtk_table_set_homogeneous (GtkTable *table
,gboolean homogeneous
);
|
|
|
guint gtk_table_get_default_row_spacing (GtkTable *table
);
Gets the default row spacing for the table. This is
the spacing that will be used for newly added rows.
(See gtk_table_set_row_spacings()
)
|
a GtkTable |
Returns : |
the default row spacing |
gboolean gtk_table_get_homogeneous (GtkTable *table
);
Returns whether the table cells are all constrained to the same
width and height. (See gtk_table_set_homogenous()
)
guint gtk_table_get_row_spacing (GtkTable *table
,guint row
);
Gets the amount of space between row row
, and
row row
+ 1. See gtk_table_set_row_spacing()
.
|
a GtkTable |
|
a row in the table, 0 indicates the first row |
Returns : |
the row spacing |
guint gtk_table_get_col_spacing (GtkTable *table
,guint column
);
Gets the amount of space between column col
, and
column col
+ 1. See gtk_table_set_col_spacing()
.
|
a GtkTable |
|
a column in the table, 0 indicates the first column |
Returns : |
the column spacing |
guint gtk_table_get_default_col_spacing (GtkTable *table
);
Gets the default column spacing for the table. This is
the spacing that will be used for newly added columns.
(See gtk_table_set_col_spacings()
)
|
a GtkTable |
Returns : |
the default column spacing |