aboutsummaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_text_buffer.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-05-27 04:03:00 +1000
committerJed Barber <jjbarber@y7mail.com>2016-05-27 04:03:00 +1000
commitb1a8b46960380dc3a771935a09c4e4a23e811c4a (patch)
tree25d2693835dc3410165e19670b16a0c50a51ef4b /src/fltk_binding/c_fl_text_buffer.cpp
parent2b4468a62a55d9f8520582f9aa2e420ab89ed7bd (diff)
Text buffers, access types and line lengths
Diffstat (limited to 'src/fltk_binding/c_fl_text_buffer.cpp')
-rw-r--r--src/fltk_binding/c_fl_text_buffer.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_text_buffer.cpp b/src/fltk_binding/c_fl_text_buffer.cpp
new file mode 100644
index 0000000..791e0ab
--- /dev/null
+++ b/src/fltk_binding/c_fl_text_buffer.cpp
@@ -0,0 +1,16 @@
+
+
+#include <FL/Fl_Text_Buffer.H>
+#include "c_fl_text_buffer.h"
+
+
+TEXTBUFFER new_fl_text_buffer(int rs, int pgs) {
+ Fl_Text_Buffer *tb = new Fl_Text_Buffer(rs, pgs);
+ return tb;
+}
+
+
+void free_fl_text_buffer(TEXTBUFFER tb) {
+ delete reinterpret_cast<Fl_Text_Buffer*>(tb);
+}
+