summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-inputs-text-floating_point.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-inputs-text-floating_point.adb')
-rw-r--r--src/fltk-widgets-inputs-text-floating_point.adb13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fltk-widgets-inputs-text-floating_point.adb b/src/fltk-widgets-inputs-text-floating_point.adb
index 61ea531..c7982d2 100644
--- a/src/fltk-widgets-inputs-text-floating_point.adb
+++ b/src/fltk-widgets-inputs-text-floating_point.adb
@@ -6,6 +6,7 @@
with
+ FLTK.Widgets.Groups,
Interfaces.C.Strings;
use type
@@ -113,6 +114,18 @@ package body FLTK.Widgets.Inputs.Text.Floating_Point 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 Float_Input is
+ begin
+ return This : Float_Input := Create (X, Y, W, H, Text) do
+ Parent.Add (This);
+ end return;
+ end Create;
+
end Forge;