aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-08-07 05:49:19 +0000
committernyamatongwe <unknown>2002-08-07 05:49:19 +0000
commitc324b5001d38f6dc7a0c6a31a5f13f2d74bdf7a2 (patch)
tree818e7f8c335079cf477dc5580822fd1c4061184e /src
parent23406f04b855445f4e2e981b583eac10c886f388 (diff)
downloadscintilla-mirror-c324b5001d38f6dc7a0c6a31a5f13f2d74bdf7a2.tar.gz
New markers called DOTDOTDOT and ARROWS for emulating Python prompts.
Diffstat (limited to 'src')
-rw-r--r--src/LineMarker.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx
index 1b8975d9c..009ea4ea5 100644
--- a/src/LineMarker.cxx
+++ b/src/LineMarker.cxx
@@ -239,6 +239,22 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
surface->DrawTextClipped(rc, fontForCharacter, rc.bottom - 2,
character, 1, fore.allocated, back.allocated);
+ } else if (markType == SC_MARK_DOTDOTDOT) {
+ int right = centreX - 6;
+ for (int b=0; b<3; b++) {
+ PRectangle rcBlob(right, rc.bottom - 4, right + 2, rc.bottom-2);
+ surface->FillRectangle(rcBlob, fore.allocated);
+ right += 5;
+ }
+ } else if (markType == SC_MARK_ARROWS) {
+ surface->PenColour(fore.allocated);
+ int right = centreX - 2;
+ for (int b=0; b<3; b++) {
+ surface->MoveTo(right - 4, centreY - 4);
+ surface->LineTo(right, centreY);
+ surface->LineTo(right - 5, centreY + 5);
+ right += 4;
+ }
} else { // SC_MARK_SHORTARROW
Point pts[] = {
Point(centreX, centreY + dimOn2),