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 | 99ea64c2c914608d3429e63845f8ed396b234dd7 (patch) | |
tree | 767a09255183d906af68706bfd11df4787b0a5c9 /src/fltk_binding/fltk-widget-button.ads | |
parent | 63d9e14dd0cccb2191bd18ec07cfb11d06a30fcd (diff) |
Buttons and accessors
Diffstat (limited to 'src/fltk_binding/fltk-widget-button.ads')
-rw-r--r-- | src/fltk_binding/fltk-widget-button.ads | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/fltk_binding/fltk-widget-button.ads b/src/fltk_binding/fltk-widget-button.ads index 8212fe3..14762bf 100644 --- a/src/fltk_binding/fltk-widget-button.ads +++ b/src/fltk_binding/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 |