pub struct SceneStackingStyleSource<'a, F, R: ResponsivePatches + ?Sized = dyn ResponsivePatches> { /* private fields */ }Expand description
The scene’s StyleCascade (base -> @media -> @container -> state rules) + optional
animated transform/opacity overrides. Every accessor reads one [StackingStyle] per node: the
builder asks a node for ~10 properties in a row, so the last node’s style is kept.
Implementations§
Source§impl<'a, F, R: ResponsivePatches + ?Sized> SceneStackingStyleSource<'a, F, R>
impl<'a, F, R: ResponsivePatches + ?Sized> SceneStackingStyleSource<'a, F, R>
pub fn new(cascade: StyleCascade<'a, R>, overrides: F) -> Self
Trait Implementations§
Source§impl<F: StackingOverrides, R: ResponsivePatches + ?Sized> StackingStyleSource for SceneStackingStyleSource<'_, F, R>
impl<F: StackingOverrides, R: ResponsivePatches + ?Sized> StackingStyleSource for SceneStackingStyleSource<'_, F, R>
fn is_display_none(&self, store: &NodeStore, id: NodeId) -> bool
fn is_display_contents(&self, store: &NodeStore, id: NodeId) -> bool
fn display_of(&self, store: &NodeStore, id: NodeId) -> Display
fn position_of(&self, store: &NodeStore, id: NodeId) -> Position
fn z_index_of(&self, store: &NodeStore, id: NodeId) -> Option<i32>
fn opacity_of(&self, store: &NodeStore, id: NodeId) -> f32
fn isolation_of(&self, store: &NodeStore, id: NodeId) -> Isolation
fn has_transform(&self, store: &NodeStore, id: NodeId) -> bool
fn clips_overflow(&self, store: &NodeStore, id: NodeId) -> bool
fn is_scrollable(&self, store: &NodeStore, id: NodeId) -> bool
Auto Trait Implementations§
impl<'a, F, R = dyn ResponsivePatches> !Freeze for SceneStackingStyleSource<'a, F, R>
impl<'a, F, R = dyn ResponsivePatches> !RefUnwindSafe for SceneStackingStyleSource<'a, F, R>
impl<'a, F, R = dyn ResponsivePatches> !Sync for SceneStackingStyleSource<'a, F, R>
impl<'a, F, R> Forget for SceneStackingStyleSource<'a, F, R>where
R: ?Sized,
impl<'a, F, R> Move for SceneStackingStyleSource<'a, F, R>where
R: ?Sized,
impl<'a, F, R> Send for SceneStackingStyleSource<'a, F, R>
impl<'a, F, R> Unpin for SceneStackingStyleSource<'a, F, R>
impl<'a, F, R> UnsafeUnpin for SceneStackingStyleSource<'a, F, R>where
&'a R: UnsafeUnpin,
&'a InteractionTracker: UnsafeUnpin,
&'a OverlayState: UnsafeUnpin,
F: UnsafeUnpin,
R: ?Sized,
impl<'a, F, R> UnwindSafe for SceneStackingStyleSource<'a, F, R>where
&'a R: UnwindSafe,
&'a InteractionTracker: UnwindSafe,
&'a OverlayState: UnwindSafe,
F: UnwindSafe,
R: ?Sized,
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