diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-11-25 16:17:52 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-11-25 16:17:52 +1300 |
commit | edbb0173d98b170ef75eda0149a132b9836e239d (patch) | |
tree | 359e2dcc600cf106c74baced1a961f827d50624e /src/fltk-widgets-inputs-floating_point.ads | |
parent | b2f485d9dfe25c2006fe2a1ace9a7ed1a9a9162f (diff) |
Package renames for avoiding name clashes and abbreviations
Diffstat (limited to 'src/fltk-widgets-inputs-floating_point.ads')
-rw-r--r-- | src/fltk-widgets-inputs-floating_point.ads | 72 |
1 files changed, 72 insertions, 0 deletions
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; + |