From 63d9e14dd0cccb2191bd18ec07cfb11d06a30fcd Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 24 May 2016 02:25:30 +1000 Subject: It's a start --- src/fltk_binding/fltk-widget.ads | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/fltk_binding/fltk-widget.ads (limited to 'src/fltk_binding/fltk-widget.ads') diff --git a/src/fltk_binding/fltk-widget.ads b/src/fltk_binding/fltk-widget.ads new file mode 100644 index 0000000..1e56c4f --- /dev/null +++ b/src/fltk_binding/fltk-widget.ads @@ -0,0 +1,53 @@ + + +with FLTK.Enums; use FLTK.Enums; +private with Ada.Finalization; +private with System; + + +package FLTK.Widget is + + + type Widget_Type is abstract tagged limited private; + + + function Create + (X, Y, W, H : in Integer; + Label : in String) + return Widget_Type is abstract; + + + function Get_Box + (W : in Widget_Type'Class) + return Box_Kind; + + + procedure Set_Box + (W : in Widget_Type'Class; + B : in Box_Kind); + + + function Get_Label_Font + (W : in Widget_Type'Class) + return Font_Kind; + + + procedure Set_Label_Font + (W : in Widget_Type'Class; + F : in Font_Kind); + + +private + + + type Widget_Type is abstract new Ada.Finalization.Limited_Controlled with + record + Void_Ptr : System.Address; + end record; + + + overriding procedure Initialize (This : in out Widget_Type); + + +end FLTK.Widget; + -- cgit