diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
commit | e93b9bbc02e2791f3a35b6f077fcbb8514c28aed (patch) | |
tree | 3661530027db6809a9cbad7b2477416009e00787 /src/fltk-widgets-valuators.ads | |
parent | 53aa8144851913994b963ed611cca8885b8f9a9e (diff) |
Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there
Diffstat (limited to 'src/fltk-widgets-valuators.ads')
-rw-r--r-- | src/fltk-widgets-valuators.ads | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/fltk-widgets-valuators.ads b/src/fltk-widgets-valuators.ads index ccf2a49..83df44f 100644 --- a/src/fltk-widgets-valuators.ads +++ b/src/fltk-widgets-valuators.ads @@ -66,10 +66,19 @@ package FLTK.Widgets.Valuators is (This : in Valuator) return Long_Float; - procedure Set_Step + procedure Set_Step_Top (This : in out Valuator; To : in Long_Float); + procedure Set_Step_Bottom + (This : in out Valuator; + To : in Integer); + + procedure Set_Step + (This : in out Valuator; + Top : in Long_Float; + Bottom : in Integer); + function Get_Value (This : in Valuator) return Long_Float; @@ -93,10 +102,8 @@ package FLTK.Widgets.Valuators is - function Handle - (This : in out Valuator; - Event : in Event_Kind) - return Event_Outcome; + procedure Value_Damage + (This : in out Valuator); private @@ -104,6 +111,9 @@ private type Valuator is new Widget with null record; + overriding procedure Initialize + (This : in out Valuator); + overriding procedure Finalize (This : in out Valuator); @@ -127,6 +137,8 @@ private pragma Inline (Get_Maximum); pragma Inline (Set_Maximum); pragma Inline (Get_Step); + pragma Inline (Set_Step_Top); + pragma Inline (Set_Step_Bottom); pragma Inline (Set_Step); pragma Inline (Get_Value); pragma Inline (Set_Value); @@ -134,8 +146,9 @@ private pragma Inline (Set_Precision); pragma Inline (Set_Range); - pragma Inline (Handle); + pragma Inline (Value_Damage); end FLTK.Widgets.Valuators; + |