--File CIFUtilitiesDefs.Mesa
-- August 1980 by MN
--
Last changed: 7-Jul-81 9:50:18

DIREC
TORY

Gra
phics: FROM "Graphics" USING [Context],
Keys: FROM "Keys" USING [KeyName];

CIFUtilitiesDefs: DEFI
NITIONS =

BEGIN
OPEN Graphics, Keys;

DisplayContext: TYPE = Graphics.Context;
Rectangle: TYPE = RECORD[llx,lly,urx,ury: REAL];
TrapezoidBlock: TYPE = RECORD[ystart,yend,xsleft,xsright,xeleft,x
eright: REAL];

I
nitCedarGraphics: PUBLIC PROCEDURE;

S
etDisplayContext: PUBLIC PROCEDURE[dc: DisplayContext];

G
etDisplayContext: PUBLIC PROCEDURE RETURNS[dc: DisplayContext];

GetBaseContext: PUBLIC PROCEDURE RETURNS[dc: Di
splayContext];

SetClipRectangle: PUBLIC PROCEDURE[cr: Rectangle];

GetClipRectangle: PUBLIC PROCEDURE RETURNS[cr: Rectangle];

GetB
aseClipRectangle: PUBLIC PROCEDURE RETURNS[cr: Rectangle];

D
rawClipRectangle: PUBLIC PROCEDURE;

Cl
earClipRectangle: PUBLIC PROCEDURE;

Draw
RectangleOutline: PUBLIC PROCEDURE[cr: Rectangle];

DrawRectangleArea: PUB
LIC PROCEDURE[cr: CIFUtilitiesDefs.Rectangle];

Move
To: PUBLIC PROCEDURE[x,y: REAL];

Dr
awTo: PUBLIC PROCEDURE[x,y: REAL];

DrawStringAt: PUBLIC PROCEDURE[s: STRING, x,y: REAL];

SetStipple: PUBLIC PROCEDURE[s: CARDINAL
];

EnableClipping: PU
BLIC PROCEDURE;

DisableClipping: PUBLIC PROCEDURE;

MapRe
ctangle: PUBLIC PROCEDURE[rect1: Rectangle, cntxt1,cntxt2: DisplayContext]
RETURNS[rect2: Rectangle];

--GetBaseContextRecord: PUBLIC PROCEDURE RETURNS[ba
seContext: DisplayContext];

SetUniformView: PUBLIC PROCEDURE[rfrom, rto: R
ectangle];

ScreenParams: PUBLIC PROCEDURE
RETURNS[base: LONG POINTER, widthWords, heightLines: CARDINAL];

TrackBox: PUBLIC PROCEDURE[x,y: REAL, mouseButton: Keys.KeyName];

MoveCursorTo: PUBLIC PROCEDURE[x,y: REAL];

WatchKeys: PUBLIC PROCEDURE;
END.