pub enum Event {
MouseIn {
cursor: Cursor,
window: Window,
},
MouseOut {
cursor: Cursor,
window: Window,
},
LeftClick {
cursor: Cursor,
window: Window,
},
RightClick {
cursor: Cursor,
window: Window,
},
WindowResized {
window: Window,
new_size: (f64, f64),
},
WindowMoved {
window: Window,
new_positon: (f64, f64),
},
OsThemeChange {
new_theme: ThemeDefault,
},
RedrawRequest {
window: Window,
},
Focused {
window: Window,
},
CloseRequest,
Generic,
}Expand description
List of Events
Variants§
MouseIn
Mouse enters the window
MouseOut
Mouse leaves the window
LeftClick
Element clicked with left button
RightClick
Element clicked with right button
WindowResized
Window resized (action by user)
WindowMoved
Window moved (action by user)
OsThemeChange
User changed global theme
Fields
§
new_theme: ThemeDefaultThe new theme
RedrawRequest
Redraw frame
Focused
The user focused the window
CloseRequest
User wants to leave
Generic
Temporary argument to handle with the impossibility of implementation (todo)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more