summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-01-30 22:14:40 +0100
committerGitHub <noreply@github.com>2022-01-30 22:14:40 +0100
commitcf4a832e6a801b46c38f6236369c74056e8f89ec (patch)
tree6addcf54a6dc55a6ad5d5da81dddd595e0183b26 /FL
parent303e8de48397909751b32b0754257192f89ef7b0 (diff)
Adding Text_Display color variables. (#384)
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Text_Display.H39
1 files changed, 39 insertions, 0 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H
index 375ee4eed..21f0d63d8 100644
--- a/FL/Fl_Text_Display.H
+++ b/FL/Fl_Text_Display.H
@@ -391,6 +391,42 @@ public:
*/
void textcolor(Fl_Color n) {textcolor_ = n;}
+ /**
+ Sets the underline color for style attribute ATTR_GRAMMAR.
+ \param color underline color
+ */
+ void grammar_underline_color(Fl_Color color) { grammar_underline_color_ = color; }
+
+ /**
+ Gets the underline color for style attribute ATTR_GRAMMAR.
+ \return underline color
+ */
+ Fl_Color grammar_underline_color() const { return grammar_underline_color_;}
+
+ /**
+ Sets the underline color for style attribute ATTR_SPELLING.
+ \param color underline color
+ */
+ void spelling_underline_color(Fl_Color color) { spelling_underline_color_ = color; }
+
+ /**
+ Gets the underline color for style attribute ATTR_SPELLING.
+ \return underline color
+ */
+ Fl_Color spelling_underline_color() const { return spelling_underline_color_;}
+
+ /**
+ Sets the background color for the secondary selection block.
+ \param color background color
+ */
+ void secondary_selection_color(Fl_Color color) { secondary_selection_color_ = color; }
+
+ /**
+ Gets the background color for the secondary selection block.
+ \return background color color
+ */
+ Fl_Color secondary_selection_color() const { return secondary_selection_color_;}
+
int wrapped_column(int row, int column) const;
int wrapped_row(int row) const;
void wrap_mode(int wrap, int wrap_margin);
@@ -604,6 +640,9 @@ protected:
Fl_Font textfont_;
Fl_Fontsize textsize_;
Fl_Color textcolor_;
+ Fl_Color grammar_underline_color_;
+ Fl_Color spelling_underline_color_;
+ Fl_Color secondary_selection_color_;
// Line number margin and width
int mLineNumLeft, mLineNumWidth;