summaryrefslogtreecommitdiff
path: root/src/fltk_binding/fltk-widget.ads
blob: 1e56c4f00c3ed82ae9300d047ce42c8e69b01f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;