pub struct ViewOrScrollTimeline {
pub sourceNodeId: Option<BackendNodeId>,
pub startOffset: Option<f64>,
pub endOffset: Option<f64>,
pub subjectNodeId: Option<BackendNodeId>,
pub axis: ScrollOrientation,
}Expand description
Timeline instance
Fields§
§sourceNodeId: Option<BackendNodeId>Scroll container node
startOffset: Option<f64>Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin.
endOffset: Option<f64>Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin.
subjectNodeId: 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
axis: ScrollOrientationOrientation 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 · 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