Bing wlr_viewporter.h

This commit is contained in:
Isaac Freund 2020-11-04 23:53:03 +01:00
parent 8212034439
commit 5fbaf59a4b
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 28 additions and 0 deletions

25
src/types/viewporter.zig Normal file
View file

@ -0,0 +1,25 @@
const wlr = @import("../wlroots.zig");
const wayland = @import("wayland");
const wl = wayland.server.wl;
pub const Viewporter = extern struct {
global: *wl.Global,
events: extern struct {
destroy: wl.Signal(void),
},
server_destroy: wl.Listener(*wl.Server),
extern fn wlr_viewporter_create(server: *wl.Server) ?*Viewporter;
pub const create = wlr_viewporter_create;
};
pub const Viewport = extern struct {
resource: *wl.Resource,
surface: *wlr.Surface,
surface_destroy: wl.Listener(*wlr.Surface),
surface_commit: wl.Listener(*wlr.Surface),
};

View file

@ -14,6 +14,9 @@ pub const Subcompositor = @import("types/compositor.zig").Subcompositor;
pub const Surface = @import("types/surface.zig").Surface;
pub const Subsurface = @import("types/surface.zig").Subsurface;
pub const Viewporter = @import("types/viewporter.zig").Viewporter;
pub const Viewport = @import("types/viewporter.zig").Viewport;
pub const XdgShell = @import("types/xdg_shell.zig").XdgShell;
pub const XdgClient = @import("types/xdg_shell.zig").XdgClient;
pub const XdgSurface = @import("types/xdg_shell.zig").XdgSurface;