diff options
Diffstat (limited to 'src/fltk-widgets-valuators.adb')
-rw-r--r-- | src/fltk-widgets-valuators.adb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fltk-widgets-valuators.adb b/src/fltk-widgets-valuators.adb index 197111f..62ef77b 100644 --- a/src/fltk-widgets-valuators.adb +++ b/src/fltk-widgets-valuators.adb @@ -6,6 +6,7 @@ with + FLTK.Widgets.Groups, Interfaces.C.Strings; @@ -221,6 +222,18 @@ package body FLTK.Widgets.Valuators is end return; end Create; + + function Create + (Parent : in out FLTK.Widgets.Groups.Group'Class; + X, Y, W, H : in Integer; + Text : in String := "") + return Valuator is + begin + return This : Valuator := Create (X, Y, W, H, Text) do + Parent.Add (This); + end return; + end Create; + end Forge; |