hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.62k stars 669 forks source link

Get viewport maximization/mlnimization state #2332

Open BenTalagan opened 1 month ago

BenTalagan commented 1 month ago

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

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!)