Skip to main content

StackingStyleSource

Trait StackingStyleSource 

Source
pub trait StackingStyleSource {
    // Required methods
    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 visibility_hidden(
        &self,
        store: &NodeStore,
        id: NodeId,
        inherited_hidden: bool,
    ) -> bool;
    fn clips_overflow(&self, store: &NodeStore, id: NodeId) -> bool;
    fn is_scrollable(&self, store: &NodeStore, id: NodeId) -> bool;
}
Expand description

Effective style inputs consulted by super::StackingPlan::build (allowing backends to layer StateRules and live animation overrides such as MotionDriver opacity/transform).

Required Methods§

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§