forked from aixp/obc-OberonSystem.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Display.m
27 lines (20 loc) · 771 Bytes
/
Display.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
MODULE Display;
(*
A. V. Shiryaev, 2012.01
*)
TYPE
Frame* = POINTER TO FrameDesc; (** Base type of all displayable objects. *)
FrameDesc* = RECORD (* Objects.ObjDesc *)
next*, dsc*: Frame; (** Sibling, child pointers. *)
X*, Y*, W*, H*: SHORTINT (** Coordinates. *)
END;
FrameMsg* = RECORD (* Objects.ObjMsg *) (** Base type of messages sent to frames. *)
F*: Frame; (*target*) (** Message target, NIL for broadcast. *)
x*, y*: SHORTINT; (** Message origin. *)
res*: SHORTINT; (** Result code: <0 = error or no response, >=0 response. *)
stamp*: INTEGER; (* Objects.ObjMsg field *)
END;
MsgProc* = PROCEDURE (VAR M: FrameMsg);
VAR
Broadcast*: MsgProc; (** Message broadcast to all frames in the display space. *)
END Display.