diff options
Diffstat (limited to 'src/c_fl_scroll.h')
-rw-r--r-- | src/c_fl_scroll.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/c_fl_scroll.h b/src/c_fl_scroll.h new file mode 100644 index 0000000..3379063 --- /dev/null +++ b/src/c_fl_scroll.h @@ -0,0 +1,29 @@ + + +#ifndef FL_SCROLL_GUARD +#define FL_SCROLL_GUARD + + +typedef void* SCROLL; + + +extern "C" void scroll_set_draw_hook(SCROLL s, void * d); +extern "C" void fl_scroll_draw(SCROLL s); +extern "C" void scroll_set_handle_hook(SCROLL s, void * h); +extern "C" int fl_scroll_handle(SCROLL s, int e); + + +extern "C" SCROLL new_fl_scroll(int x, int y, int w, int h, char* label); +extern "C" void free_fl_scroll(SCROLL s); + + +extern "C" void fl_scroll_to(SCROLL s, int x, int y); +extern "C" int fl_scroll_get_size(SCROLL s); +extern "C" void fl_scroll_set_size(SCROLL s, int t); +extern "C" int fl_scroll_xposition(SCROLL s); +extern "C" int fl_scroll_yposition(SCROLL s); +extern "C" void fl_scroll_set_type(SCROLL s, int t); + + +#endif + |