From 6f1e7c19776d10878db0eb674339cf656972811f Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 27 Nov 2024 12:32:46 +1300 Subject: Fl_Cairo_Window binding added --- src/c_fl_cairo_window.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/c_fl_cairo_window.h (limited to 'src/c_fl_cairo_window.h') diff --git a/src/c_fl_cairo_window.h b/src/c_fl_cairo_window.h new file mode 100644 index 0000000..e9a1437 --- /dev/null +++ b/src/c_fl_cairo_window.h @@ -0,0 +1,29 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_CAIRO_WINDOW_GUARD +#define FL_CAIRO_WINDOW_GUARD + + +typedef void* CAIROWINDOW; + + +extern "C" CAIROWINDOW new_fl_cairo_window(int x, int y, int w, int h, char * label); +extern "C" CAIROWINDOW new_fl_cairo_window2(int w, int h, char * label); +extern "C" CAIROWINDOW new_fl_cairo_window3(int w, int h); +extern "C" void free_fl_cairo_window(CAIROWINDOW w); + + +extern "C" void fl_cairo_window_set_draw_cb(CAIROWINDOW w, void * cb); + + +extern "C" void fl_cairo_window_draw(CAIROWINDOW w); +extern "C" int fl_cairo_window_handle(CAIROWINDOW w, int e); + + +#endif + + -- cgit