struct ClipScrollState<'a> {
clip_scroll_nodes: &'a mut Vec<ClipScrollNode>,
compositor_info: CompositorDisplayListInfo,
stacking_context_offset: Vec<LayoutVector2D>,
}
Fields§
§clip_scroll_nodes: &'a mut Vec<ClipScrollNode>
§compositor_info: CompositorDisplayListInfo
§stacking_context_offset: Vec<LayoutVector2D>
Implementations§
source§impl<'a> ClipScrollState<'a>
impl<'a> ClipScrollState<'a>
fn new( clip_scroll_nodes: &'a mut Vec<ClipScrollNode>, compositor_info: CompositorDisplayListInfo, ) -> Self
fn webrender_clip_id_for_index(&mut self, index: usize) -> ClipChainId
fn webrender_spatial_id_for_index(&mut self, index: usize) -> SpatialId
fn add_clip_node_mapping(&mut self, index: usize, webrender_id: ClipChainId)
fn scroll_node_id_from_index(&self, index: usize) -> ScrollTreeNodeId
fn register_spatial_node( &mut self, index: usize, spatial_id: SpatialId, parent_index: Option<usize>, scroll_info: Option<ScrollableNodeInfo>, )
fn add_spatial_node_mapping_to_parent_index( &mut self, index: usize, parent_index: usize, )
pub fn define_clip_chain<I>( &self, builder: &mut DisplayListBuilder, parent: ClipChainId, clips: I, ) -> ClipChainId
fn stacking_context_offset(&self) -> LayoutVector2D
fn push_stacking_context_offset(&mut self, offset: LayoutVector2D)
fn pop_stacking_context_offset(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for ClipScrollState<'a>
impl<'a> RefUnwindSafe for ClipScrollState<'a>
impl<'a> Send for ClipScrollState<'a>
impl<'a> Sync for ClipScrollState<'a>
impl<'a> Unpin for ClipScrollState<'a>
impl<'a> !UnwindSafe for ClipScrollState<'a>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert