pub struct UpdateCtx<W>where
W: Widget,{ /* private fields */ }Implementations§
Source§impl<W> UpdateCtx<W>where
W: Widget,
impl<W> UpdateCtx<W>where
W: Widget,
pub fn widget_id(&self) -> WidgetId
pub fn instance_id(&self) -> InstanceId
pub fn post(&mut self, message: W::Message)
Sourcepub fn request_render(&mut self)
pub fn request_render(&mut self)
Marks the current frame dirty and wakes the host if this is the first pending redraw.
Repeated calls before the host consumes the pending frame are coalesced into one redraw.
Auto Trait Implementations§
impl<W> Freeze for UpdateCtx<W>
impl<W> !RefUnwindSafe for UpdateCtx<W>
impl<W> !Send for UpdateCtx<W>
impl<W> !Sync for UpdateCtx<W>
impl<W> Unpin for UpdateCtx<W>
impl<W> UnsafeUnpin for UpdateCtx<W>
impl<W> !UnwindSafe for UpdateCtx<W>
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