home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ober1096.zip
/
libsrc
/
xyplane.obe
< prev
Wrap
Text File
|
1996-04-09
|
1KB
|
40 lines
(*===============================================================*)
(* Library Module for Gardens Point Oberon *)
(*===============================================================*)
FOREIGN MODULE XYplane;
(* This is the XWindows implementation for MIPS *)
PROCEDURE InitXYplane IS IN "xyplane.o & keypress.o & -lX11";
IMPORT StdError;
CONST
erase* = 0;
draw* = 1;
(* mode parameters for Dot procedure *)
VAR
X*, Y*, W*, H* : INTEGER;
(* origin and size of drawing window *)
(* Defaults are X=0, Y=0, W=400, H=640 *)
PROCEDURE Open*(str : ARRAY OF CHAR);
(** Open a new drawing window *)
PROCEDURE Dot*(x,y,mode : INTEGER);
(** Draw/erase a dot at co-ordinates (x,y) *)
PROCEDURE IsDot*(x,y : INTEGER):BOOLEAN;
(** Tests whether a dot is drawn at co-ordinates (x,y) *)
PROCEDURE Key*():CHAR;
(** Reads the keyboard. If a key was pressed since the procedure
was last called, it is returned, else 0X is returned *)
PROCEDURE Clear*;
(** Clears the drawing window *)
END XYplane.