diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-08-06 21:55:23 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-08-06 21:55:23 +1000 |
commit | 051ddb2a265dda897bce72edc318beadd111eba2 (patch) | |
tree | 27ee7ab70250eb3fdcd8c358ec4712c44a7907f4 /src/grids.ads | |
parent | 751f0ac7e8f695413d8c1a56deefa428d5314b9b (diff) |
Mouseclick pathing now implemented
Diffstat (limited to 'src/grids.ads')
-rw-r--r-- | src/grids.ads | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/grids.ads b/src/grids.ads index af2971b..98230f8 100644 --- a/src/grids.ads +++ b/src/grids.ads @@ -16,21 +16,20 @@ package Grids is type Grid is new FLTK.Widgets.Widget with private; + + -- Don't use this. function Create (X, Y, W, H : in Integer; Text : in String) return Grid; - -- Use this instead. function Create (X, Y : in Integer) return Grid; - procedure Draw - (This : in out Grid); -- Meant for Displays to adjust the Grid. @@ -38,25 +37,24 @@ package Grids is (This : in out Grid; To : in Natural); - -- Meant for Displays to adjust the Grid. procedure Set_Rows (This : in out Grid; To : in Natural); + + function In_Bounds (This : in Grid; X, Y : in Integer) return Boolean; - function Get_Square (This : in Grid; X, Y : in Integer) return Squares.Square; - procedure Set_Square (This : in out Grid; X, Y : in Integer; @@ -64,6 +62,25 @@ package Grids is with Pre => This.In_Bounds (X, Y); + + + procedure Pixel_To_Colrow + (This : in Grid; + X, Y : in Integer; + C, R : out Integer); + + procedure Colrow_To_Pixel + (This : in Grid; + C, R : in Integer; + X, Y : out Integer); + + + + + procedure Draw + (This : in out Grid); + + private |