diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 00:53:56 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 00:53:56 +1300 |
commit | f9e453e3d456514066e8ecbed9fbac93a588a0d0 (patch) | |
tree | 06587afde830fb324d5ab7372f0f1686c4fd993a /src/fltk-widgets-valuators-counters.ads | |
parent | 67a43ef89ba41ac32b86cda7396c16fffaf691b3 (diff) |
Using the type method is now more consistent
Diffstat (limited to 'src/fltk-widgets-valuators-counters.ads')
-rw-r--r-- | src/fltk-widgets-valuators-counters.ads | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fltk-widgets-valuators-counters.ads b/src/fltk-widgets-valuators-counters.ads index 2cb4462..fd3cea8 100644 --- a/src/fltk-widgets-valuators-counters.ads +++ b/src/fltk-widgets-valuators-counters.ads @@ -17,6 +17,8 @@ package FLTK.Widgets.Valuators.Counters is type Counter_Reference (Data : not null access Counter'Class) is limited null record with Implicit_Dereference => Data; + type Counter_Kind is (Normal_Counter, Simple_Counter); + @@ -97,6 +99,21 @@ package FLTK.Widgets.Valuators.Counters is return Event_Outcome; + + + function Get_Kind + (This : in out Counter) + return Counter_Kind; + + package Extra is + + procedure Set_Kind + (This : in out Counter; + Value : in Counter_Kind); + + end Extra; + + private @@ -138,6 +155,8 @@ private pragma Inline (Draw); pragma Inline (Handle); + pragma Inline (Get_Kind); + end FLTK.Widgets.Valuators.Counters; |