From b4438b2fbe895694be98e6e8426103deefc51448 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 21:04:54 +1300 Subject: Split public API and private implementation files into different directories --- body/c_fl_window.h | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 body/c_fl_window.h (limited to 'body/c_fl_window.h') diff --git a/body/c_fl_window.h b/body/c_fl_window.h new file mode 100644 index 0000000..ed6ebdd --- /dev/null +++ b/body/c_fl_window.h @@ -0,0 +1,76 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_WINDOW_GUARD +#define FL_WINDOW_GUARD + + +typedef void* WINDOW; + + +extern "C" WINDOW new_fl_window(int x, int y, int w, int h, char* label); +extern "C" WINDOW new_fl_window2(int w, int h, char* label); +extern "C" void free_fl_window(WINDOW n); + + +extern "C" void fl_window_show(WINDOW n); +extern "C" void fl_window_show2(WINDOW n, int c, void * v); +extern "C" void fl_window_hide(WINDOW n); +extern "C" int fl_window_shown(WINDOW n); +extern "C" void fl_window_wait_for_expose(WINDOW n); +extern "C" void fl_window_iconize(WINDOW n); +extern "C" void fl_window_make_current(WINDOW n); +extern "C" void fl_window_free_position(WINDOW n); + + +extern "C" unsigned int fl_window_fullscreen_active(WINDOW n); +extern "C" void fl_window_fullscreen(WINDOW n); +extern "C" void fl_window_fullscreen_off(WINDOW n); +extern "C" void fl_window_fullscreen_off2(WINDOW n, int x, int y, int w, int h); +extern "C" void fl_window_fullscreen_screens(WINDOW n, int t, int b, int l, int r); + + +extern "C" void fl_window_set_icon(WINDOW n, void * img); +extern "C" void fl_window_default_icon(void * img); +extern "C" const char * fl_window_get_iconlabel(WINDOW n); +extern "C" void fl_window_set_iconlabel(WINDOW n, const char * s); +extern "C" void fl_window_set_cursor(WINDOW n, int c); +extern "C" void fl_window_set_cursor2(WINDOW n, void * img, int x, int y); +extern "C" void fl_window_set_default_cursor(WINDOW n, int c); + + +extern "C" unsigned int fl_window_get_border(WINDOW n); +extern "C" void fl_window_set_border(WINDOW n, int b); +extern "C" unsigned int fl_window_get_override(WINDOW n); +extern "C" void fl_window_set_override(WINDOW n); +extern "C" unsigned int fl_window_modal(WINDOW n); +extern "C" unsigned int fl_window_non_modal(WINDOW n); +extern "C" void fl_window_clear_modal_states(WINDOW n); +extern "C" void fl_window_set_modal(WINDOW n); +extern "C" void fl_window_set_non_modal(WINDOW n); + + +extern "C" const char * fl_window_get_label(WINDOW n); +extern "C" void fl_window_set_label(WINDOW n, char* text); +extern "C" void fl_window_hotspot(WINDOW n, int x, int y, int s); +extern "C" void fl_window_hotspot2(WINDOW n, void * i, int s); +extern "C" void fl_window_size_range(WINDOW n, int lw, int lh, int hw, int hh, int dw, int dh, int a); +extern "C" void fl_window_shape(WINDOW n, void * p); + + +extern "C" int fl_window_get_x_root(WINDOW n); +extern "C" int fl_window_get_y_root(WINDOW n); +extern "C" int fl_window_get_decorated_w(WINDOW n); +extern "C" int fl_window_get_decorated_h(WINDOW n); + + +extern "C" void fl_window_draw(WINDOW n); +extern "C" int fl_window_handle(WINDOW n, int e); + + +#endif + + -- cgit