From 157f44ff7034212a29696c5bb2b87e4f6f20d625 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 16 Jan 2025 23:44:10 +1300 Subject: Added convenience widget constructors that specify the parent group to add to --- src/fltk-widgets-menus.ads | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/fltk-widgets-menus.ads') diff --git a/src/fltk-widgets-menus.ads b/src/fltk-widgets-menus.ads index 75670b8..648def2 100644 --- a/src/fltk-widgets-menus.ads +++ b/src/fltk-widgets-menus.ads @@ -9,6 +9,10 @@ with FLTK.Menu_Items, Ada.Iterator_Interfaces; +limited with + + FLTK.Widgets.Groups; + private with Ada.Containers.Vectors, @@ -52,6 +56,12 @@ package FLTK.Widgets.Menus is Text : in String := "") return Menu; + function Create + (Parent : in out FLTK.Widgets.Groups.Group'Class; + X, Y, W, H : in Integer; + Text : in String := "") + return Menu; + end Forge; -- cgit