GtkGrid.def 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. DEFINITION MODULE FOR "C" GtkGrid ;
  2. (*
  3. m2-GTK4 - GtkGrid: a table-like container. Mapped onto
  4. <gtk/gtkgrid.h>.
  5. Children are placed with gtk_grid_attach(child, column, row, width,
  6. height); a widget may span several cells. Rows and columns size
  7. themselves to their content unless made homogeneous.
  8. *)
  9. FROM SYSTEM IMPORT ADDRESS;
  10. FROM GtkEnums IMPORT GtkPositionType;
  11. EXPORT UNQUALIFIED
  12. GtkGrid,
  13. gtk_grid_new,
  14. gtk_grid_attach, gtk_grid_attach_next_to, gtk_grid_remove,
  15. gtk_grid_get_child_at,
  16. gtk_grid_insert_row, gtk_grid_insert_column,
  17. gtk_grid_set_row_spacing, gtk_grid_set_column_spacing,
  18. gtk_grid_get_row_spacing, gtk_grid_get_column_spacing,
  19. gtk_grid_set_row_homogeneous, gtk_grid_set_column_homogeneous;
  20. TYPE
  21. GtkGrid = ADDRESS;
  22. (* GtkWidget *gtk_grid_new(void) *)
  23. PROCEDURE gtk_grid_new () : GtkGrid;
  24. (* void gtk_grid_attach(GtkGrid *grid, GtkWidget *child,
  25. int column, int row, int width, int height) *)
  26. PROCEDURE gtk_grid_attach (grid: GtkGrid; child: ADDRESS;
  27. column, row, width, height: INTEGER);
  28. (* void gtk_grid_attach_next_to(GtkGrid *grid, GtkWidget *child,
  29. GtkWidget *sibling, GtkPositionType side,
  30. int width, int height) *)
  31. PROCEDURE gtk_grid_attach_next_to (grid: GtkGrid; child: ADDRESS;
  32. sibling: ADDRESS; side: GtkPositionType;
  33. width, height: INTEGER);
  34. (* void gtk_grid_remove(GtkGrid *grid, GtkWidget *child) *)
  35. PROCEDURE gtk_grid_remove (grid: GtkGrid; child: ADDRESS);
  36. (* GtkWidget *gtk_grid_get_child_at(GtkGrid *grid, int column, int row) *)
  37. PROCEDURE gtk_grid_get_child_at (grid: GtkGrid;
  38. column, row: INTEGER) : ADDRESS;
  39. (* void gtk_grid_insert_row(GtkGrid *grid, int position) *)
  40. PROCEDURE gtk_grid_insert_row (grid: GtkGrid; position: INTEGER);
  41. (* void gtk_grid_insert_column(GtkGrid *grid, int position) *)
  42. PROCEDURE gtk_grid_insert_column (grid: GtkGrid; position: INTEGER);
  43. (* void gtk_grid_set_row_spacing(GtkGrid *grid, guint spacing) *)
  44. PROCEDURE gtk_grid_set_row_spacing (grid: GtkGrid; spacing: CARDINAL);
  45. (* void gtk_grid_set_column_spacing(GtkGrid *grid, guint spacing) *)
  46. PROCEDURE gtk_grid_set_column_spacing (grid: GtkGrid; spacing: CARDINAL);
  47. (* guint gtk_grid_get_row_spacing(GtkGrid *grid) *)
  48. PROCEDURE gtk_grid_get_row_spacing (grid: GtkGrid) : CARDINAL;
  49. (* guint gtk_grid_get_column_spacing(GtkGrid *grid) *)
  50. PROCEDURE gtk_grid_get_column_spacing (grid: GtkGrid) : CARDINAL;
  51. (* void gtk_grid_set_row_homogeneous(GtkGrid *grid, gboolean homogeneous) *)
  52. PROCEDURE gtk_grid_set_row_homogeneous (grid: GtkGrid;
  53. homogeneous: INTEGER);
  54. (* void gtk_grid_set_column_homogeneous(GtkGrid *grid, gboolean homogeneous) *)
  55. PROCEDURE gtk_grid_set_column_homogeneous (grid: GtkGrid;
  56. homogeneous: INTEGER);
  57. END GtkGrid.