summaryrefslogtreecommitdiff
path: root/src/fltk-devices-surface-display.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-24 18:51:07 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-24 18:51:07 +1300
commita8967c654b6ee09dce89fe83bcafff2181a1952f (patch)
tree447694a360f1b15ffd67155ee13b1e948519f0e2 /src/fltk-devices-surface-display.ads
parent6673742a204f298db1ca983da0184224d9f21649 (diff)
Added Fl_Display_Device
Diffstat (limited to 'src/fltk-devices-surface-display.ads')
-rw-r--r--src/fltk-devices-surface-display.ads53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/fltk-devices-surface-display.ads b/src/fltk-devices-surface-display.ads
new file mode 100644
index 0000000..b581be7
--- /dev/null
+++ b/src/fltk-devices-surface-display.ads
@@ -0,0 +1,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;
+
+