Skip to content

Examples for controlling the window? #991

Answered by tarkah
JonahPlusPlus asked this question in Q&A
Discussion options

You must be logged in to vote

FYI, there is an enhancement coming soon in #1019.

It updates Command to accept an Action. These actions are intended to do exactly this. The following window actions are added in the PR and will trigger the appropriate winit method behind the scenes. It should be extremely easy to add Minimize, Restore and any other window actions that can be called in winit.

https://github.com/hecrj/iced/blob/7cb6e7438f7fb5d0d8be4528a31b888e2b12cd51/native/src/window/action.rs#L1-L18

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hecrj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #983 on August 11, 2021 12:34.