From 395e2de5b0d834091637820fc04d731721c771b7 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 16 Sep 2016 04:10:49 +1000 Subject: Adapad menus and callbacks now present in skeleton form, also Text_Buffers have callbacks too --- src/fltk_binding/c_fl_text_editor.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/fltk_binding/c_fl_text_editor.cpp') 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(te); } + + + +void fl_text_editor_cut (TEXTEDITOR te) { + Fl_Text_Editor::kf_cut(0, reinterpret_cast(te)); +} + + +void fl_text_editor_copy (TEXTEDITOR te) { + Fl_Text_Editor::kf_copy(0, reinterpret_cast(te)); +} + + +void fl_text_editor_paste (TEXTEDITOR te) { + Fl_Text_Editor::kf_paste(0, reinterpret_cast(te)); +} + + +void fl_text_editor_delete (TEXTEDITOR te) { + Fl_Text_Editor::kf_delete(0, reinterpret_cast(te)); +} + -- cgit