RMLDocument

Node for loading and manipulating RmlUi documents.

Description

RMLDocument is the main node for loading and manipulating RmlUi documents.

Methods

RMLElement

as_element() const

RMLElement

create_element(tag_name: Stringconst

void

load_from_path(path: String

void

load_from_rml_string(rml_string: String

void

new_document() 

void

update() 

Method Descriptions

RMLElement as_element() const

Returns an RMLElement element reference to the root element of this document.

RMLElement create_element(tag_name: String) const

Creates a new element and returns an RMLElement reference to it.

void load_from_path(path: String)

Creates a new document and load the source from path.

void load_from_rml_string(rml_string: String)

Creates a new document and load the source from rml_string which must be a valid RML document.

void new_document()

Creates a new empty document.

void update()

Updates the layout of the document, use this to immediately retrieve layout info after updating elements.