From 32062c660307d5b34f46b1f7b75d17a184930e71 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 27 May 2016 04:03:00 +1000 Subject: Text buffers, access types and line lengths --- c_fl_text_display.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'c_fl_text_display.cpp') 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 +#include #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(td)->buffer(); +} + + +void fl_text_display_set_buffer(TEXTDISPLAY td, TEXTBUFFER tb) { + reinterpret_cast(td)->buffer(reinterpret_cast(tb)); +} + + int fl_text_display_get_text_color(TEXTDISPLAY td) { return reinterpret_cast(td)->textcolor(); } -- cgit