summaryrefslogtreecommitdiff
path: root/src/fltk_binding/fltk-widgets.ads
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk_binding/fltk-widgets.ads')
-rw-r--r--src/fltk_binding/fltk-widgets.ads80
1 files changed, 80 insertions, 0 deletions
diff --git a/src/fltk_binding/fltk-widgets.ads b/src/fltk_binding/fltk-widgets.ads
new file mode 100644
index 0000000..3cbef76
--- /dev/null
+++ b/src/fltk_binding/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;
+