diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-05-25 01:10:29 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-05-25 01:10:29 +1000 |
commit | a3a475cc6a88e7fbd5d55cbca3dd517c0d34b260 (patch) | |
tree | 5274efd53486c3061741eb549e31aebf045e1129 /fltk-widget-button.ads | |
parent | ac5c51b6ee492b504e165408b742d2505e308e94 (diff) |
Buttons and accessors
Diffstat (limited to 'fltk-widget-button.ads')
-rw-r--r-- | fltk-widget-button.ads | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/fltk-widget-button.ads b/fltk-widget-button.ads index 8212fe3..14762bf 100644 --- a/fltk-widget-button.ads +++ b/fltk-widget-button.ads @@ -4,9 +4,27 @@ package FLTK.Widget.Button is type Button_Type is new Widget_Type with private; + type State is (On, Off); - function Create (X, Y, W, H : Integer; Label : String) return Button_Type; + function Create + (X, Y, W, H : Integer; + Label : String) + return Button_Type; + + + function Get_State + (B : in Button_Type'Class) + return State; + + + procedure Set_State + (B : in Button_Type'Class; + S : in State); + + + procedure Set_Only + (B : in Button_Type'Class); private |