summaryrefslogtreecommitdiff
path: root/src/c_fl_cairo_window.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-11-27 12:32:46 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-11-27 12:32:46 +1300
commit6f1e7c19776d10878db0eb674339cf656972811f (patch)
tree91e8572ab443e881a6d970c3dfc8e431e0daed9d /src/c_fl_cairo_window.h
parentedbb0173d98b170ef75eda0149a132b9836e239d (diff)
Fl_Cairo_Window binding added
Diffstat (limited to 'src/c_fl_cairo_window.h')
-rw-r--r--src/c_fl_cairo_window.h29
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
+
+