diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 21:04:54 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 21:04:54 +1300 |
commit | b4438b2fbe895694be98e6e8426103deefc51448 (patch) | |
tree | 760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_scroll.h | |
parent | a4703a65b015140cd4a7a985db66264875ade734 (diff) |
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_scroll.h')
-rw-r--r-- | body/c_fl_scroll.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/body/c_fl_scroll.h b/body/c_fl_scroll.h new file mode 100644 index 0000000..fe8674e --- /dev/null +++ b/body/c_fl_scroll.h @@ -0,0 +1,37 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_SCROLL_GUARD +#define FL_SCROLL_GUARD + + +typedef void* SCROLL; + + +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_hscrollbar(SCROLL s); +extern "C" void * fl_scroll_scrollbar(SCROLL s); + + +extern "C" void fl_scroll_to(SCROLL s, int x, int y); +extern "C" int fl_scroll_xposition(SCROLL s); +extern "C" int fl_scroll_yposition(SCROLL s); + + +extern "C" int fl_scroll_get_size(SCROLL s); +extern "C" void fl_scroll_set_size(SCROLL s, int t); + + +extern "C" void fl_scroll_draw(SCROLL s); +extern "C" int fl_scroll_handle(SCROLL s, int e); + + +#endif + + |