diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-27 20:34:57 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-27 20:34:57 +0200 |
| commit | ed0ec55697b11fa54ff661bc6c250398a096f85a (patch) | |
| tree | 117508816bd25e04e4f8f97c7ffa1cb9d7573dfa /src/object.zig | |
| parent | f0f2124949056e3008416dcd089766a2ef69a08b (diff) | |
update Object.Ref to be a struct
Diffstat (limited to 'src/object.zig')
| -rw-r--r-- | src/object.zig | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/object.zig b/src/object.zig index 5502d3d..5b7726e 100644 --- a/src/object.zig +++ b/src/object.zig @@ -3,7 +3,17 @@ const wayland = @import("root.zig"); const Self = @This(); -pub const Ref = usize; +pub const Ref = struct { + id: u32, + + pub const display: @This() = .{ + .id = 1, + }; + + pub const registry: @This() = .{ + .id = 2, + }; +}; const VTable = struct { on_event: *const fn ( |