summaryrefslogtreecommitdiff
path: root/src/c_fl_label.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-10-28 02:34:18 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-10-28 02:34:18 +1300
commita6a1c9763c62b9aa8643b0c5b9937f3a930337b8 (patch)
tree43625393aa2d0b884de787baa25643b433a83b95 /src/c_fl_label.h
parent74de211c198e5396f224c5a5f4e4fcd49bab2ce4 (diff)
Fl_Label binding added
Diffstat (limited to 'src/c_fl_label.h')
-rw-r--r--src/c_fl_label.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/c_fl_label.h b/src/c_fl_label.h
new file mode 100644
index 0000000..ea69d51
--- /dev/null
+++ b/src/c_fl_label.h
@@ -0,0 +1,45 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_LABEL_GUARD
+#define FL_LABEL_GUARD
+
+
+
+
+typedef void* LABEL;
+
+
+
+
+extern "C" LABEL new_fl_label(const char * v, int f, int s, unsigned int h, int k, unsigned int p);
+extern "C" void free_fl_label(LABEL l);
+
+
+
+
+extern "C" void fl_label_set_value(LABEL l, const char * v);
+extern "C" int fl_label_get_font(LABEL l);
+extern "C" void fl_label_set_font(LABEL l, int f);
+extern "C" int fl_label_get_size(LABEL l);
+extern "C" void fl_label_set_size(LABEL l, int s);
+extern "C" unsigned int fl_label_get_color(LABEL l);
+extern "C" void fl_label_set_color(LABEL l, unsigned int h);
+extern "C" int fl_label_get_type(LABEL l);
+extern "C" void fl_label_set_type(LABEL l, int k);
+extern "C" unsigned int fl_label_get_align(LABEL l);
+extern "C" void fl_label_set_align(LABEL l, unsigned int p);
+extern "C" void fl_label_set_image(LABEL l, void * i);
+extern "C" void fl_label_set_deimage(LABEL l, void * i);
+
+
+extern "C" void fl_label_draw(LABEL l, int x, int y, int w, int h, unsigned int p);
+extern "C" void fl_label_measure(LABEL l, int &w, int &h);
+
+
+#endif
+
+