summaryrefslogtreecommitdiff
path: root/fltk-widgets.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.ads
parentcbe99e357fff28fb6aa3db7bec03756385c8928c (diff)
The Great Package Naming Style Change(tm)
Diffstat (limited to 'fltk-widgets.ads')
-rw-r--r--fltk-widgets.ads80
1 files changed, 80 insertions, 0 deletions
diff --git a/fltk-widgets.ads b/fltk-widgets.ads
new file mode 100644
index 0000000..3cbef76
--- /dev/null
+++ b/fltk-widgets.ads
@@ -0,0 +1,80 @@
+
+
+with FLTK.Enums; use FLTK.Enums;
+with Ada.Finalization;
+private with System;
+
+
+package FLTK.Widgets is
+
+
+ type Widget is abstract new Ada.Finalization.Limited_Controlled with private;
+
+
+ type Font_Size is new Natural;
+ Normal_Size : constant Font_Size := 14;
+
+
+ type Color is new Natural;
+
+
+ function Create
+ (X, Y, W, H : in Integer;
+ Label : in String)
+ return Widget is abstract;
+
+
+ function Get_Box
+ (W : in Widget'Class)
+ return Box_Kind;
+
+
+ procedure Set_Box
+ (W : in Widget'Class;
+ B : in Box_Kind);
+
+
+ function Get_Label_Font
+ (W : in Widget'Class)
+ return Font_Kind;
+
+
+ procedure Set_Label_Font
+ (W : in Widget'Class;
+ F : in Font_Kind);
+
+
+ function Get_Label_Size
+ (W : in Widget'Class)
+ return Font_Size;
+
+
+ procedure Set_Label_Size
+ (W : in Widget'Class;
+ S : in Font_Size);
+
+
+ function Get_Label_Type
+ (W : in Widget'Class)
+ return Label_Kind;
+
+
+ procedure Set_Label_Type
+ (W : in Widget'Class;
+ L : in Label_Kind);
+
+
+private
+
+
+ type Widget is abstract new Ada.Finalization.Limited_Controlled with
+ record
+ Void_Ptr : System.Address;
+ end record;
+
+
+ overriding procedure Initialize (This : in out Widget);
+
+
+end FLTK.Widgets;
+