home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
1990
/
08
/
tricks
/
mouse.def
< prev
next >
Wrap
Text File
|
1990-07-05
|
2KB
|
52 lines
(* ------------------------------------------------------ *)
(* MOUSE.DEF *)
(* Mausroutinen für Fitted Modula-2 *)
(* (c) 1990 Jörg Peters & TOOLBOX *)
(* ------------------------------------------------------ *)
DEFINITION MODULE Mouse;
PROCEDURE InitMouse;
(* Maus initialisieren *)
PROCEDURE ShowMouse;
(* Maus zeigen *)
PROCEDURE HideMouse;
(* Maus verstecken *)
PROCEDURE SetTextMouse(type, start, stop : CARDINAL);
(* Text-Maus setzen *)
(* type : 0 = Software, 1 = Hardware *)
(* start : Anfangszeile, stop : Endzeile *)
PROCEDURE MousePosition(VAR x, y : CARDINAL);
(* Mausposition feststellen (Grafikkoordinaten) *)
PROCEDURE LeftButton() : BOOLEAN;
(* Wurde die linke Taste gedrückt? *)
PROCEDURE RightButton() : BOOLEAN;
(* Wurde die rechte Taste gedrückt? *)
PROCEDURE BothButtons() : BOOLEAN;
(* Wurden etwa beide Tasten gedrückt? *)
PROCEDURE SetMousePosition(x, y : CARDINAL);
(* Maus neu positionieren (Grafikkkordinaten) *)
PROCEDURE MouseInArea(x1, y1, x2, y2 : CARDINAL): BOOLEAN;
(* Befindet sich die Maus im angegebenen *)
(* Bereich? (Grafikkoordinaten) *)
PROCEDURE HorizontalBorder(left, right : CARDINAL);
(* Linke und rechte Grenze für Maus festlegen *)
(* (Grafikkoordinaten) *)
PROCEDURE VerticalBorder(top, bottom : CARDINAL);
(* Obere und untere Grenze für Maus festlegen *)
(* (Grafikkoordinaten) *)
END Mouse.
(* ------------------------------------------------------ *)
(* Ende von MOUSE.DEF *)