diff options
author | nyamatongwe <devnull@localhost> | 2000-05-10 11:53:11 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-05-10 11:53:11 +0000 |
commit | 256989e8407879dbacdfb618c2cad67de160ac00 (patch) | |
tree | 722bc4ebdab9d5e760b31d87854695c25fecc294 /src/Style.cxx | |
parent | 8d20ab7b6e45c33d073b53638c60d4348712be09 (diff) | |
download | scintilla-mirror-256989e8407879dbacdfb618c2cad67de160ac00.tar.gz |
Added underline attribute to styles.
Added diagonal and strike-through indicators.
Diffstat (limited to 'src/Style.cxx')
-rw-r--r-- | src/Style.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Style.cxx b/src/Style.cxx index 36d4b9850..2fea6898d 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -13,19 +13,20 @@ Style::Style() { aliasOfDefaultFont = true; Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), Platform::DefaultFontSize(), 0, - false, false, false); + false, false, false, false); } Style::Style(const Style &source) { Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), 0, 0, - false, false, false); + false, false, false, false); fore.desired = source.fore.desired; back.desired = source.back.desired; bold = source.bold; italic = source.italic; size = source.size; eolFilled = source.eolFilled; + underline = source.underline; } Style::~Style() { @@ -41,18 +42,19 @@ Style &Style::operator=(const Style &source) { return *this; Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), 0, 0, - false, false, false); + false, false, false, false); fore.desired = source.fore.desired; back.desired = source.back.desired; bold = source.bold; italic = source.italic; size = source.size; eolFilled = source.eolFilled; + underline = source.underline; return *this; } void Style::Clear(Colour fore_, Colour back_, int size_, const char *fontName_, - bool bold_, bool italic_, bool eolFilled_) { + bool bold_, bool italic_, bool eolFilled_, bool underline_) { fore.desired = fore_; back.desired = back_; bold = bold_; @@ -60,6 +62,7 @@ void Style::Clear(Colour fore_, Colour back_, int size_, const char *fontName_, size = size_; fontName = fontName_; eolFilled = eolFilled_; + underline = underline_; if (aliasOfDefaultFont) font.SetID(0); else |