pub struct ViewOrScrollTimeline { /* private fields */ }Expand description
Timeline instance
Implementations§
Source§impl ViewOrScrollTimeline
impl ViewOrScrollTimeline
Sourcepub fn builder(axis: ScrollOrientation) -> ViewOrScrollTimelineBuilder
pub fn builder(axis: ScrollOrientation) -> ViewOrScrollTimelineBuilder
Creates a builder for this type with the required parameters:
axis: Orientation of the scroll
Sourcepub fn source_node_id(&self) -> Option<&BackendNodeId>
pub fn source_node_id(&self) -> Option<&BackendNodeId>
Scroll container node
Sourcepub fn start_offset(&self) -> Option<f64>
pub fn start_offset(&self) -> Option<f64>
Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin.
Sourcepub fn end_offset(&self) -> Option<f64>
pub fn end_offset(&self) -> Option<f64>
Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin.
Sourcepub fn subject_node_id(&self) -> Option<&BackendNodeId>
pub fn subject_node_id(&self) -> Option<&BackendNodeId>
The element whose principal box’s visibility in the scrollport defined the progress of the timeline. Does not exist for animations with ScrollTimeline
Sourcepub fn axis(&self) -> &ScrollOrientation
pub fn axis(&self) -> &ScrollOrientation
Orientation of the scroll
Trait Implementations§
Source§impl Clone for ViewOrScrollTimeline
impl Clone for ViewOrScrollTimeline
Source§fn clone(&self) -> ViewOrScrollTimeline
fn clone(&self) -> ViewOrScrollTimeline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewOrScrollTimeline
impl Debug for ViewOrScrollTimeline
Source§impl Default for ViewOrScrollTimeline
impl Default for ViewOrScrollTimeline
Source§fn default() -> ViewOrScrollTimeline
fn default() -> ViewOrScrollTimeline
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewOrScrollTimeline
impl<'de> Deserialize<'de> for ViewOrScrollTimeline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ViewOrScrollTimeline
impl RefUnwindSafe for ViewOrScrollTimeline
impl Send for ViewOrScrollTimeline
impl Sync for ViewOrScrollTimeline
impl Unpin for ViewOrScrollTimeline
impl UnsafeUnpin for ViewOrScrollTimeline
impl UnwindSafe for ViewOrScrollTimeline
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