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


package FLTK.Images.Pixmaps is


    type Pixmap is new Image with private;

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




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

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




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

    procedure Desaturate
           (This : in out Pixmap);




    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 (Copy);
    pragma Inline (Draw);


end FLTK.Images.Pixmaps;