diff options
author | nyamatongwe <unknown> | 2000-06-21 02:59:25 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-06-21 02:59:25 +0000 |
commit | e7729d12b8676528ab5bfecf58d586ac1fbafeb1 (patch) | |
tree | dce2610a6c578021e13c36d3e4e2c9f4a2eb6dfc /src/Editor.h | |
parent | 37147e61367b4d73deae7dbd315c498cdd7c6198 (diff) | |
download | scintilla-mirror-e7729d12b8676528ab5bfecf58d586ac1fbafeb1.tar.gz |
Added indentation guide API.
View whitespace has setting to only see outside indentation.
Indentation guide highlight.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Editor.h b/src/Editor.h index 808a656be..73b0308c8 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -31,6 +31,8 @@ public: // Drawing is only performed for maxLineLength characters on each line. enum {maxLineLength = 4000}; int numCharsInLine; + int xHighlightGuide; + bool highlightColumn; char chars[maxLineLength]; char styles[maxLineLength]; char indicators[maxLineLength]; @@ -69,6 +71,8 @@ protected: // ScintillaBase subclass needs access to much of Editor Surface pixmapLine; Surface pixmapSelMargin; Surface pixmapSelPattern; + Surface pixmapIndentGuide; + Surface pixmapIndentGuideHighlight; // Intellimouse support - currently only implemented for Windows unsigned int ucWheelScrollLines; int cWheelDelta; //wheel delta from roll @@ -98,6 +102,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool needUpdateUI; Position braces[2]; int bracesMatchStyle; + int highlightGuideColumn; int edgeState; int theEdge; @@ -183,7 +188,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void PaintSelMargin(Surface *surface, PRectangle &rc); void LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayout &ll); - void DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int xStart, + void DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVisible, int xStart, PRectangle rcLine, LineLayout &ll); void Paint(Surface *surfaceWindow, PRectangle rcArea); long FormatRange(bool draw, FORMATRANGE *pfr); @@ -241,8 +246,8 @@ protected: // ScintillaBase subclass needs access to much of Editor virtual int KeyDefault(int /* key */, int /*modifiers*/); int KeyDown(int key, bool shift, bool ctrl, bool alt); - bool GetWhitespaceVisible(); - void SetWhitespaceVisible(bool view); + int GetWhitespaceVisible(); + void SetWhitespaceVisible(int view); void Indent(bool forwards); |