aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-09-23 09:33:21 +1000
committerNeil <nyamatongwe@gmail.com>2015-09-23 09:33:21 +1000
commita1104a01eb27a3ca87b1d04d75189c5ee40c7651 (patch)
tree2beb0d1376d40c574a568b8ebd49c9aa142925fb /src/ViewStyle.h
parent7d38203480abda0f0a8a73f1c374ff91e38dda14 (diff)
downloadscintilla-mirror-a1104a01eb27a3ca87b1d04d75189c5ee40c7651.tar.gz
When SC_MARK_UNDERLINE if not assigned to a margin, stop drawing the whole line.
Optimise drawing of markers that appear in the text area.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r--src/ViewStyle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h
index 930ad104c..242e7e38e 100644
--- a/src/ViewStyle.h
+++ b/src/ViewStyle.h
@@ -114,6 +114,7 @@ public:
int leftMarginWidth; ///< Spacing margin on left of text
int rightMarginWidth; ///< Spacing margin on right of text
int maskInLine; ///< Mask for markers to be put into text because there is nowhere for them to go in margin
+ int maskDrawInText; ///< Mask for markers that always draw in text
MarginStyle ms[SC_MAX_MARGIN+1];
int fixedColumnWidth; ///< Total width of margins
bool marginInside; ///< true: margin included in text view, false: separate views
@@ -160,6 +161,7 @@ public:
ViewStyle();
ViewStyle(const ViewStyle &source);
~ViewStyle();
+ void CalculateMarginWidthAndMask();
void Init(size_t stylesSize_=256);
void Refresh(Surface &surface, int tabInChars);
void ReleaseAllExtendedStyles();