aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-08-08 17:59:56 +1000
committerNeil <nyamatongwe@gmail.com>2013-08-08 17:59:56 +1000
commit4120b34e5c7bd5837ded943344270b2d9e26cd90 (patch)
tree40c4169086654dcabe512fa5a694fe8c0b4ab95a /src/ViewStyle.h
parenta899e335183da10b9ab9dc0df35aada3dc37fc68 (diff)
downloadscintilla-mirror-4120b34e5c7bd5837ded943344270b2d9e26cd90.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.h7
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);