summaryrefslogtreecommitdiff
path: root/src/c_fl_multi_browser.h
blob: c6078570da03dfad0e9ff4cc81a0ced742537b68 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70


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


#ifndef FL_MULTI_BROWSER_GUARD
#define FL_MULTI_BROWSER_GUARD


typedef void* MULTIBROWSER;


extern "C" MULTIBROWSER new_fl_multi_browser(int x, int y, int w, int h, char * label);
extern "C" void free_fl_multi_browser(MULTIBROWSER b);


//  reimp below here

extern "C" int fl_multi_browser_full_height(MULTIBROWSER c);
extern "C" int fl_multi_browser_incr_height(MULTIBROWSER c);


extern "C" int fl_multi_browser_item_width(MULTIBROWSER b, void * item);
extern "C" int fl_multi_browser_item_height(MULTIBROWSER b, void * item);
extern "C" void * fl_multi_browser_item_first(MULTIBROWSER b);
extern "C" void * fl_multi_browser_item_last(MULTIBROWSER b);
extern "C" void * fl_multi_browser_item_next(MULTIBROWSER b, void * item);
extern "C" void * fl_multi_browser_item_prev(MULTIBROWSER b, void * item);
extern "C" void * fl_multi_browser_item_at(MULTIBROWSER b, int index);
extern "C" void fl_multi_browser_item_select(MULTIBROWSER b, void * item, int val=1);
extern "C" int fl_multi_browser_item_selected(MULTIBROWSER b, void * item);
extern "C" void fl_multi_browser_item_swap(MULTIBROWSER b, void * x, void * y);
extern "C" const char * fl_multi_browser_item_text(MULTIBROWSER b, void * item);
extern "C" void fl_multi_browser_item_draw(MULTIBROWSER b, void * item, int x, int y, int w, int h);


extern "C" int fl_multi_browser_lineno(MULTIBROWSER b, void * item);


extern "C" void * fl_multi_browser_selection(MULTIBROWSER c);
extern "C" int fl_multi_browser_displayed2(MULTIBROWSER c, void * i);
extern "C" void * fl_multi_browser_find_item(MULTIBROWSER c, int y);
extern "C" void * fl_multi_browser_top(MULTIBROWSER c);


extern "C" void fl_multi_browser_bbox(MULTIBROWSER c, int &x, int &y, int &w, int &h);
extern "C" int fl_multi_browser_leftedge(MULTIBROWSER c);
extern "C" void fl_multi_browser_redraw_line(MULTIBROWSER c, void * i);
extern "C" void fl_multi_browser_redraw_lines(MULTIBROWSER c);


extern "C" int fl_multi_browser_full_width(MULTIBROWSER c);
extern "C" int fl_multi_browser_item_quick_height(MULTIBROWSER c, void * i);


extern "C" void fl_multi_browser_new_list(MULTIBROWSER b);
extern "C" void fl_multi_browser_inserting(MULTIBROWSER b, void * a1, void * a2);
extern "C" void fl_multi_browser_deleting(MULTIBROWSER b, void * item);
extern "C" void fl_multi_browser_replacing(MULTIBROWSER b, void * a1, void * a2);
extern "C" void fl_multi_browser_swapping(MULTIBROWSER b, void * a1, void * a2);


extern "C" void fl_multi_browser_draw(MULTIBROWSER b);
extern "C" int fl_multi_browser_handle(MULTIBROWSER b, int e);


#endif