diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-09 12:51:42 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-09 12:51:42 +1000 |
commit | 5b3f266d4de340bf8a881b37d7e5097d2eda16ab (patch) | |
tree | 97f30d84fbd3d4d38c7a37d9ef03daa6e7db3932 /src/ViewStyle.h | |
parent | c7f250a5cca5545e7858786a0ca13620b87b7ada (diff) | |
download | scintilla-mirror-5b3f266d4de340bf8a881b37d7e5097d2eda16ab.tar.gz |
Move wrapping, edge and visual adjustments from Editor to ViewStyle.
Move printing parameters into a separate struct.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 8a05cd393..22e8a8f5a 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -56,6 +56,8 @@ enum WhiteSpaceVisibility {wsInvisible=0, wsVisibleAlways=1, wsVisibleAfterInden typedef std::map<FontSpecification, FontRealised *> FontMap; +enum WrapMode { eWrapNone, eWrapWord, eWrapChar }; + /** */ class ViewStyle { @@ -137,6 +139,17 @@ public: int braceHighlightIndicator; bool braceBadLightIndicatorSet; int braceBadLightIndicator; + int theEdge; + int marginNumberPadding; // the right-side padding of the number margin + int ctrlCharPadding; // the padding around control character text blobs + int lastSegItalicsOffset; // the offset so as not to clip italic characters at EOLs + + // Wrapping support + WrapMode wrapState; + int wrapVisualFlags; + int wrapVisualFlagsLocation; + int wrapVisualStartIndent; + int wrapIndentMode; // SC_WRAPINDENT_FIXED, _SAME, _INDENT ViewStyle(); ViewStyle(const ViewStyle &source); @@ -153,6 +166,11 @@ public: bool ValidStyle(size_t styleIndex) const; void CalcLargestMarkerHeight(); ColourDesired WrapColour() const; + bool SetWrapState(int wrapState_); + bool SetWrapVisualFlags(int wrapVisualFlags_); + bool SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation_); + bool SetWrapVisualStartIndent(int wrapVisualStartIndent_); + bool SetWrapIndentMode(int wrapIndentMode_); private: void AllocStyles(size_t sizeNew); |