summaryrefslogtreecommitdiff
path: root/src/fltk-devices-surface-copy.ads
blob: 41d331bd105886070463fd9c6f43a5aa785ac5f4 (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


--  Programmed by Jedidiah Barber
--  Released into the public domain


with

    FLTK.Widgets.Groups.Windows;


package FLTK.Devices.Surface.Copy is


    type Copy_Surface is new Surface_Device with private;

    type Copy_Surface_Reference (Data : not null access Copy_Surface'Class) is
        limited null record with Implicit_Dereference => Data;




    --  The initial Graphics_Driver this is supposed to have upon construction
    --  is not currently implemented properly. Please wait warmly until the
    --  binding for the Graphics sub-hierarchy is done.




    package Forge is

        function Create
               (W, H : in Natural)
            return Copy_Surface;

    end Forge;




    function Get_W
           (This : in Copy_Surface)
        return Integer;

    function Get_H
           (This : in Copy_Surface)
        return Integer;




    procedure Draw_Widget
           (This               : in out Copy_Surface;
            Item               : in     FLTK.Widgets.Widget'Class;
            Offset_X, Offset_Y : in     Integer := 0);

    procedure Draw_Decorated_Window
           (This               : in out Copy_Surface;
            Item               : in     FLTK.Widgets.Groups.Windows.Window'Class;
            Offset_X, Offset_Y : in     Integer := 0);




    procedure Set_Current
           (This : in out Copy_Surface);


private


    type Copy_Surface is new Surface_Device with null record;

    overriding procedure Finalize
           (This : in out Copy_Surface);


    pragma Inline (Get_W);
    pragma Inline (Get_H);

    pragma Inline (Draw_Widget);
    pragma Inline (Draw_Decorated_Window);

    pragma Inline (Set_Current);


end FLTK.Devices.Surface.Copy;