pub struct ScrollFrameDisplayItem {
pub clip_id: ClipId,
pub scroll_frame_id: SpatialId,
pub content_rect: LayoutRect,
pub clip_rect: LayoutRect,
pub parent_space_and_clip: SpaceAndClipInfo,
pub external_id: ExternalScrollId,
pub scroll_sensitivity: ScrollSensitivity,
pub external_scroll_offset: LayoutVector2D,
}
Fields§
§clip_id: ClipId
The id of the clip this scroll frame creates
scroll_frame_id: SpatialId
The id of the space this scroll frame creates
content_rect: LayoutRect
The size of the contents this contains (so the backend knows how far it can scroll).
clip_rect: LayoutRect
§parent_space_and_clip: SpaceAndClipInfo
§external_id: ExternalScrollId
§scroll_sensitivity: ScrollSensitivity
§external_scroll_offset: LayoutVector2D
The amount this scrollframe has already been scrolled by, in the caller. This means that all the display items that are inside the scrollframe will have their coordinates shifted by this amount, and this offset should be added to those display item coordinates in order to get a normalized value that is consistent across display lists.
Trait Implementations§
Source§impl Clone for ScrollFrameDisplayItem
impl Clone for ScrollFrameDisplayItem
Source§fn clone(&self) -> ScrollFrameDisplayItem
fn clone(&self) -> ScrollFrameDisplayItem
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 ScrollFrameDisplayItem
impl Debug for ScrollFrameDisplayItem
Source§impl Default for ScrollFrameDisplayItem
impl Default for ScrollFrameDisplayItem
Source§fn default() -> ScrollFrameDisplayItem
fn default() -> ScrollFrameDisplayItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScrollFrameDisplayItem
impl<'de> Deserialize<'de> for ScrollFrameDisplayItem
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 PartialEq for ScrollFrameDisplayItem
impl PartialEq for ScrollFrameDisplayItem
Source§impl Peek for ScrollFrameDisplayItem
impl Peek for ScrollFrameDisplayItem
Source§impl Poke for ScrollFrameDisplayItem
impl Poke for ScrollFrameDisplayItem
Source§impl Serialize for ScrollFrameDisplayItem
impl Serialize for ScrollFrameDisplayItem
impl Copy for ScrollFrameDisplayItem
impl StructuralPartialEq for ScrollFrameDisplayItem
Auto Trait Implementations§
impl Freeze for ScrollFrameDisplayItem
impl RefUnwindSafe for ScrollFrameDisplayItem
impl Send for ScrollFrameDisplayItem
impl Sync for ScrollFrameDisplayItem
impl Unpin for ScrollFrameDisplayItem
impl UnwindSafe for ScrollFrameDisplayItem
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