diff options
Diffstat (limited to 'src/c_fl_text_display.cpp')
-rw-r--r-- | src/c_fl_text_display.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/c_fl_text_display.cpp b/src/c_fl_text_display.cpp index 8ae0f01..34d3c0f 100644 --- a/src/c_fl_text_display.cpp +++ b/src/c_fl_text_display.cpp @@ -93,6 +93,31 @@ void fl_text_display_set_buffer(TEXTDISPLAY td, TEXTBUFFER tb) { } +double fl_text_display_col_to_x(TEXTDISPLAY td, double c) { + return reinterpret_cast<Fl_Text_Display*>(td)->col_to_x(c); +} + + +double fl_text_display_x_to_col(TEXTDISPLAY td, double x) { + return reinterpret_cast<Fl_Text_Display*>(td)->x_to_col(x); +} + + +int fl_text_display_get_cursor_color(TEXTDISPLAY td) { + return reinterpret_cast<Fl_Text_Display*>(td)->cursor_color(); +} + + +void fl_text_display_set_cursor_color(TEXTDISPLAY td, int c) { + reinterpret_cast<Fl_Text_Display*>(td)->cursor_color(c); +} + + +void fl_text_display_set_cursor_style(TEXTDISPLAY td, int s) { + reinterpret_cast<Fl_Text_Display*>(td)->cursor_style(s); +} + + int fl_text_display_get_text_color(TEXTDISPLAY td) { return reinterpret_cast<Fl_Text_Display*>(td)->textcolor(); } @@ -153,6 +178,11 @@ void fl_text_display_wrap_mode(TEXTDISPLAY td, int w, int m) { } +int fl_text_display_count_lines(TEXTDISPLAY td, int s, int f, int p) { + return reinterpret_cast<Fl_Text_Display*>(td)->count_lines(s, f, p); +} + + int fl_text_display_skip_lines(TEXTDISPLAY td, int s, int l, int p) { return reinterpret_cast<Fl_Text_Display*>(td)->skip_lines(s, l, p); } |