#[repr(C)]pub struct ExternalScrollId(pub u64, pub PipelineId);
Expand description
An external identifier that uniquely identifies a scroll frame independent of its ClipId, which may change from frame to frame. This should be unique within a pipeline. WebRender makes no attempt to ensure uniqueness. The zero value is reserved for use by the root scroll node of every pipeline, which always has an external id.
When setting display lists with the preserve_frame_state
this id is used to preserve scroll
offsets between different sets of SpatialNodes which are ScrollFrames.
Tuple Fields§
§0: u64
§1: PipelineId
Implementations§
Source§impl ExternalScrollId
impl ExternalScrollId
pub fn pipeline_id(&self) -> PipelineId
pub fn is_root(&self) -> bool
Trait Implementations§
Source§impl Clone for ExternalScrollId
impl Clone for ExternalScrollId
Source§fn clone(&self) -> ExternalScrollId
fn clone(&self) -> ExternalScrollId
Returns a copy 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 ExternalScrollId
impl Debug for ExternalScrollId
Source§impl Default for ExternalScrollId
impl Default for ExternalScrollId
Source§fn default() -> ExternalScrollId
fn default() -> ExternalScrollId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalScrollId
impl<'de> Deserialize<'de> for ExternalScrollId
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
Source§impl Hash for ExternalScrollId
impl Hash for ExternalScrollId
Source§impl PartialEq for ExternalScrollId
impl PartialEq for ExternalScrollId
Source§impl Peek for ExternalScrollId
impl Peek for ExternalScrollId
Source§impl Poke for ExternalScrollId
impl Poke for ExternalScrollId
Source§impl Serialize for ExternalScrollId
impl Serialize for ExternalScrollId
impl Copy for ExternalScrollId
impl Eq for ExternalScrollId
impl StructuralPartialEq for ExternalScrollId
Auto Trait Implementations§
impl Freeze for ExternalScrollId
impl RefUnwindSafe for ExternalScrollId
impl Send for ExternalScrollId
impl Sync for ExternalScrollId
impl Unpin for ExternalScrollId
impl UnwindSafe for ExternalScrollId
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