[librsvg: 14/48] Minimal docs for XmlState
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 14/48] Minimal docs for XmlState
- Date: Sat, 17 Nov 2018 10:21:12 +0000 (UTC)
commit 890b43c5001f4f4ccaa5c1566046c784cc353492
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Sep 7 07:27:44 2018 -0500
Minimal docs for XmlState
rsvg_internals/src/xml.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index 9dddce81..7576cee5 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -76,6 +76,9 @@ impl XmlState {
self.element_name_stack.clear();
}
+ /// Starts a node for an SVG element of type `name` and hooks it to the tree.
+ ///
+ /// `pbag` is the set of key/value pairs from the element's XML attributes.
pub fn standard_element_start(
&mut self,
handle: *const RsvgHandle,
@@ -114,6 +117,7 @@ impl XmlState {
new_node.set_overridden_properties();
}
+ /// Ends an SVG element for which we create a node.
pub fn standard_element_end(&mut self, handle: *const RsvgHandle, name: &str) {
if let Some(ref current_node) = self.current_node.clone() {
// The "svg" node is special; it parses its style attributes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]