blob: b581be753d59ef5548a93b17773c0699fcd2a41a (
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
|
-- Programmed by Jedidiah Barber
-- Released into the public domain
with
FLTK.Devices.Graphics;
package FLTK.Devices.Surface.Display is
type Display_Device is new Surface_Device with private;
type Display_Device_Reference (Data : not null access Display_Device'Class) is
limited null record with Implicit_Dereference => Data;
package Forge is
-- Docs say you shouldn't ever need to use this, but it's here anyway.
function Create
(Graphics : in out FLTK.Devices.Graphics.Graphics_Driver)
return Display_Device;
end Forge;
function Get_Platform_Display
return Display_Device_Reference;
private
type Display_Device is new Surface_Device with null record;
overriding procedure Finalize
(This : in out Display_Device);
pragma Inline (Get_Platform_Display);
end FLTK.Devices.Surface.Display;
|