summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_text_editor.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-09-16 04:10:49 +1000
committerJed Barber <jjbarber@y7mail.com>2016-09-16 04:10:49 +1000
commit395e2de5b0d834091637820fc04d731721c771b7 (patch)
tree64492fca38997578914ac24cd262598af966c241 /src/fltk_binding/c_fl_text_editor.cpp
parentbfcc3811a3ce55cafa6f7809d0d92c87238ea032 (diff)
Adapad menus and callbacks now present in skeleton form, also Text_Buffers have callbacks too
Diffstat (limited to 'src/fltk_binding/c_fl_text_editor.cpp')
-rw-r--r--src/fltk_binding/c_fl_text_editor.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_text_editor.cpp b/src/fltk_binding/c_fl_text_editor.cpp
index 797035e..6754695 100644
--- a/src/fltk_binding/c_fl_text_editor.cpp
+++ b/src/fltk_binding/c_fl_text_editor.cpp
@@ -14,3 +14,25 @@ void free_fl_text_editor(TEXTEDITOR te) {
delete reinterpret_cast<Fl_Text_Editor*>(te);
}
+
+
+
+void fl_text_editor_cut (TEXTEDITOR te) {
+ Fl_Text_Editor::kf_cut(0, reinterpret_cast<Fl_Text_Editor*>(te));
+}
+
+
+void fl_text_editor_copy (TEXTEDITOR te) {
+ Fl_Text_Editor::kf_copy(0, reinterpret_cast<Fl_Text_Editor*>(te));
+}
+
+
+void fl_text_editor_paste (TEXTEDITOR te) {
+ Fl_Text_Editor::kf_paste(0, reinterpret_cast<Fl_Text_Editor*>(te));
+}
+
+
+void fl_text_editor_delete (TEXTEDITOR te) {
+ Fl_Text_Editor::kf_delete(0, reinterpret_cast<Fl_Text_Editor*>(te));
+}
+