summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_text_display.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-05-27 04:03:00 +1000
committerJed Barber <jjbarber@y7mail.com>2016-05-27 04:03:00 +1000
commitb1a8b46960380dc3a771935a09c4e4a23e811c4a (patch)
tree25d2693835dc3410165e19670b16a0c50a51ef4b /src/fltk_binding/c_fl_text_display.cpp
parent2b4468a62a55d9f8520582f9aa2e420ab89ed7bd (diff)
Text buffers, access types and line lengths
Diffstat (limited to 'src/fltk_binding/c_fl_text_display.cpp')
-rw-r--r--src/fltk_binding/c_fl_text_display.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_text_display.cpp b/src/fltk_binding/c_fl_text_display.cpp
index 95d5727..c45e778 100644
--- a/src/fltk_binding/c_fl_text_display.cpp
+++ b/src/fltk_binding/c_fl_text_display.cpp
@@ -1,7 +1,9 @@
#include <FL/Fl_Text_Display.H>
+#include <FL/Fl_Text_Buffer.H>
#include "c_fl_text_display.h"
+#include "c_fl_text_buffer.h"
TEXTDISPLAY new_fl_text_display(int x, int y, int w, int h, char* label) {
@@ -15,6 +17,18 @@ void free_fl_text_display(TEXTDISPLAY td) {
}
+// this actually never gets called, since an access to the text_buffer
+// object is stored on the Ada side of things
+TEXTBUFFER fl_text_display_get_buffer(TEXTDISPLAY td) {
+ return reinterpret_cast<Fl_Text_Display*>(td)->buffer();
+}
+
+
+void fl_text_display_set_buffer(TEXTDISPLAY td, TEXTBUFFER tb) {
+ reinterpret_cast<Fl_Text_Display*>(td)->buffer(reinterpret_cast<Fl_Text_Buffer*>(tb));
+}
+
+
int fl_text_display_get_text_color(TEXTDISPLAY td) {
return reinterpret_cast<Fl_Text_Display*>(td)->textcolor();
}