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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".