From 524edbb4463b66d61e92c92a7020d9d09b82e744 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 26 May 2016 00:38:43 +1000 Subject: The Great Package Naming Style Change(tm) --- src/fltk_binding/fltk-widgets-buttons.ads | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/fltk_binding/fltk-widgets-buttons.ads (limited to 'src/fltk_binding/fltk-widgets-buttons.ads') diff --git a/src/fltk_binding/fltk-widgets-buttons.ads b/src/fltk_binding/fltk-widgets-buttons.ads new file mode 100644 index 0000000..63329b8 --- /dev/null +++ b/src/fltk_binding/fltk-widgets-buttons.ads @@ -0,0 +1,40 @@ + + +package FLTK.Widgets.Buttons is + + + type Button is new Widget with private; + type State is (On, Off); + + + function Create + (X, Y, W, H : Integer; + Label : String) + return Button; + + + function Get_State + (B : in Button'Class) + return State; + + + procedure Set_State + (B : in Button'Class; + S : in State); + + + procedure Set_Only + (B : in Button'Class); + + +private + + + type Button is new Widget with null record; + + + overriding procedure Finalize (This : in out Button); + + +end FLTK.Widgets.Buttons; + -- cgit