Trait usvg::NodeExt [−][src]
pub trait NodeExt { fn id(&self) -> Ref<str>; fn transform(&self) -> Transform; fn append_kind(&mut self, kind: NodeKind) -> Node; fn tree(&self) -> Tree; }
Additional Node
methods.
Required Methods
fn id(&self) -> Ref<str>
Returns node's ID.
If a current node doesn't support ID - an empty string will be returned.
fn transform(&self) -> Transform
Returns node's transform.
If a current node doesn't support transformation - a default transform will be returned.
fn append_kind(&mut self, kind: NodeKind) -> Node
Appends kind
as a node child.
Shorthand for Node::append(Node::new(Box::new(kind)))
.
fn tree(&self) -> Tree
Returns a node's tree.
Implementors
impl NodeExt for Node