From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- src/fltk-widgets-valuators.ads | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'src/fltk-widgets-valuators.ads') 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; + -- cgit