summaryrefslogtreecommitdiff
path: root/src/c_fl_surface_device.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-29 23:51:07 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-29 23:51:07 +1300
commitb870f2a1e8fcb956ce316e6a600d7d0625604830 (patch)
tree1baa64b41151cdd956666c37eeabc9867b69b47c /src/c_fl_surface_device.cpp
parent42fff9f52462823b3cb315476fd9d67d4e7fc075 (diff)
Revised FLTK.Devices.Surface subhierarchy
Diffstat (limited to 'src/c_fl_surface_device.cpp')
-rw-r--r--src/c_fl_surface_device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c_fl_surface_device.cpp b/src/c_fl_surface_device.cpp
index 34b2bac..50088cf 100644
--- a/src/c_fl_surface_device.cpp
+++ b/src/c_fl_surface_device.cpp
@@ -10,6 +10,8 @@
+// Adding relevant friends
+
class My_Surface_Device : public Fl_Surface_Device {
public:
using Fl_Surface_Device::Fl_Surface_Device;
@@ -19,6 +21,8 @@ public:
+// Flattened C API
+
SURFACEDEVICE new_fl_surface_device(void * g) {
My_Surface_Device *s = new My_Surface_Device(reinterpret_cast<Fl_Graphics_Driver*>(g));
return s;