summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-valuators-counters.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-valuators-counters.adb')
-rw-r--r--src/fltk-widgets-valuators-counters.adb13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fltk-widgets-valuators-counters.adb b/src/fltk-widgets-valuators-counters.adb
index 30001a8..619b074 100644
--- a/src/fltk-widgets-valuators-counters.adb
+++ b/src/fltk-widgets-valuators-counters.adb
@@ -6,6 +6,7 @@
with
+ FLTK.Widgets.Groups,
Interfaces.C.Strings;
@@ -175,6 +176,18 @@ package body FLTK.Widgets.Valuators.Counters 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 Counter is
+ begin
+ return This : Counter := Create (X, Y, W, H, Text) do
+ Parent.Add (This);
+ end return;
+ end Create;
+
end Forge;