From f953621a402711b7851b6bd73b76bca423d0a726 Mon Sep 17 00:00:00 2001 From: InKryption <59504965+InKryption@users.noreply.github.com> Date: Fri, 10 Dec 2021 02:40:24 +0100 Subject: [PATCH] glfw: add doc-comment Add comment for new `glfw.Window.SizeOptional` struct Co-authored-by: Stephen Gutekanst --- glfw/src/Window.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glfw/src/Window.zig b/glfw/src/Window.zig index 701da263..6c8e91c4 100644 --- a/glfw/src/Window.zig +++ b/glfw/src/Window.zig @@ -704,6 +704,8 @@ pub inline fn setSize(self: Window, size: Size) error{PlatformError}!void { }; } +/// A size with option width/height, used to represent e.g. constraints on a windows size while +/// allowing specific axis to be unconstrained (null) if desired. pub const SizeOptional = struct { width: ?usize, height: ?usize,