From 0f28695be695a0b2e8fbfff388c61cb69cdc03af 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) --- fltk-widgets.ads | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 fltk-widgets.ads (limited to 'fltk-widgets.ads') 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; + -- cgit