Skip to main content

SceneStackingStyleSource

Struct SceneStackingStyleSource 

Source
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>

Source

pub fn new(cascade: StyleCascade<'a, R>, overrides: F) -> Self

Trait Implementations§

Source§

impl<F: StackingOverrides, R: ResponsivePatches + ?Sized> StackingStyleSource for SceneStackingStyleSource<'_, F, R>

Source§

fn is_display_none(&self, store: &NodeStore, id: NodeId) -> bool

Source§

fn is_display_contents(&self, store: &NodeStore, id: NodeId) -> bool

Source§

fn display_of(&self, store: &NodeStore, id: NodeId) -> Display

Source§

fn position_of(&self, store: &NodeStore, id: NodeId) -> Position

Source§

fn z_index_of(&self, store: &NodeStore, id: NodeId) -> Option<i32>

Source§

fn opacity_of(&self, store: &NodeStore, id: NodeId) -> f32

Source§

fn isolation_of(&self, store: &NodeStore, id: NodeId) -> Isolation

Source§

fn has_transform(&self, store: &NodeStore, id: NodeId) -> bool

Source§

fn visibility_hidden( &self, store: &NodeStore, id: NodeId, inherited_hidden: bool, ) -> bool

Source§

fn clips_overflow(&self, store: &NodeStore, id: NodeId) -> bool

Source§

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>
where F: Send, &'a R: Send, &'a InteractionTracker: Send, &'a OverlayState: Send, Cell<Option<(NodeId, StackingStyle)>>: Send, R: ?Sized,

§

impl<'a, F, R> Unpin for SceneStackingStyleSource<'a, F, R>

§

impl<'a, F, R> UnsafeUnpin for SceneStackingStyleSource<'a, F, R>

§

impl<'a, F, R> UnwindSafe for SceneStackingStyleSource<'a, F, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.