Type Alias usvg_tree::Node

source ·
pub type Node = Node<NodeKind>;
Expand description

Alias for rctree::Node<NodeKind>.

Aliased Type§

struct Node(/* private fields */);

Trait Implementations§

source§

impl NodeExt for Node

source§

fn id(&self) -> Ref<'_, str>

Returns node’s ID. Read more
source§

fn abs_transform(&self) -> Transform

Returns node’s absolute transform. Read more
source§

fn append_kind(&self, kind: NodeKind) -> Node

Appends kind as a node child.
source§

fn calculate_bbox(&self) -> Option<Rect>

Calculates node’s absolute bounding box. Read more
source§

fn subroots<F: FnMut(Node)>(&self, f: F)

Calls a closure for each subroot this Node has. Read more