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:
parent
b50b56760e
commit
f953621a40
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue