summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-windows.ads
blob: 294450ac4781f315ae35cae5af9012eee3b04a8d (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74


with FLTK.Images.RGB;


package FLTK.Widgets.Groups.Windows is


    type Window is new Group with private;


    function Create
           (X, Y, W, H : in Integer;
            Text       : in String)
        return Window;


    function Create
           (W, H : in Integer)
        return Window;


    procedure Show
           (This : in Window);


    procedure Hide
           (This : in Window);


    procedure Set_Label
           (This : in out Window;
            Text : in     String);


    procedure Set_Size_Range
           (This                           : in out Window;
            Min_W, Min_H                   : in     Integer;
            Max_W, Max_H, Incre_W, Incre_H : in     Integer := 0;
            Keep_Aspect                    : in     Boolean := False);


    procedure Set_Icon
           (This : in out Window;
            Pic  : in out FLTK.Images.RGB.RGB_Image'Class);


    procedure Set_Modal
           (This : in out Window);


    procedure Set_Non_Modal
           (This : in out Window);


private


    procedure Draw
           (This : in out Window);


    type Window is new Group with null record;


    overriding procedure Finalize
           (This : in out Window);


    package Window_Convert is new System.Address_To_Access_Conversions (Window'Class);


end FLTK.Widgets.Groups.Windows;