summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-windows.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-12 13:16:48 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-12 14:06:05 +1300
commitf8b638b57cc1318ef3536efae662b54b3d14a3bb (patch)
tree3d1e34a93bfa418e0dbbeb18b8a490d13d915895 /src/fltk-widgets-groups-windows.ads
parente93b9bbc02e2791f3a35b6f077fcbb8514c28aed (diff)
Added show(int argc, char **argv) methods for Window classes
Diffstat (limited to 'src/fltk-widgets-groups-windows.ads')
-rw-r--r--src/fltk-widgets-groups-windows.ads19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/fltk-widgets-groups-windows.ads b/src/fltk-widgets-groups-windows.ads
index a419fbb..97d79d9 100644
--- a/src/fltk-widgets-groups-windows.ads
+++ b/src/fltk-widgets-groups-windows.ads
@@ -10,7 +10,7 @@ with
private with
- Interfaces.C;
+ Interfaces.C.Strings;
package FLTK.Widgets.Groups.Windows is
@@ -48,6 +48,9 @@ package FLTK.Widgets.Groups.Windows is
procedure Show
(This : in out Window);
+ procedure Show_With_Args
+ (This : in out Window);
+
procedure Hide
(This : in out Window);
@@ -232,7 +235,21 @@ private
with Inline;
+ -- Used for implementing show(argc,argv)
+ type Show_With_Args_Func is access procedure
+ (CObj : in Storage.Integer_Address;
+ Argc : in Interfaces.C.int;
+ Argv : in Storage.Integer_Address);
+
+ pragma Convention (C, Show_With_Args_Func);
+
+ procedure Dispatch_Show_With_Args
+ (Func : in Show_With_Args_Func;
+ CObj : in Storage.Integer_Address);
+
+
pragma Inline (Show);
+ pragma Inline (Show_With_Args);
pragma Inline (Hide);
pragma Inline (Is_Shown);
pragma Inline (Wait_For_Expose);