diff options
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(); } |