pub struct RepaintWindowRequest {
pub window_id: TeksiloWindowId,
}Expand description
A generic, thread-safe “please repaint this window now” request, posted as
an AppEvent::External payload from a background thread via
AppEventPoster::post_external.
A bare redraw request re-presents each node’s cached paint frame, so a
widget whose content changed off the UI thread — a terminal emulator’s
PTY-reader thread, a video decoder, a streaming data source — would not have
its paint() re-run. teksilo-app routes this request by marking the named
window’s tree paint-dirty (WidgetTree::mark_all_needs_paint_only)
before the redraw, so the changed widget repaints. It is the off-thread
analogue of ctx.request_frame() (which is UI-thread only).
Fields§
§window_id: TeksiloWindowIdThe window whose tree should be marked paint-dirty and redrawn.
Trait Implementations§
Source§impl Clone for RepaintWindowRequest
impl Clone for RepaintWindowRequest
Source§fn clone(&self) -> RepaintWindowRequest
fn clone(&self) -> RepaintWindowRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RepaintWindowRequest
Source§impl Debug for RepaintWindowRequest
impl Debug for RepaintWindowRequest
impl Eq for RepaintWindowRequest
Source§impl PartialEq for RepaintWindowRequest
impl PartialEq for RepaintWindowRequest
impl StructuralPartialEq for RepaintWindowRequest
Auto Trait Implementations§
impl Freeze for RepaintWindowRequest
impl RefUnwindSafe for RepaintWindowRequest
impl Send for RepaintWindowRequest
impl Sync for RepaintWindowRequest
impl Unpin for RepaintWindowRequest
impl UnsafeUnpin for RepaintWindowRequest
impl UnwindSafe for RepaintWindowRequest
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