pub struct FlufflWindowPtr { /* private fields */ }Implementations§
Source§impl FlufflWindowPtr
impl FlufflWindowPtr
Sourcepub fn window(&self) -> Ref<'_, FlufflWindow>
pub fn window(&self) -> Ref<'_, FlufflWindow>
Borrow window
Sourcepub fn window_mut(&self) -> RefMut<'_, FlufflWindow>
pub fn window_mut(&self) -> RefMut<'_, FlufflWindow>
Borrow the window mutably
Sourcepub fn window_cb<F>(&self, callback: F)where
F: FnMut(&FlufflWindow),
pub fn window_cb<F>(&self, callback: F)where
F: FnMut(&FlufflWindow),
borrow the window through a callback
Sourcepub fn window_mut_cb<F>(&self, callback: F) -> boolwhere
F: FnMut(&mut FlufflWindow),
pub fn window_mut_cb<F>(&self, callback: F) -> boolwhere
F: FnMut(&mut FlufflWindow),
Attemps to borrow window mutably. If attempt is success then callback is executed ,and if not possible, it simply returns false
Trait Implementations§
Source§impl Clone for FlufflWindowPtr
impl Clone for FlufflWindowPtr
Source§fn clone(&self) -> FlufflWindowPtr
fn clone(&self) -> FlufflWindowPtr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlufflWindowPtr
impl !RefUnwindSafe for FlufflWindowPtr
impl !Send for FlufflWindowPtr
impl !Sync for FlufflWindowPtr
impl Unpin for FlufflWindowPtr
impl !UnwindSafe for FlufflWindowPtr
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