#include <svg.h>
|
| | node (svg_node *nd) |
| svg_node * | nd () const |
Definition at line 95 of file svg.h.
◆ node() [1/2]
| nova::svg::node::node |
( |
| ) |
|
|
default |
◆ node() [2/2]
| nova::svg::node::node |
( |
svg_node * | nd | ) |
|
|
protected |
◆ is_element()
| bool nova::svg::node::is_element |
( |
| ) |
const |
Checks if the nd is an el nd.
- Returns
- True if the nd is an el nd, false otherwise.
◆ is_null()
| bool nova::svg::node::is_null |
( |
| ) |
const |
|
inline |
Checks if the nd is null.
- Returns
- True if the nd is null, false otherwise.
Definition at line 136 of file svg.h.
References m_node.
Referenced by operator bool().
◆ is_text_node()
| bool nova::svg::node::is_text_node |
( |
| ) |
const |
Checks if the nd is a text nd.
- Returns
- True if the nd is a text nd, false otherwise.
◆ nd()
| svg_node * nova::svg::node::nd |
( |
| ) |
const |
|
inlineprotected |
◆ operator bool()
| nova::svg::node::operator bool |
( |
| ) |
const |
|
inline |
Checks if the nd is not null.
- Returns
- True if the nd is not null, false otherwise.
Definition at line 142 of file svg.h.
References is_null().
◆ operator!=()
| bool nova::svg::node::operator!= |
( |
const node & | nd | ) |
const |
|
inline |
Checks if two nodes are not equal.
- Parameters
-
- Returns
- True if not equal, otherwise false.
Definition at line 156 of file svg.h.
References m_node, nd(), and node().
◆ operator==()
| bool nova::svg::node::operator== |
( |
const node & | nd | ) |
const |
|
inline |
Checks if two nodes are equal.
- Parameters
-
- Returns
- True if equal, otherwise false.
Definition at line 149 of file svg.h.
References m_node, nd(), and node().
◆ parent_element()
| element nova::svg::node::parent_element |
( |
| ) |
const |
Returns the parent el.
- Returns
- The parent el of this nd. If this nd has no parent, a null element is returned.
References element.
◆ to_element()
| element nova::svg::node::to_element |
( |
| ) |
const |
Converts the nd to an element.
- Returns
- An element or a null nd if conversion is not possible.
References element.
◆ to_text_node()
| text_node nova::svg::node::to_text_node |
( |
| ) |
const |
Converts the nd to a text_node.
- Returns
- A text_node or a null nd if conversion is not possible.
◆ element
◆ m_node
| svg_node* nova::svg::node::m_node {nullptr} |
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/novasvg/novasvg/include/nova/svg/svg.h