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-inputs.ads | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/fltk-widgets-inputs.ads') diff --git a/src/fltk-widgets-inputs.ads b/src/fltk-widgets-inputs.ads index 7fc436b..15c9075 100644 --- a/src/fltk-widgets-inputs.ads +++ b/src/fltk-widgets-inputs.ads @@ -4,6 +4,10 @@ -- Released into the public domain +limited with + + FLTK.Widgets.Groups; + private with Interfaces.C.Strings, @@ -34,6 +38,12 @@ package FLTK.Widgets.Inputs is Text : in String := "") return Input; + function Create + (Parent : in out FLTK.Widgets.Groups.Group'Class; + X, Y, W, H : in Integer; + Text : in String := "") + return Input; + end Forge; -- cgit