summaryrefslogtreecommitdiff
path: root/body/c_fl_table_row.h
blob: cb226c43cedcb6c323c9cc16dc7a23d0eeb7886f (plain)
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


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef FL_TABLE_ROW_GUARD
#define FL_TABLE_ROW_GUARD


typedef void* ROWTABLE;


extern "C" ROWTABLE new_fl_table_row(int x, int y, int w, int h, char * label);
extern "C" void free_fl_table_row(ROWTABLE t);


extern "C" int fl_table_row_get_rows(ROWTABLE t);
extern "C" void fl_table_row_set_rows(ROWTABLE t, int r);


extern "C" int fl_table_row_row_selected(ROWTABLE t, int r);
extern "C" int fl_table_row_select_row(ROWTABLE t, int r, int f);
extern "C" void fl_table_row_select_all_rows(ROWTABLE t, int f);
extern "C" int fl_table_row_get_type(ROWTABLE t);
extern "C" void fl_table_row_set_type(ROWTABLE t, int v);


extern "C" void fl_table_row_draw(ROWTABLE t);
extern "C" void fl_table_row_draw_cell(ROWTABLE t, int e, int r, int c, int x, int y, int w, int h);
extern "C" int fl_table_row_find_cell(ROWTABLE t, int e, int r, int c,
    int &x, int &y, int &w, int &h);
extern "C" int fl_table_row_handle(ROWTABLE t, int e);


#endif