pub struct StandardImmediatePipeline;Expand description
The pipeline a window draws with unless another one is installed.
Draws every frame from scratch: the view tree is re-evaluated, laid out and painted, so what is on screen is always a function of current state.
Trait Implementations§
Source§impl FramePipeline for StandardImmediatePipeline
impl FramePipeline for StandardImmediatePipeline
Source§fn should_render(&mut self, is_dirty: bool, _metrics: &WindowMetrics) -> bool
fn should_render(&mut self, is_dirty: bool, _metrics: &WindowMetrics) -> bool
Whether the frame the application is about to draw should be drawn. Read more
Source§fn begin_frame(&mut self, window: &mut Window<'_>, cx: &mut App)
fn begin_frame(&mut self, window: &mut Window<'_>, cx: &mut App)
Opens the frame: samples the platform window, resets the scratch state
the frame rebuilds, and takes ownership of the invalidations this frame
owes.
Source§fn evaluate_roots(
&mut self,
window: &mut Window<'_>,
cx: &mut App,
) -> PreparedRoots
fn evaluate_roots( &mut self, window: &mut Window<'_>, cx: &mut App, ) -> PreparedRoots
Gathers the roots this frame will draw. Read more
Source§fn layout_roots(
&mut self,
window: &mut Window<'_>,
roots: &mut PreparedRoots,
cx: &mut App,
)
fn layout_roots( &mut self, window: &mut Window<'_>, roots: &mut PreparedRoots, cx: &mut App, )
Lays out and prepaints
roots, then hit tests the pointer against what
they registered. Read moreSource§fn paint_roots(
&mut self,
window: &mut Window<'_>,
roots: PreparedRoots,
cx: &mut App,
)
fn paint_roots( &mut self, window: &mut Window<'_>, roots: PreparedRoots, cx: &mut App, )
Paints
roots, in the order they stack.Source§fn draw_roots(&mut self, window: &mut Window<'_>, cx: &mut App)
fn draw_roots(&mut self, window: &mut Window<'_>, cx: &mut App)
Lays out and paints the window’s roots: the window’s own view tree, plus
a prompt, drag image or tooltip if the frame has one. Read more
Source§fn finish_frame(&mut self, window: &mut Window<'_>, cx: &mut App)
fn finish_frame(&mut self, window: &mut Window<'_>, cx: &mut App)
Closes the painted frame: records the views it touched and hands the
platform the input handler the frame asked for.
Source§fn complete_frame(
&mut self,
window: &mut Window<'_>,
cx: &mut App,
) -> Option<FocusId>
fn complete_frame( &mut self, window: &mut Window<'_>, cx: &mut App, ) -> Option<FocusId>
Retires the painted frame, swaps it in, and dispatches the focus changes
the swap produced. Read more
Auto Trait Implementations§
impl Freeze for StandardImmediatePipeline
impl RefUnwindSafe for StandardImmediatePipeline
impl Send for StandardImmediatePipeline
impl Sync for StandardImmediatePipeline
impl Unpin for StandardImmediatePipeline
impl UnsafeUnpin for StandardImmediatePipeline
impl UnwindSafe for StandardImmediatePipeline
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more