glfw: add doc-comment

Add comment for new `glfw.Window.SizeOptional` struct

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
This commit is contained in:
InKryption 2021-12-10 02:40:24 +01:00 committed by Stephen Gutekanst
parent b50b56760e
commit f953621a40

View file

@ -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,