GtkTable

GtkTable

Synopsis

#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);

Description

Details

GtkTable

typedef struct {
  GtkContainer container;
} GtkTable;


gtk_table_new ()

GtkWidget*          gtk_table_new                       (guint rows,
                                                         guint columns,
                                                         gboolean homogeneous);

rows :

columns :

homogeneous :

Returns :


gtk_table_resize ()

void                gtk_table_resize                    (GtkTable *table,
                                                         guint rows,
                                                         guint columns);

table :

rows :

columns :


gtk_table_get_size ()

void                gtk_table_get_size                  (GtkTable *table,
                                                         guint *rows,
                                                         guint *columns);

Gets the number of rows and columns in the table.

table :

a GtkTable

rows :

return location for the number of rows, or NULL. [out][allow-none]

columns :

return location for the number of columns, or NULL. [out][allow-none]

Since 2.22


gtk_table_attach ()

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);

table :

child :

left_attach :

right_attach :

top_attach :

bottom_attach :

xoptions :

yoptions :

xpadding :

ypadding :


gtk_table_attach_defaults ()

void                gtk_table_attach_defaults           (GtkTable *table,
                                                         GtkWidget *widget,
                                                         guint left_attach,
                                                         guint right_attach,
                                                         guint top_attach,
                                                         guint bottom_attach);

table :

widget :

left_attach :

right_attach :

top_attach :

bottom_attach :


gtk_table_set_row_spacing ()

void                gtk_table_set_row_spacing           (GtkTable *table,
                                                         guint row,
                                                         guint spacing);

table :

row :

spacing :


gtk_table_set_col_spacing ()

void                gtk_table_set_col_spacing           (GtkTable *table,
                                                         guint column,
                                                         guint spacing);

table :

column :

spacing :


gtk_table_set_row_spacings ()

void                gtk_table_set_row_spacings          (GtkTable *table,
                                                         guint spacing);

table :

spacing :


gtk_table_set_col_spacings ()

void                gtk_table_set_col_spacings          (GtkTable *table,
                                                         guint spacing);

table :

spacing :


gtk_table_set_homogeneous ()

void                gtk_table_set_homogeneous           (GtkTable *table,
                                                         gboolean homogeneous);

table :

homogeneous :


gtk_table_get_default_row_spacing ()

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())

table :

a GtkTable

Returns :

the default row spacing

gtk_table_get_homogeneous ()

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())

table :

a GtkTable

Returns :

TRUE if the cells are all constrained to the same size

gtk_table_get_row_spacing ()

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().

table :

a GtkTable

row :

a row in the table, 0 indicates the first row

Returns :

the row spacing

gtk_table_get_col_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().

table :

a GtkTable

column :

a column in the table, 0 indicates the first column

Returns :

the column spacing

gtk_table_get_default_col_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())

table :

a GtkTable

Returns :

the default column spacing