[][src]Struct webrender_api::ScrollFrameDisplayItem

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: Option<ExternalScrollId>,
    pub image_mask: Option<ImageMask>,
    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: LayoutRectparent_space_and_clip: SpaceAndClipInfoexternal_id: Option<ExternalScrollId>image_mask: Option<ImageMask>scroll_sensitivity: ScrollSensitivityexternal_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

impl Clone for ScrollFrameDisplayItem[src]

impl Copy for ScrollFrameDisplayItem[src]

impl Debug for ScrollFrameDisplayItem[src]

impl Default for ScrollFrameDisplayItem[src]

impl<'de> Deserialize<'de> for ScrollFrameDisplayItem[src]

impl PartialEq<ScrollFrameDisplayItem> for ScrollFrameDisplayItem[src]

impl Peek for ScrollFrameDisplayItem[src]

impl Poke for ScrollFrameDisplayItem[src]

impl Serialize for ScrollFrameDisplayItem[src]

impl StructuralPartialEq for ScrollFrameDisplayItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.