summaryrefslogtreecommitdiff
path: root/src/c_fl_scroll.h
blob: 36bc0d4ce7642bff651fd6abcd94527ea1d0476c (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


#ifndef FL_SCROLL_GUARD
#define FL_SCROLL_GUARD




typedef void* SCROLL;




extern "C" inline void scroll_set_draw_hook(SCROLL s, void * d);
extern "C" inline void fl_scroll_draw(SCROLL s);
extern "C" inline void scroll_set_handle_hook(SCROLL s, void * h);
extern "C" inline int fl_scroll_handle(SCROLL s, int e);




extern "C" inline SCROLL new_fl_scroll(int x, int y, int w, int h, char* label);
extern "C" inline void free_fl_scroll(SCROLL s);




extern "C" inline void fl_scroll_clear(SCROLL s);


extern "C" inline void fl_scroll_to(SCROLL s, int x, int y);
extern "C" inline void fl_scroll_set_type(SCROLL s, int t);


extern "C" inline int fl_scroll_get_size(SCROLL s);
extern "C" inline void fl_scroll_set_size(SCROLL s, int t);
extern "C" inline int fl_scroll_xposition(SCROLL s);
extern "C" inline int fl_scroll_yposition(SCROLL s);


#endif