diff options
Diffstat (limited to 'src/fltk-widgets-progress_bars.adb')
-rw-r--r-- | src/fltk-widgets-progress_bars.adb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fltk-widgets-progress_bars.adb b/src/fltk-widgets-progress_bars.adb index 7e25c85..b82fef6 100644 --- a/src/fltk-widgets-progress_bars.adb +++ b/src/fltk-widgets-progress_bars.adb @@ -6,6 +6,7 @@ with + FLTK.Widgets.Groups, Interfaces.C.Strings; @@ -148,6 +149,18 @@ package body FLTK.Widgets.Progress_Bars 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 Progress_Bar is + begin + return This : Progress_Bar := Create (X, Y, W, H, Text) do + Parent.Add (This); + end return; + end Create; + end Forge; |