pub struct HookOps<S: Spec> { /* private fields */ }Expand description
The sink a hook writes its declared effects into.
Implementations§
Source§impl<S: Spec> HookOps<S>
impl<S: Spec> HookOps<S>
Sourcepub fn request_frame(&mut self)
pub fn request_frame(&mut self)
Repaint this window next frame.
Sourcepub fn ime_area(&mut self, rect: Rect)
pub fn ime_area(&mut self, rect: Rect)
Report the text caret rect (window-local logical pixels) to the OS.
Sourcepub fn command(&mut self, cmd: AppCommand<S>)
pub fn command(&mut self, cmd: AppCommand<S>)
Enqueue a visual command for the next settle pass.
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for HookOps<S>
impl<S> !UnwindSafe for HookOps<S>
impl<S> Forget for HookOps<S>
impl<S> Freeze for HookOps<S>
impl<S> Send for HookOps<S>
impl<S> Sync for HookOps<S>
impl<S> Unpin for HookOps<S>
impl<S> UnsafeUnpin for HookOps<S>
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