diff options
author | nyamatongwe <unknown> | 2011-04-07 21:26:47 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-04-07 21:26:47 +1000 |
commit | 0adca4ad14500910cca14a54d7d4c19e740606da (patch) | |
tree | be10d8a118fb4e5fd92a549d47aa80c1df01a5cf /src/LineMarker.h | |
parent | e7dea4ff60eba17362902d514ff29ebfbc8ea3a1 (diff) | |
download | scintilla-mirror-0adca4ad14500910cca14a54d7d4c19e740606da.tar.gz |
Add highlighting of current folding block. Feature #3147069.
APIs MarkerEnableHighlight and MarkerSetBackSelected.
From Jérôme Laforge.
Diffstat (limited to 'src/LineMarker.h')
-rw-r--r-- | src/LineMarker.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/LineMarker.h b/src/LineMarker.h index 923211a05..39c38fa41 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -12,19 +12,24 @@ namespace Scintilla { #endif + /** */ class LineMarker { public: + enum typeOfFold { undefined, head, body, tail }; + int markType; ColourPair fore; ColourPair back; + ColourPair backSelected; int alpha; XPM *pxpm; LineMarker() { markType = SC_MARK_CIRCLE; fore = ColourDesired(0,0,0); back = ColourDesired(0xff,0xff,0xff); + backSelected = ColourDesired(0xff,0x00,0x00); alpha = SC_ALPHA_NOALPHA; pxpm = NULL; } @@ -33,6 +38,7 @@ public: markType = SC_MARK_CIRCLE; fore = ColourDesired(0,0,0); back = ColourDesired(0xff,0xff,0xff); + backSelected = ColourDesired(0xff,0x00,0x00); alpha = SC_ALPHA_NOALPHA; pxpm = NULL; } @@ -44,6 +50,7 @@ public: markType = SC_MARK_CIRCLE; fore = ColourDesired(0,0,0); back = ColourDesired(0xff,0xff,0xff); + backSelected = ColourDesired(0xff,0x00,0x00); alpha = SC_ALPHA_NOALPHA; delete pxpm; pxpm = NULL; @@ -52,7 +59,7 @@ public: void RefreshColourPalette(Palette &pal, bool want); void SetXPM(const char *textForm); void SetXPM(const char *const *linesForm); - void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter); + void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter, typeOfFold tFold); }; #ifdef SCI_NAMESPACE |