pub struct Window;
Expand description
Provides function for window related functions
Implementations§
source§impl Window
impl Window
sourcepub fn on_resize<F, MSG>(cb: F) -> Cmd<MSG>
pub fn on_resize<F, MSG>(cb: F) -> Cmd<MSG>
Create a recurring Cmd which will be triggered everytime the window is resized
sourcepub fn on_mousemove<F, MSG>(cb: F) -> Cmd<MSG>
pub fn on_mousemove<F, MSG>(cb: F) -> Cmd<MSG>
sourcepub fn on_mouseup<F, MSG>(cb: F) -> Cmd<MSG>
pub fn on_mouseup<F, MSG>(cb: F) -> Cmd<MSG>
sourcepub fn on_mousedown<F, MSG>(cb: F) -> Cmd<MSG>
pub fn on_mousedown<F, MSG>(cb: F) -> Cmd<MSG>
sourcepub fn on_keydown<F, MSG>(cb: F) -> Cmd<MSG>
pub fn on_keydown<F, MSG>(cb: F) -> Cmd<MSG>
sourcepub fn scroll_to_top<MSG>(msg: MSG) -> Cmd<MSG>where
MSG: 'static,
pub fn scroll_to_top<MSG>(msg: MSG) -> Cmd<MSG>where
MSG: 'static,
scroll the window to the top of the document
sourcepub fn on_popstate<F, MSG>(cb: F) -> Cmd<MSG>where
F: FnMut(PopStateEvent) -> MSG + 'static,
MSG: 'static,
pub fn on_popstate<F, MSG>(cb: F) -> Cmd<MSG>where
F: FnMut(PopStateEvent) -> MSG + 'static,
MSG: 'static,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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