summaryrefslogtreecommitdiff
path: root/src/fltk-images-pixmaps.ads
blob: a935e7247707228bfe65418a5098e05b9b0421e8 (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
93
94


package FLTK.Images.Pixmaps is


    -------------
    --  Types  --
    -------------

    type Pixmap is new Image with private;

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




    --------------------
    --  Construction  --
    --------------------

    function Copy
           (This          : in Pixmap;
            Width, Height : in Natural)
        return Pixmap'Class;

    function Copy
           (This : in Pixmap)
        return Pixmap'Class;




    --------------
    --  Colors  --
    --------------

    procedure Color_Average
           (This   : in out Pixmap;
            Col    : in     Color;
            Amount : in     Blend);

    procedure Desaturate
           (This : in out Pixmap);




    ----------------
    --  Activity  --
    ----------------

    procedure Uncache
           (This : in out Pixmap);




    ---------------
    --  Drawing  --
    ---------------

    procedure Draw
           (This : in Pixmap;
            X, Y : in Integer);

    procedure Draw
           (This       : in Pixmap;
            X, Y, W, H : in Integer;
            CX, CY     : in Integer := 0);


private


    type Pixmap is new Image with null record;

    overriding procedure Finalize
           (This : in out Pixmap);


    pragma Inline (Color_Average);
    pragma Inline (Desaturate);


    pragma Inline (Uncache);


    pragma Inline (Copy);
    pragma Inline (Draw);


end FLTK.Images.Pixmaps;