aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-04-07 21:26:47 +1000
committernyamatongwe <devnull@localhost>2011-04-07 21:26:47 +1000
commit4012f14e6397f5709586102540df824d8c9ca4a5 (patch)
tree9f1535ca2d7a2690ba79a62d0d96ec58b9c9af96 /src/LineMarker.h
parentc3d271e16f72cad5bf4f669614a78a67c5663037 (diff)
downloadscintilla-mirror-4012f14e6397f5709586102540df824d8c9ca4a5.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.h9
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