Skip to content

How can you get if your window is maximized? #18879

Closed Answered by copygirl
shwwwa asked this question in Q&A
Discussion options

You must be logged in to vote

If you can get the winit::window::Window, it has an is_maximized function.

According to some other code in the repo, you might want a NonSend<WinitWindows> system parameter, where you can call get_window with the window entity. That should give you a wrapper on which you can call is_maximized.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@shwwwa
Comment options

Answer selected by shwwwa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants