Trait gxi::Node[][src]

pub trait Node {
    fn new(parent: WeakNodeType) -> StrongNodeType
    where
        Self: Sized
;
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn get_parent(&self) -> &WeakNodeType;
fn get_sibling(&self) -> &Option<StrongNodeType>;
fn get_sibling_mut(&mut self) -> &mut Option<StrongNodeType>;
fn as_node(&self) -> &dyn Node;
fn as_node_mut(&mut self) -> &mut dyn Node; fn render(_this: StrongNodeType)
    where
        Self: Sized
, { ... } }
Expand description

Struct should also implement Drop to remove node widget from the tree

Required methods

@parent: Weak reference to parent, which allows GxiNode to add widget to parent further down the tree nodes can also have a new associated function with multiple params

type conversion

Provided methods

this: can’t move &self to update closure therefore take a GxiNodeRc of Self

Implementors