diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-05-31 21:16:34 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-05-31 21:16:34 +1000 |
commit | b2aed4668c563b5649614938b22bf417b0b7f0bc (patch) | |
tree | f8c0166b359f25d0e157562a9cf1818286166828 /src/c_fl_scroll.h | |
parent | dda92d3223611c1ce22597c5839e67ecf0dff5ae (diff) |
Scroll widgets added
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 + |