Creates a new window.
Parameters:
NSTDEventLoop event_loop - The event loop to attach to the window.
Returns: NSTDWindow window - The new window, null on error.
Creates a child window with parent being the parent window.
NOTE: This is only functional on Windows targets and will always return a null window handle on
any other platform.
Parameters:
NSTDEventLoop event_loop - The event loop to attach to the window.
NSTDWindow parent - The parent window.
Returns: NSTDWindow child - The new child window.
Gets a window’s client position.
Parameters:
NSTDWindow window - The window.
NSTDWindowPosition *pos - Returns as the position.
Returns: int errc - Nonzero on error.
Gets the display that the given window resides in.
Parameters:
NSTDWindow window - The window.
Returns: NSTDDisplay display - The display that the window is in.
Gets a window’s position.
Parameters:
NSTDWindow window - The window.
NSTDWindowPosition *pos - Returns as the position.
Returns: int errc - Nonzero on error.
Compares two window IDs.
Parameters:
NSTDWindowID id1 - A window ID.
NSTDWindowID id2 - Another window ID.
Returns: int are_same - 1 if the two IDs refer to the same window, 0 otherwise.
Sets a window’s client max size.
Parameters:
NSTDWindow window - The window.
const NSTDWindowSize *const size - An array of 2 NSTDUInt32s, null for no max.
Sets a window’s client min size.
Parameters:
NSTDWindow window - The window.
const NSTDWindowSize *const size - An array of 2 NSTDUInt32s, null for no min.
Sets a window’s icon image.
Parameters:
NSTDWindow window - The window.
const NSTDImage *const img - The icon image, null for default.
Returns: int errc - Nonzero on error.
Sets whether the window is resizable or not.
Parameters:
NSTDWindow window - The window.
const int resizable - Whether the window should be resizable or not.
Sets a window’s title.
Parameters:
NSTDWindow window - The window.
const char *const title - The new window title.
Returns: int errc - Nonzero on error.