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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<P> FramePipelineExt for Pwhere
P: FramePipeline,
impl<P> FramePipelineExt for Pwhere
P: FramePipeline,
Source§fn max_fps(self, max_fps: u32) -> ThrottledPipeline<Self>
fn max_fps(self, max_fps: u32) -> ThrottledPipeline<Self>
Caps this pipeline at
max_fps frames a second. Read moreSource§fn instrumented(
self,
metrics: Rc<RefCell<PhaseMetrics>>,
) -> InstrumentedPipeline<Self>
fn instrumented( self, metrics: Rc<RefCell<PhaseMetrics>>, ) -> InstrumentedPipeline<Self>
Times this pipeline’s root passes, recording into
metrics. Read moreSource§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