From edbb0173d98b170ef75eda0149a132b9836e239d Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 25 Nov 2024 16:17:52 +1300 Subject: Package renames for avoiding name clashes and abbreviations --- src/fltk-widgets-inputs-floating_point.ads | 72 ++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/fltk-widgets-inputs-floating_point.ads (limited to 'src/fltk-widgets-inputs-floating_point.ads') diff --git a/src/fltk-widgets-inputs-floating_point.ads b/src/fltk-widgets-inputs-floating_point.ads new file mode 100644 index 0000000..dcc19de --- /dev/null +++ b/src/fltk-widgets-inputs-floating_point.ads @@ -0,0 +1,72 @@ + + +-- Programmed by Jedidiah Barber +-- Released into the public domain + + +package FLTK.Widgets.Inputs.Floating_Point is + + + type Float_Input is new Input with private; + + type Float_Input_Reference (Data : not null access Float_Input'Class) is + limited null record with Implicit_Dereference => Data; + + + + + package Forge is + + function Create + (X, Y, W, H : in Integer; + Text : in String := "") + return Float_Input; + + end Forge; + + + + + function Get_Value + (This : in Float_Input) + return Long_Float; + + + + + procedure Draw + (This : in out Float_Input); + + function Handle + (This : in out Float_Input; + Event : in Event_Kind) + return Event_Outcome; + + +private + + + type Float_Input is new Input with null record; + + overriding procedure Finalize + (This : in out Float_Input); + + procedure Extra_Init + (This : in out Float_Input; + X, Y, W, H : in Integer; + Text : in String) + with Inline; + + procedure Extra_Final + (This : in out Float_Input) + with Inline; + + + pragma Inline (Get_Value); + + pragma Inline (Draw); + pragma Inline (Handle); + + +end FLTK.Widgets.Inputs.Floating_Point; + -- cgit