diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-04-27 10:40:48 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-04-27 10:40:48 +1000 |
commit | 0d842f0423ba0754fb3675c7468397a8da5f6e1b (patch) | |
tree | d5da172bc7af2f7f48a3415eceac67ed67542787 /src/fltk-widgets-buttons.ads | |
parent | 5d88963cd203f30b79433e34e5c89bfcf8abfe60 (diff) |
Organising source
Diffstat (limited to 'src/fltk-widgets-buttons.ads')
-rw-r--r-- | src/fltk-widgets-buttons.ads | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/fltk-widgets-buttons.ads b/src/fltk-widgets-buttons.ads new file mode 100644 index 0000000..403ad1a --- /dev/null +++ b/src/fltk-widgets-buttons.ads @@ -0,0 +1,43 @@ + + +package FLTK.Widgets.Buttons is + + + type Button is new Widget with private; + + + type State is (Off, On); + + + function Create + (X, Y, W, H : in Integer; + Text : in String) + return Button; + + + function Get_State + (This : in Button) + return State; + + + procedure Set_State + (This : in out Button; + St : in State); + + + procedure Set_Only + (This : in out Button); + + +private + + + type Button is new Widget with null record; + + + overriding procedure Finalize + (This : in out Button); + + +end FLTK.Widgets.Buttons; + |