summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_text_editor.cpp
blob: 6754695c26e65d8dcb0e64d0c74a277be8d178d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38


#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);
}




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));
}