summaryrefslogtreecommitdiff
path: root/src/c_fl_text_display.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2018-04-30 01:33:49 +1000
committerJed Barber <jjbarber@y7mail.com>2018-04-30 01:33:49 +1000
commit71c1c5bb789f315239a64cb22002088ddcb353b1 (patch)
tree41904e45fdc14149093a028b72283123d2743471 /src/c_fl_text_display.cpp
parentca9cca53a19145216cb0e00462db239e1194696d (diff)
Text_Displays finished, more things polished
Diffstat (limited to 'src/c_fl_text_display.cpp')
-rw-r--r--src/c_fl_text_display.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/c_fl_text_display.cpp b/src/c_fl_text_display.cpp
index 9cc087e..b56f368 100644
--- a/src/c_fl_text_display.cpp
+++ b/src/c_fl_text_display.cpp
@@ -85,6 +85,20 @@ void fl_text_display_set_buffer(TEXTDISPLAY td, TEXTBUFFER tb) {
+void fl_text_display_highlight_data(TEXTDISPLAY td, TEXTBUFFER tb, void * st, int len) {
+ reinterpret_cast<Fl_Text_Display*>(td)->highlight_data
+ (reinterpret_cast<Fl_Text_Buffer*>(tb), reinterpret_cast<Fl_Text_Display::Style_Table_Entry*>(st), len, 0, 0, 0);
+}
+
+void fl_text_display_highlight_data2(TEXTDISPLAY td, TEXTBUFFER tb, void * st, int len, char us, void * cb, void * a) {
+ reinterpret_cast<Fl_Text_Display*>(td)->highlight_data
+ (reinterpret_cast<Fl_Text_Buffer*>(tb), reinterpret_cast<Fl_Text_Display::Style_Table_Entry*>(st), len,
+ us, reinterpret_cast<Fl_Text_Display::Unfinished_Style_Cb>(cb), a);
+}
+
+
+
+
double fl_text_display_col_to_x(TEXTDISPLAY td, double c) {
return reinterpret_cast<Fl_Text_Display*>(td)->col_to_x(c);
}
@@ -158,6 +172,10 @@ void fl_text_display_insert(TEXTDISPLAY td, char * i) {
reinterpret_cast<Fl_Text_Display*>(td)->insert(i);
}
+void fl_text_display_overstrike(TEXTDISPLAY td, char * t) {
+ reinterpret_cast<Fl_Text_Display*>(td)->overstrike(t);
+}
+
int fl_text_display_get_insert_pos(TEXTDISPLAY td) {
return reinterpret_cast<Fl_Text_Display*>(td)->insert_position();
}
@@ -309,3 +327,11 @@ void fl_text_display_set_scrollbar_width(TEXTDISPLAY td, int w) {
reinterpret_cast<Fl_Text_Display*>(td)->scrollbar_width(w);
}
+
+
+
+void fl_text_display_redisplay_range(TEXTDISPLAY td, int s, int f) {
+ reinterpret_cast<Fl_Text_Display*>(td)->redisplay_range(s,f);
+}
+
+