aboutsummaryrefslogtreecommitdiff
path: root/src/object.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-08-27 20:34:57 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2025-08-27 20:34:57 +0200
commited0ec55697b11fa54ff661bc6c250398a096f85a (patch)
tree117508816bd25e04e4f8f97c7ffa1cb9d7573dfa /src/object.zig
parentf0f2124949056e3008416dcd089766a2ef69a08b (diff)
update Object.Ref to be a struct
Diffstat (limited to 'src/object.zig')
-rw-r--r--src/object.zig12
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 (