blob: 1c7e38387e9436369b2990b268df1db6306c1fb0 (
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,
FLTK.Widgets.Groups.Windows;
package FLTK.Devices.Surfaces.Image is
type Image_Surface is new Surface_Device with private;
package Forge is
function Create
(W, H : in Integer;
Highres : in Boolean := False)
return Image_Surface;
end Forge;
function Is_Highres
(This : in Image_Surface)
return Boolean;
procedure Draw_Widget
(This : in out Image_Surface;
Item : in FLTK.Widgets.Widget'Class;
Offset_X, Offset_Y : in Integer := 0);
procedure Draw_Decorated_Window
(This : in out Image_Surface;
Item : in FLTK.Widgets.Groups.Windows.Window'Class;
Offset_X, Offset_Y : in Integer := 0);
function Get_Image
(This : in Image_Surface)
return FLTK.Images.RGB.RGB_Image;
-- Get_Highres_Image
procedure Set_Current
(This : in out Image_Surface);
private
type Image_Surface is new Surface_Device with record
High : Boolean := False;
end record;
overriding procedure Finalize
(This : in out Image_Surface);
end FLTK.Devices.Surfaces.Image;
|