mirror of
https://github.com/swaywm/zig-wlroots
synced 2024-09-29 05:36:47 +02:00
Bing wlr_viewporter.h
This commit is contained in:
parent
8212034439
commit
5fbaf59a4b
2 changed files with 28 additions and 0 deletions
25
src/types/viewporter.zig
Normal file
25
src/types/viewporter.zig
Normal 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),
|
||||
};
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue