From c324b5001d38f6dc7a0c6a31a5f13f2d74bdf7a2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 7 Aug 2002 05:49:19 +0000 Subject: New markers called DOTDOTDOT and ARROWS for emulating Python prompts. --- src/LineMarker.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') 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), -- cgit v1.2.3