diff options
author | nyamatongwe <devnull@localhost> | 2002-08-07 05:49:19 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-08-07 05:49:19 +0000 |
commit | 93b75f55d31db550d8c8af1d63fc53a04b0d21e2 (patch) | |
tree | 818e7f8c335079cf477dc5580822fd1c4061184e /src/LineMarker.cxx | |
parent | 6d7c30812d97f74a1eb5ffab91561d395ee0f2bf (diff) | |
download | scintilla-mirror-93b75f55d31db550d8c8af1d63fc53a04b0d21e2.tar.gz |
New markers called DOTDOTDOT and ARROWS for emulating Python prompts.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r-- | src/LineMarker.cxx | 16 |
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), |