pub(crate) struct WebContentAnimator {
event_loop_waker: Box<dyn EventLoopWaker>,
timer_refresh_driver: Rc<TimerRefreshDriver>,
caret_visible: Cell<bool>,
timer_scheduled: Cell<bool>,
need_update: Arc<AtomicBool>,
}Expand description
A struct responsible for managing paint-side animations. Currently this only handles text caret blinking, but the idea is that in the future this would handle other types of paint-side animations as well.
Note: This does not control animations requiring layout (all CSS transitions and animations currently) nor animations due to touch events such as fling.
Fields§
§event_loop_waker: Box<dyn EventLoopWaker>§timer_refresh_driver: Rc<TimerRefreshDriver>§caret_visible: Cell<bool>§timer_scheduled: Cell<bool>§need_update: Arc<AtomicBool>Implementations§
Source§impl WebContentAnimator
impl WebContentAnimator
pub(crate) fn new( event_loop_waker: Box<dyn EventLoopWaker>, timer_refresh_driver: Rc<TimerRefreshDriver>, ) -> Self
pub(crate) fn schedule_timer_if_necessary(&self)
pub(crate) fn update( &self, webview_renderers: &FxHashMap<WebViewId, WebViewRenderer>, ) -> Option<Vec<PropertyValue<ColorF>>>
Auto Trait Implementations§
impl !Freeze for WebContentAnimator
impl !RefUnwindSafe for WebContentAnimator
impl !Send for WebContentAnimator
impl !Sync for WebContentAnimator
impl Unpin for WebContentAnimator
impl UnsafeUnpin for WebContentAnimator
impl !UnwindSafe for WebContentAnimator
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert