pub struct PresentationTracker { /* private fields */ }Expand description
Compares successive frames from one session in viewport coordinates.
Implementations§
Source§impl PresentationTracker
impl PresentationTracker
Sourcepub fn invalidate(&mut self)
pub fn invalidate(&mut self)
Forces a full redraw and resets the cursor overlay after a surface reset.
Sourcepub fn set_cursor_blink_interval(
&mut self,
interval: Duration,
now: Instant,
) -> Option<CursorChange>
pub fn set_cursor_blink_interval( &mut self, interval: Duration, now: Instant, ) -> Option<CursorChange>
Sets the duration of each blink phase. Zero displays a steady cursor.
Sourcepub fn restart_cursor_blink(&mut self, now: Instant) -> Option<CursorChange>
pub fn restart_cursor_blink(&mut self, now: Instant) -> Option<CursorChange>
Restores the visible phase and restarts its timer after user activity.
pub fn cursor_deadline(&self) -> Option<Instant>
pub fn displayed_cursor(&self) -> Option<PresentedCursor>
Sourcepub fn tick_cursor(&mut self, now: Instant) -> Option<CursorChange>
pub fn tick_cursor(&mut self, now: Instant) -> Option<CursorChange>
Advances the last presented cursor independently of terminal output.
Sourcepub fn prepare(
&mut self,
frame: &PresentationFrame<'_>,
now: Instant,
) -> Result<PreparedPresentation<'_>, TryReserveError>
pub fn prepare( &mut self, frame: &PresentationFrame<'_>, now: Instant, ) -> Result<PreparedPresentation<'_>, TryReserveError>
Stages damage and cursor state until the renderer confirms submission.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PresentationTracker
impl Freeze for PresentationTrackerwhere
NonZero<u32>: Freeze,
*const u8 is !null: Freeze,
PhantomData<RowRevision>: Freeze,
PhantomData<Option<RowRevision>>: Freeze,
PhantomData<usize>: Freeze,
impl Move for PresentationTracker
impl RefUnwindSafe for PresentationTracker
impl Send for PresentationTracker
impl Sync for PresentationTracker
impl Unpin for PresentationTracker
impl UnsafeUnpin for PresentationTrackerwhere
NonZeroU32Inner: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<RowRevision>: UnsafeUnpin,
PhantomData<Option<RowRevision>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for PresentationTracker
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.