19 #ifndef MIRAL_TOOLKIT_SURFACE_H 20 #define MIRAL_TOOLKIT_SURFACE_H 22 #include <mir_toolkit/mir_surface.h> 35 explicit Surface(MirSurface* spec) : self{spec, deleter} {}
38 operator MirSurface*()
const {
return self.get(); }
43 static void deleter(MirSurface* surface) { mir_surface_release_sync(surface); }
44 std::shared_ptr<MirSurface>
self;
49 #endif //MIRAL_TOOLKIT_SURFACE_H
Mir Abstraction Layer.
Definition: active_outputs.h:27