From eef166e90bb290735b83e177b6a5afa929e0e778 Mon Sep 17 00:00:00 2001 From: InKryption <59504965+InKryption@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:54:55 +0100 Subject: [PATCH] glfw: Publicize Window.CursorPos, Window.Size, Window.Pos, and Window.FrameSize --- glfw/src/Window.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glfw/src/Window.zig b/glfw/src/Window.zig index 1161bc6b..fae21a25 100644 --- a/glfw/src/Window.zig +++ b/glfw/src/Window.zig @@ -510,7 +510,7 @@ pub inline fn setIcon(self: Window, allocator: *mem.Allocator, images: ?[]Image) try getError(); } -const Pos = struct { +pub const Pos = struct { x: usize, y: usize, }; @@ -561,7 +561,7 @@ pub inline fn setPos(self: Window, pos: Pos) Error!void { try getError(); } -const Size = struct { +pub const Size = struct { width: usize, height: usize, }; @@ -693,7 +693,7 @@ pub inline fn getFramebufferSize(self: Window) Error!Size { return Size{ .width = @intCast(usize, width), .height = @intCast(usize, height) }; } -const FrameSize = struct { +pub const FrameSize = struct { left: usize, top: usize, right: usize, @@ -1709,7 +1709,7 @@ pub inline fn getMouseButton(self: Window, button: MouseButton) Error!Action { return @intToEnum(Action, state); } -const CursorPos = struct { +pub const CursorPos = struct { xpos: f64, ypos: f64, };