You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I find it hard (even impossible) to know if the main window/viewport is in maximized/minimized state with the current API.
Describe alternatives you've considered
Using get_viewport_pos gives the position of the viewport in the normal state. So it is a no go.
Using a boolean to remember the state is not sufficient, because the user can trigger maximization / minimization events from the OS directly so there's no chance to be informed of those events (except with a callback, but the API does not offer this possibility)
Describe the solution you'd like
Add some functions giving this information (e.g. ìs_viewport_maximized , is_viewport_minimized)
Maybe it's not to hard to implement, at least for MacOS and linux ? It looks like glfw offers solutions, I think, like :
int iconified = [glfwGetWindowAttrib](https://www.glfw.org/docs/3.3/group__window.html#gacccb29947ea4b16860ebef42c2cb9337)(window, [GLFW_ICONIFIED](https://www.glfw.org/docs/3.3/group__window.html#ga39d44b7c056e55e581355a92d240b58a));
(PS: Thank you for the hard work!)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I find it hard (even impossible) to know if the main window/viewport is in maximized/minimized state with the current API.
Describe alternatives you've considered
get_viewport_pos
gives the position of the viewport in the normal state. So it is a no go.Describe the solution you'd like
Add some functions giving this information (e.g.
ìs_viewport_maximized
,is_viewport_minimized
)Maybe it's not to hard to implement, at least for MacOS and linux ? It looks like glfw offers solutions, I think, like :
(PS: Thank you for the hard work!)
The text was updated successfully, but these errors were encountered: