aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-08-14 13:14:07 +0000
committernyamatongwe <unknown>2003-08-14 13:14:07 +0000
commit609054ff3822a1c148500b78ec2fb6cd39b77c3f (patch)
tree28fd050697d2cf80ab40c8559649afc998dd208a /src
parenta9e390b60095c37b1e863931faeeddf165ac23c7 (diff)
downloadscintilla-mirror-609054ff3822a1c148500b78ec2fb6cd39b77c3f.tar.gz
Added BOX indicator.
Diffstat (limited to 'src')
-rw-r--r--src/Indicator.cxx8
-rw-r--r--src/Indicator.h2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index 1e386b68e..a42abb203 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -10,7 +10,7 @@
#include "Scintilla.h"
#include "Indicator.h"
-void Indicator::Draw(Surface *surface, PRectangle &rc) {
+void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) {
surface->PenColour(fore.allocated);
int ymid = (rc.bottom + rc.top) / 2;
if (style == INDIC_SQUIGGLE) {
@@ -57,6 +57,12 @@ void Indicator::Draw(Surface *surface, PRectangle &rc) {
surface->LineTo(rc.right, rc.top - 4);
} else if (style == INDIC_HIDDEN) {
// Draw nothing
+ } else if (style == INDIC_BOX) {
+ surface->MoveTo(rc.left, ymid+1);
+ surface->LineTo(rc.right, ymid+1);
+ surface->LineTo(rc.right, rcLine.top+1);
+ surface->LineTo(rc.left, rcLine.top+1);
+ surface->LineTo(rc.left, ymid+1);
} else { // Either INDIC_PLAIN or unknown
surface->MoveTo(rc.left, ymid);
surface->LineTo(rc.right, ymid);
diff --git a/src/Indicator.h b/src/Indicator.h
index 56e9420bc..716db1051 100644
--- a/src/Indicator.h
+++ b/src/Indicator.h
@@ -16,7 +16,7 @@ public:
ColourPair fore;
Indicator() : style(INDIC_PLAIN), fore(ColourDesired(0,0,0)) {
}
- void Draw(Surface *surface, PRectangle &rc);
+ void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine);
};
#endif