summaryrefslogtreecommitdiff
path: root/src/c_fl_hold_browser.h
blob: 866949d7af6cb2a045d03c7df9b3f5af1f415619 (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_HOLD_BROWSER_GUARD
#define FL_HOLD_BROWSER_GUARD


typedef void* HOLDBROWSER;


extern "C" HOLDBROWSER new_fl_hold_browser(int x, int y, int w, int h, char * label);
extern "C" void free_fl_hold_browser(HOLDBROWSER b);


//  reimp below here

extern "C" int fl_hold_browser_full_height(HOLDBROWSER c);
extern "C" int fl_hold_browser_incr_height(HOLDBROWSER c);


extern "C" int fl_hold_browser_item_width(HOLDBROWSER b, void * item);
extern "C" int fl_hold_browser_item_height(HOLDBROWSER b, void * item);
extern "C" void * fl_hold_browser_item_first(HOLDBROWSER b);
extern "C" void * fl_hold_browser_item_last(HOLDBROWSER b);
extern "C" void * fl_hold_browser_item_next(HOLDBROWSER b, void * item);
extern "C" void * fl_hold_browser_item_prev(HOLDBROWSER b, void * item);
extern "C" void * fl_hold_browser_item_at(HOLDBROWSER b, int index);
extern "C" void fl_hold_browser_item_select(HOLDBROWSER b, void * item, int val=1);
extern "C" int fl_hold_browser_item_selected(HOLDBROWSER b, void * item);
extern "C" void fl_hold_browser_item_swap(HOLDBROWSER b, void * x, void * y);
extern "C" const char * fl_hold_browser_item_text(HOLDBROWSER b, void * item);
extern "C" void fl_hold_browser_item_draw(HOLDBROWSER b, void * item, int x, int y, int w, int h);


extern "C" int fl_hold_browser_lineno(HOLDBROWSER b, void * item);


extern "C" void * fl_hold_browser_selection(HOLDBROWSER c);
extern "C" int fl_hold_browser_displayed2(HOLDBROWSER c, void * i);
extern "C" void * fl_hold_browser_find_item(HOLDBROWSER c, int y);
extern "C" void * fl_hold_browser_top(HOLDBROWSER c);


extern "C" void fl_hold_browser_bbox(HOLDBROWSER c, int &x, int &y, int &w, int &h);
extern "C" int fl_hold_browser_leftedge(HOLDBROWSER c);
extern "C" void fl_hold_browser_redraw_line(HOLDBROWSER c, void * i);
extern "C" void fl_hold_browser_redraw_lines(HOLDBROWSER c);


extern "C" int fl_hold_browser_full_width(HOLDBROWSER c);
extern "C" int fl_hold_browser_item_quick_height(HOLDBROWSER c, void * i);


extern "C" void fl_hold_browser_new_list(HOLDBROWSER b);
extern "C" void fl_hold_browser_inserting(HOLDBROWSER b, void * a1, void * a2);
extern "C" void fl_hold_browser_deleting(HOLDBROWSER b, void * item);
extern "C" void fl_hold_browser_replacing(HOLDBROWSER b, void * a1, void * a2);
extern "C" void fl_hold_browser_swapping(HOLDBROWSER b, void * a1, void * a2);


extern "C" void fl_hold_browser_draw(HOLDBROWSER b);
extern "C" int fl_hold_browser_handle(HOLDBROWSER b, int e);


#endif