diff options
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 |