Skip to main content

CombinedTreeNode

Struct CombinedTreeNode 

Source
pub struct CombinedTreeNode;
Expand description

A node of the combined tree.

Implementations§

Source§

impl CombinedTreeNode

Source

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.

Source

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.

Source

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§

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> ClassDefaults for T
where T: ?Sized,

Source§

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