summaryrefslogtreecommitdiff
path: root/fltk-widgets-buttons.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-05-26 00:38:43 +1000
committerJed Barber <jjbarber@y7mail.com>2016-05-26 00:38:43 +1000
commit0f28695be695a0b2e8fbfff388c61cb69cdc03af (patch)
tree9b9de86c8c308f9fdac949620d4deec6d21a3710 /fltk-widgets-buttons.ads
parentcbe99e357fff28fb6aa3db7bec03756385c8928c (diff)
The Great Package Naming Style Change(tm)
Diffstat (limited to 'fltk-widgets-buttons.ads')
-rw-r--r--fltk-widgets-buttons.ads40
1 files changed, 40 insertions, 0 deletions
diff --git a/fltk-widgets-buttons.ads b/fltk-widgets-buttons.ads
new file mode 100644
index 0000000..63329b8
--- /dev/null
+++ b/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;
+