summaryrefslogtreecommitdiff
path: root/c_fl_text_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_fl_text_editor.cpp')
-rw-r--r--c_fl_text_editor.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/c_fl_text_editor.cpp b/c_fl_text_editor.cpp
new file mode 100644
index 0000000..797035e
--- /dev/null
+++ b/c_fl_text_editor.cpp
@@ -0,0 +1,16 @@
+
+
+#include <FL/Fl_Text_Editor.H>
+#include "c_fl_text_editor.h"
+
+
+TEXTEDITOR new_fl_text_editor(int x, int y, int w, int h, char* label) {
+ Fl_Text_Editor *te = new Fl_Text_Editor(x, y, w, h, label);
+ return te;
+}
+
+
+void free_fl_text_editor(TEXTEDITOR te) {
+ delete reinterpret_cast<Fl_Text_Editor*>(te);
+}
+