diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-08 17:59:56 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-08 17:59:56 +1000 |
commit | feff84c70259ab4faabbf066ba38337646dff9ef (patch) | |
tree | 13297a87356f3dcb5bc6ab415fff9cce9986d06c /src/ViewStyle.h | |
parent | 3698dbe9ada24cea2b6a6c4c07428e9a457a6b51 (diff) | |
download | scintilla-mirror-feff84c70259ab4faabbf066ba38337646dff9ef.tar.gz |
Move functionality from Editor to ViewStyle.
controlCharSymbol setting moved along with calculated fields for tab
width and control symbols.
Use of TextSegment simplified and variables made const where possible.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 5593c0b47..8a05cd393 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -73,6 +73,7 @@ public: unsigned int maxDescent; XYPOSITION aveCharWidth; XYPOSITION spaceWidth; + XYPOSITION tabWidth; bool selforeset; ColourDesired selforeground; ColourDesired selAdditionalForeground; @@ -87,6 +88,8 @@ public: ColourDesired whitespaceForeground; bool whitespaceBackgroundSet; ColourDesired whitespaceBackground; + int controlCharSymbol; + XYPOSITION controlCharWidth; ColourDesired selbar; ColourDesired selbarlight; bool foldmarginColourSet; @@ -139,7 +142,7 @@ public: ViewStyle(const ViewStyle &source); ~ViewStyle(); void Init(size_t stylesSize_=64); - void Refresh(Surface &surface); + void Refresh(Surface &surface, int tabInChars); void ReleaseAllExtendedStyles(); int AllocateExtendedStyles(int numberStyles); void EnsureStyle(size_t index); @@ -149,6 +152,8 @@ public: bool ProtectionActive() const; bool ValidStyle(size_t styleIndex) const; void CalcLargestMarkerHeight(); + ColourDesired WrapColour() const; + private: void AllocStyles(size_t sizeNew); void CreateFont(const FontSpecification &fs); |