diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-05-27 04:03:00 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-05-27 04:03:00 +1000 |
commit | 32062c660307d5b34f46b1f7b75d17a184930e71 (patch) | |
tree | 6ab33672207fdef5b500e5a0bfded5190f05e79e /c_fl_text_display.cpp | |
parent | 2aac034b614d6de39f4aee9f41dba8f2bcc63d8d (diff) |
Text buffers, access types and line lengths
Diffstat (limited to 'c_fl_text_display.cpp')
-rw-r--r-- | c_fl_text_display.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/c_fl_text_display.cpp b/c_fl_text_display.cpp index 95d5727..c45e778 100644 --- a/c_fl_text_display.cpp +++ b/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(); } |