aboutsummaryrefslogtreecommitdiff
path: root/src/wl/output/geometry.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-08-22 20:12:56 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2025-08-22 20:12:56 +0200
commit956ecb061b1862a4b632c8d5d6b6fa4318e1f640 (patch)
treef00adc9bfced275f280239b25a2b2ae15f57765b /src/wl/output/geometry.zig
parent33e1de2710fe44512440e0e6055578d67dab330c (diff)
object refactor and add wl output
Now the Object is held by the registry instead of the struct its referencing and the struct only has a `handle` which is a usize.
Diffstat (limited to 'src/wl/output/geometry.zig')
-rw-r--r--src/wl/output/geometry.zig12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wl/output/geometry.zig b/src/wl/output/geometry.zig
new file mode 100644
index 0000000..2dfcf2f
--- /dev/null
+++ b/src/wl/output/geometry.zig
@@ -0,0 +1,12 @@
+const Subpixel = @import("root.zig").Subpixel;
+const Transform = @import("root.zig").Transform;
+
+x: u32,
+y: u32,
+physical_width: u32,
+physical_height: u32,
+subpixel: Subpixel,
+make: []const u8,
+model: []const u8,
+transform: Transform,
+