pub struct FerroNativeRenderTimer { /* private fields */ }Expand description
A render timer that ticks with the display refresh.
Implementations§
Source§impl FerroNativeRenderTimer
impl FerroNativeRenderTimer
pub fn new(platform_render_timer: ComPtr<IFrnPlatformRenderTimer>) -> Self
Trait Implementations§
Source§impl IRenderTimer for FerroNativeRenderTimer
impl IRenderTimer for FerroNativeRenderTimer
Source§fn tick(&self) -> Option<RenderTimerTick>
fn tick(&self) -> Option<RenderTimerTick>
Gets the callback to be invoked when the timer ticks.
Source§fn set_tick(&self, value: Option<RenderTimerTick>)
fn set_tick(&self, value: Option<RenderTimerTick>)
Sets the callback to be invoked when the timer ticks. Read more
Source§fn runs_in_background(&self) -> bool
fn runs_in_background(&self) -> bool
Indicates if the timer ticks on a non-UI thread.
Source§fn request_tick_out_of_turn(&self)
fn request_tick_out_of_turn(&self)
Asks for a tick out of turn: as soon as the thread that ticks can
produce one, without waiting for the next period of the timer (the
next frame of a display). Not from upstream. Read more
impl Send for FerroNativeRenderTimer
impl Sync for FerroNativeRenderTimer
Auto Trait Implementations§
impl !Freeze for FerroNativeRenderTimer
impl RefUnwindSafe for FerroNativeRenderTimer
impl Unpin for FerroNativeRenderTimer
impl UnsafeUnpin for FerroNativeRenderTimer
impl UnwindSafe for FerroNativeRenderTimer
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more