pub struct CombinedTreeNode;Expand description
A node of the combined tree.
Implementations§
Source§impl CombinedTreeNode
impl CombinedTreeNode
Sourcepub fn new_logical(
ferro_object: Ref<FerroObject>,
parent: Option<&Rc<TreeNode>>,
) -> Rc<TreeNode>
pub fn new_logical( ferro_object: Ref<FerroObject>, parent: Option<&Rc<TreeNode>>, ) -> Rc<TreeNode>
The node of an element of the logical tree: its children are the parts of its template, then its logical children; or the node of the top levels of a group.
Sourcepub fn create(control: impl Into<Nullable<FerroObject>>) -> Vec<Rc<TreeNode>>
pub fn create(control: impl Into<Nullable<FerroObject>>) -> Vec<Rc<TreeNode>>
The root node of the combined tree of control, or no node when it is not an object of
the framework.
Sourcepub fn is_logical_child(element: &Ref<StyledElement>) -> bool
pub fn is_logical_child(element: &Ref<StyledElement>) -> bool
Whether element is a node of the logical tree: it and each of its logical ancestors are
among the logical children of their logical parents, up to the root (an element without a
logical parent). The root of a template has the templated control as its logical parent but
is not among its children, and neither it nor the elements logically below it (the child of
a border of the template) are nodes of the logical tree.
Auto Trait Implementations§
impl Freeze for CombinedTreeNode
impl RefUnwindSafe for CombinedTreeNode
impl Send for CombinedTreeNode
impl Sync for CombinedTreeNode
impl Unpin for CombinedTreeNode
impl UnsafeUnpin for CombinedTreeNode
impl UnwindSafe for CombinedTreeNode
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more