summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_text_buffer.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-11-18 20:29:13 +1100
committerJed Barber <jjbarber@y7mail.com>2016-11-18 20:29:13 +1100
commit5045c1fb020480ac1bcc2aca921f886c0057a73f (patch)
tree5b2961b3cbac755426089960b49d697b56b4504d /src/fltk_binding/c_fl_text_buffer.cpp
parent8fe1342dcbbc2fcad262f31ecf24f73ee08c1f1c (diff)
Added text buffer callback enable/disable, text range retrieval functions
Diffstat (limited to 'src/fltk_binding/c_fl_text_buffer.cpp')
-rw-r--r--src/fltk_binding/c_fl_text_buffer.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_text_buffer.cpp b/src/fltk_binding/c_fl_text_buffer.cpp
index 966f142..71f04d2 100644
--- a/src/fltk_binding/c_fl_text_buffer.cpp
+++ b/src/fltk_binding/c_fl_text_buffer.cpp
@@ -40,6 +40,11 @@ void fl_text_buffer_insert(TEXTBUFFER tb, int p, const char * item) {
}
+void fl_text_buffer_remove(TEXTBUFFER tb, int s, int f) {
+ reinterpret_cast<Fl_Text_Buffer*>(tb)->remove(s, f);
+}
+
+
int fl_text_buffer_length(TEXTBUFFER tb) {
return reinterpret_cast<Fl_Text_Buffer*>(tb)->length();
}
@@ -99,3 +104,8 @@ unsigned int fl_text_buffer_char_at(TEXTBUFFER tb, int p) {
return reinterpret_cast<Fl_Text_Buffer*>(tb)->char_at(p);
}
+
+char * fl_text_buffer_text_range(TEXTBUFFER tb, int s, int f) {
+ return reinterpret_cast<Fl_Text_Buffer*>(tb)->text_range(s, f);
+}
+