summaryrefslogtreecommitdiff
path: root/src/fltk-screen.ads
blob: 8cf535e77a4fa122060dfc67897f70d4eb834b22 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92


package FLTK.Screen is


    function Get_X
        return Integer;

    function Get_Y
        return Integer;

    function Get_W
        return Integer;

    function Get_H
        return Integer;




    function Count
        return Integer;

    --  Screen numbers in the range 1 .. Count
    procedure DPI
           (Horizontal, Vertical :    out Float;
            Screen_Number        : in     Integer := 1);




    function Containing
           (X, Y : in Integer)
        return Integer;

    function Containing
           (X, Y, W, H : in Integer)
        return Integer;




    procedure Work_Area
           (X, Y, W, H   :    out Integer;
            Pos_X, Pos_Y : in     Integer);

    procedure Work_Area
           (X, Y, W, H :    out Integer;
            Screen_Num : in     Integer);

    procedure Work_Area
           (X, Y, W, H : out Integer);




    procedure Bounding_Rect
           (X, Y, W, H   :    out Integer;
            Pos_X, Pos_Y : in     Integer);

    procedure Bounding_Rect
           (X, Y, W, H :    out Integer;
            Screen_Num : in     Integer);

    procedure Bounding_Rect
           (X, Y, W, H : out Integer);

    procedure Bounding_Rect
           (X, Y, W, H     :    out Integer;
            PX, PY, PW, PH : in     Integer);


private


    pragma Inline (Get_X);
    pragma Inline (Get_Y);
    pragma Inline (Get_W);
    pragma Inline (Get_H);


    pragma Inline (Count);
    pragma Inline (DPI);


    pragma Inline (Containing);
    pragma Inline (Work_Area);
    pragma Inline (Bounding_Rect);


end FLTK.Screen;