Skip to main content Module xml Copy item path Source svg ARenderer ArticleRenderer AsideRenderer BRenderer BlockquoteRenderer BodyRenderer Render for a body component BrRenderer Render for a br component ButtonRenderer CodeRenderer ComponentArguments A component can take various arguments (to pass down to its children), which are then
later compiled into Rust function arguments - for example CssMatcher DdRenderer DivRenderer Render for a div component DlRenderer DomXml Wrapper for the XML parser - necessary to easily create a Dom from
XML without putting an XML solver into azul-core. DtRenderer DuplicatedAttributeError DuplicatedNamespaceError DynamicXmlComponent Component that was created from a XML node (instead of being registered from Rust code).
Necessary to EmRenderer FilteredComponentArguments FooterRenderer FormRenderer H1Renderer H2Renderer H3Renderer H4Renderer H5Renderer H6Renderer HeadRenderer HeaderRenderer HrRenderer HtmlRenderer IRenderer IconRenderer Renderer for an icon component InvalidCharError InvalidCharMultipleError InvalidQuoteError InvalidSpaceError InvalidStringError LabelRenderer LiRenderer MainRenderer MalformedHierarchyError Error for mismatched open/close tags in XML hierarchy MarkRenderer NavRenderer NonXmlCharError OlRenderer PreRenderer SectionRenderer SmallRenderer SpanRenderer StrongRenderer SubRenderer SupRenderer TableRenderer TbodyRenderer TdRenderer TextRenderer Render for a p component TfootRenderer ThRenderer TheadRenderer TitleRenderer TrRenderer URenderer UlRenderer UnexpectedCloseTagError UnknownEntityReferenceError UnknownNamespaceError Xml XmlAttributeMap Attributes of an XML node, such as ["color" => "blue"] in <button color="blue" />. XmlComponent XmlComponentMap Holds all XML components - builtin components XmlNode Represents one XML node tag XmlNodeChildVec XmlNodeVec XmlQualifiedName XmlTagName Tag of an XML node, such as the “button” in <button>Hello</button>. XmlTextError XmlTextPos CompileError Error that can happen from the translation from XML code to Rust code -
stringified, since it is only used for printing and is not exposed in the public API ComponentError ComponentParseError DomXmlParseError DynamicItem Item of a split string - either a variable name or a string RenderDomError ResultXmlXmlError XmlError XmlNodeChild Represents a child of an XML node - either an element or text XmlNodeChildVecDestructor XmlNodeType XmlNodeVecDestructor XmlParseError XmlStreamError c_void DEFAULT_ARGS DomXmlExt Extension trait to add XML parsing capabilities to Dom XmlComponentTrait Specifies a component that reacts to a parsed XML node combine_and_replace_dynamic_items Combines the split string back into its original form while replacing the variables with their
values compile_body_node_to_rust_code compile_component compile_components compile_components_to_rust_code Takes all components and generates the source code function from them compile_node_to_rust_code_inner domxml_from_file Loads, parses and builds a DOM from an XML file domxml_from_str find_attribute find_node_by_type Searches in the the root_nodes for a node_type, convenience function in order to
for example find the first node in all these nodes. format_args_dynamic Given a string and a key => value mapping, replaces parts of the string with the value, i.e.: format_component_args get_body_node Find the one and only <body> node, return error if
there is no app node or there are multiple app nodes get_html_node Find the one and only <body> node, return error if
there is no app node or there are multiple app nodes get_item Given a root node, traverses along the hierarchy, and returns a
mutable reference to the last child node of the root node normalize_casing Normalizes input such as abcDef, AbcDef, abc-def to the normalized form of abc_def parse_bool Parses a string (“true” or “false”) parse_component_arguments Compiles a XML args="a: String, b: bool" into a ["a" => "String", "b" => "bool"] map parse_xml parse_xml_string Parses the XML string into an XML tree, returns
the root <app></app> node, with the children attached to it. prepare_string render_component_inner render_dom_from_body_node render_dom_from_body_node_inner Takes a single (expanded) app node and renders the DOM or returns an error set_attributes set_stringified_attributes split_dynamic_string Splits a string into formatting arguments str_to_dom Parses an XML string and returns a StyledDom with the components instantiated in the
<app></app> str_to_rust_code Parses an XML string and returns a String, which contains the Rust source code
(i.e. it compiles the XML to valid Rust) translate_roxmltree_error translate_roxmltree_expandedname validate_and_filter_component_args Filters the XML attributes of a component given XmlAttributeMap CompiledComponent ComponentArgumentName ComponentArgumentOrder ComponentArgumentType ComponentArgumentTypes ComponentName SyntaxError Error that can occur during XML parsing or hot-reload. XmlNodeChildVecDestructorType XmlNodeVecDestructorType XmlTextContent (Unparsed) text content of an XML node, such as the “Hello” in <button>Hello</button>.