How to listen window minimize event in rust #11826
Answered
by
FabianLars
crackleeeessyp
asked this question in
Q&A
-
From WindowEvent enum, there is no minimize event, so how can I listen window minimize event in rust? pub enum WindowEvent {
Resized(PhysicalSize<u32>),
Moved(PhysicalPosition<i32>),
#[non_exhaustive]
CloseRequested {
/// An API modify the behavior of the close requested event.
api: CloseRequestApi,
},
Destroyed,
Focused(bool),
#[non_exhaustive]
ScaleFactorChanged {
/// The new scale factor.
scale_factor: f64,
/// The window inner size.
new_inner_size: PhysicalSize<u32>,
},
DragDrop(DragDropEvent),
ThemeChanged(Theme),
}
`` |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Dec 3, 2024
Replies: 1 comment
-
you (currently) have to listen to the resized and/or moved events instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
crackleeeessyp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you (currently) have to listen to the resized and/or moved events instead.