-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathgrid.h
54 lines (42 loc) · 2.05 KB
/
grid.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GGrid GGrid;
typedef struct Fl_Widget Fl_Widget;
typedef struct Fl_Grid Fl_Grid;
extern GGrid *go_fltk_new_Grid(int x, int y, int w, int h, const char *text);
extern void go_fltk_Grid_set_layout(Fl_Grid* grid, int rows, int columns, int margin,
int gap);
extern void go_fltk_Grid_set_show_grid(Fl_Grid *grid, int show);
extern void go_fltk_Grid_set_show_grid_and_color(Fl_Grid *grid, int show,
unsigned int color);
extern void go_fltk_Grid_set_column_gap(Fl_Grid *grid, int column, int gap);
extern int go_fltk_Grid_column_gap(Fl_Grid *grid, int column);
extern void go_fltk_Grid_set_column_weight(Fl_Grid *grid, int column, int weight);
extern int go_fltk_Grid_column_weight(Fl_Grid* grid, int column);
extern void go_fltk_Grid_set_row_gap(Fl_Grid *grid, int row, int gap);
extern int go_fltk_Grid_row_gap(Fl_Grid *grid, int row);
extern void go_fltk_Grid_set_row_weight(Fl_Grid *grid, int row, int weight);
extern int go_fltk_Grid_row_weight(Fl_Grid *grid, int row);
extern void go_fltk_Grid_set_widget(Fl_Grid* grid, Fl_Widget *widget, int row, int column,
int align);
extern void go_fltk_Grid_set_widget_with_span(Fl_Grid* grid, Fl_Widget *widget, int row,
int column, int rowSpan,
int columnSpan, int align);
extern const int go_FL_GRID_BOTTOM;
extern const int go_FL_GRID_BOTTOM_LEFT;
extern const int go_FL_GRID_BOTTOM_RIGHT;
extern const int go_FL_GRID_CENTER;
extern const int go_FL_GRID_FILL;
extern const int go_FL_GRID_HORIZONTAL;
extern const int go_FL_GRID_LEFT;
extern const int go_FL_GRID_PROPORTIONAL;
extern const int go_FL_GRID_RIGHT;
extern const int go_FL_GRID_TOP;
extern const int go_FL_GRID_TOP_LEFT;
extern const int go_FL_GRID_TOP_RIGHT;
extern const int go_FL_GRID_VERTICAL;
#ifdef __cplusplus
}
#endif