pub struct DisplayListScrollFrame {
pub parent_rect: LogicalRect,
pub content_rect: LogicalRect,
pub scroll_id: ExternalScrollId,
pub scroll_tag: ScrollTagId,
pub frame: DisplayListFrame,
}Fields§
§parent_rect: LogicalRectContaining rect of the parent node
content_rect: LogicalRectBounding rect of the (overflowing) content of the scroll frame
scroll_id: ExternalScrollIdThe scroll ID is the hash of the DOM node, so that scrolling positions can be tracked across multiple frames
scroll_tag: ScrollTagIdThe scroll tag is used for hit-testing
frame: DisplayListFrameContent + children of the scroll clip
Implementations§
Source§impl DisplayListScrollFrame
impl DisplayListScrollFrame
pub fn scale_for_dpi(&mut self, scale_factor: f32)
Trait Implementations§
Source§impl Clone for DisplayListScrollFrame
impl Clone for DisplayListScrollFrame
Source§fn clone(&self) -> DisplayListScrollFrame
fn clone(&self) -> DisplayListScrollFrame
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 DisplayListScrollFrame
impl Debug for DisplayListScrollFrame
Source§impl PartialEq for DisplayListScrollFrame
impl PartialEq for DisplayListScrollFrame
Source§impl PartialOrd for DisplayListScrollFrame
impl PartialOrd for DisplayListScrollFrame
impl StructuralPartialEq for DisplayListScrollFrame
Auto Trait Implementations§
impl Freeze for DisplayListScrollFrame
impl RefUnwindSafe for DisplayListScrollFrame
impl Send for DisplayListScrollFrame
impl Sync for DisplayListScrollFrame
impl Unpin for DisplayListScrollFrame
impl UnwindSafe for DisplayListScrollFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more