|
NovaSVG 0.11.5
An SVG library
|
#include <svg.h>


Public Member Functions | |
| text_node ()=default | |
| Constructs a null text nd. | |
| const std::string & | data () const |
| Returns the text content of the nd. | |
| void | set_data (const std::string &data) |
| Sets the text content of the nd. | |
| Public Member Functions inherited from nova::svg::node | |
| node ()=default | |
| Constructs a null nd. | |
| bool | is_text_node () const |
| Checks if the nd is a text nd. | |
| bool | is_element () const |
| Checks if the nd is an el nd. | |
| text_node | to_text_node () const |
| Converts the nd to a text_node. | |
| element | to_element () const |
| Converts the nd to an element. | |
| element | parent_element () const |
| Returns the parent el. | |
| bool | is_null () const |
| Checks if the nd is null. | |
| operator bool () const | |
| Checks if the nd is not null. | |
| bool | operator== (const node &nd) const |
| Checks if two nodes are equal. | |
| bool | operator!= (const node &nd) const |
| Checks if two nodes are not equal. | |
Friends | |
| class | node |
Additional Inherited Members | |
| Protected Member Functions inherited from nova::svg::node | |
| node (svg_node *nd) | |
| svg_node * | nd () const |
| Protected Attributes inherited from nova::svg::node | |
| svg_node * | m_node {nullptr} |
|
default |
Constructs a null text nd.
Referenced by set_data().
| const std::string & nova::svg::text_node::data | ( | ) | const |
Returns the text content of the nd.
Referenced by set_data().
| void nova::svg::text_node::set_data | ( | const std::string & | data | ) |
Sets the text content of the nd.
| data | The new text content to set. |
References data(), and text_node().