pub struct Tree {Show 15 fields
pub parents: FxHashMap<NodeId, NodeId>,
pub children: FxHashMap<NodeId, Vec<NodeId>>,
pub heights: FxHashMap<NodeId, u16>,
pub elements: FxHashMap<NodeId, Rc<dyn ElementExt>>,
pub listeners: FxHashMap<EventName, Vec<NodeId>>,
pub layer_state: FxHashMap<NodeId, LayerState>,
pub accessibility_state: FxHashMap<NodeId, AccessibilityState>,
pub effect_state: FxHashMap<NodeId, EffectState>,
pub text_style_state: FxHashMap<NodeId, TextStyleState>,
pub layout: Torin<NodeId>,
pub layers: Layers,
pub text_cache: TextCache,
pub accessibility_groups: AccessibilityGroups,
pub accessibility_diff: AccessibilityDirtyNodes,
pub accessibility_generator: AccessibilityGenerator,
}Fields§
§parents: FxHashMap<NodeId, NodeId>§children: FxHashMap<NodeId, Vec<NodeId>>§heights: FxHashMap<NodeId, u16>§elements: FxHashMap<NodeId, Rc<dyn ElementExt>>§listeners: FxHashMap<EventName, Vec<NodeId>>§layer_state: FxHashMap<NodeId, LayerState>§accessibility_state: FxHashMap<NodeId, AccessibilityState>§effect_state: FxHashMap<NodeId, EffectState>§text_style_state: FxHashMap<NodeId, TextStyleState>§layout: Torin<NodeId>§layers: Layers§text_cache: TextCache§accessibility_groups: AccessibilityGroups§accessibility_diff: AccessibilityDirtyNodes§accessibility_generator: AccessibilityGeneratorImplementations§
Source§impl Tree
impl Tree
pub fn size(&self) -> usize
pub fn traverse_depth(&self, then: impl FnMut(NodeId))
pub fn traverse_depth_cancel(&self, then: impl FnMut(NodeId) -> bool)
pub fn apply_mutations(&mut self, mutations: Mutations) -> MutationsApplyResult
pub fn print_metrics(&self)
pub fn measure_layout( &mut self, size: Size2D, font_collection: &FontCollection, font_manager: &FontMgr, events_sender: &UnboundedSender<EventsChunk>, scale_factor: f64, fallback_fonts: &[Cow<'static, str>], )
pub fn print_ascii(&self, node_id: NodeId, prefix: String, last: bool)
pub fn verify_tree_integrity(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tree
impl !RefUnwindSafe for Tree
impl !Send for Tree
impl !Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more