32 #import "CoreGTK/CGTKGrid.h" 50 return GTK_GRID([
self GOBJECT]);
53 -(void)attachWithChild:(
CGTKWidget*) child andLeft:(gint) left andTop:(gint) top andWidth:(gint) width andHeight:(gint) height
55 gtk_grid_attach(GTK_GRID([
self GOBJECT]), [child
WIDGET], left, top, width, height);
58 -(void)attachNextToWithChild:(
CGTKWidget*) child andSibling:(
CGTKWidget*) sibling andSide:(GtkPositionType) side andWidth:(gint) width andHeight:(gint) height
60 gtk_grid_attach_next_to(GTK_GRID([
self GOBJECT]), [child
WIDGET], [sibling
WIDGET], side, width, height);
65 return gtk_grid_get_baseline_row(GTK_GRID([
self GOBJECT]));
68 -(
CGTKWidget*)getChildAtWithLeft:(gint) left andTop:(gint) top
70 return [[
CGTKWidget alloc] initWithGObject:(GObject *)gtk_grid_get_child_at(GTK_GRID([
self GOBJECT]), left, top)];
75 return (gtk_grid_get_column_homogeneous(GTK_GRID([
self GOBJECT])) ? YES : NO);
80 return gtk_grid_get_column_spacing(GTK_GRID([
self GOBJECT]));
83 -(GtkBaselinePosition)getRowBaselinePosition:(gint) row
85 return gtk_grid_get_row_baseline_position(GTK_GRID([
self GOBJECT]), row);
90 return (gtk_grid_get_row_homogeneous(GTK_GRID([
self GOBJECT])) ? YES : NO);
95 return gtk_grid_get_row_spacing(GTK_GRID([
self GOBJECT]));
98 -(void)insertColumn:(gint) position
100 gtk_grid_insert_column(GTK_GRID([
self GOBJECT]), position);
103 -(void)insertNextToWithSibling:(
CGTKWidget*) sibling andSide:(GtkPositionType) side
105 gtk_grid_insert_next_to(GTK_GRID([
self GOBJECT]), [sibling
WIDGET], side);
108 -(void)insertRow:(gint) position
110 gtk_grid_insert_row(GTK_GRID([
self GOBJECT]), position);
113 -(void)removeColumn:(gint) position
115 gtk_grid_remove_column(GTK_GRID([
self GOBJECT]), position);
118 -(void)removeRow:(gint) position
120 gtk_grid_remove_row(GTK_GRID([
self GOBJECT]), position);
123 -(void)setBaselineRow:(gint) row
125 gtk_grid_set_baseline_row(GTK_GRID([
self GOBJECT]), row);
128 -(void)setColumnHomogeneous:(BOOL) homogeneous
130 gtk_grid_set_column_homogeneous(GTK_GRID([
self GOBJECT]), (homogeneous ? TRUE : FALSE));
133 -(void)setColumnSpacing:(guint) spacing
135 gtk_grid_set_column_spacing(GTK_GRID([
self GOBJECT]), spacing);
138 -(void)setRowBaselinePositionWithRow:(gint) row andPos:(GtkBaselinePosition) pos
140 gtk_grid_set_row_baseline_position(GTK_GRID([
self GOBJECT]), row, pos);
143 -(void)setRowHomogeneous:(BOOL) homogeneous
145 gtk_grid_set_row_homogeneous(GTK_GRID([
self GOBJECT]), (homogeneous ? TRUE : FALSE));
148 -(void)setRowSpacing:(guint) spacing
150 gtk_grid_set_row_spacing(GTK_GRID([
self GOBJECT]), spacing);
BOOL getColumnHomogeneous()
id initWithGObject:(GObject *obj)