diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-11-27 12:32:46 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-11-27 12:32:46 +1300 |
commit | 6f1e7c19776d10878db0eb674339cf656972811f (patch) | |
tree | 91e8572ab443e881a6d970c3dfc8e431e0daed9d /src/c_fl_cairo_window.h | |
parent | edbb0173d98b170ef75eda0149a132b9836e239d (diff) |
Fl_Cairo_Window binding added
Diffstat (limited to 'src/c_fl_cairo_window.h')
-rw-r--r-- | src/c_fl_cairo_window.h | 29 |
1 files changed, 29 insertions, 0 deletions
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 + + |