Server for creating and manipulating RmlUi documents.
Allows direct access for RmlUi document manipulation, including loading document files, creating elements, processing events and updating documents.
|
create_document_from_path(path: String) |
|
|
create_element(document: RID, tag_name: String) |
|
|
void |
document_draw(document: RID, canvas_item: RID) |
|
document_process_event(document: RID, event: InputEvent) |
|
|
void |
document_set_size(document: RID, size: Vector2i) |
|
void |
document_update(document: RID) |
|
void |
|
|
get_document_root(document: RID) |
|
|
load_font_face_from_buffer(buffer: PackedByteArray, family: String, fallback_face: bool, is_italic: bool) |
|
|
load_font_face_from_path(path: String, fallback_face: bool) |
RID create_document()
RID create_document_from_path(path: String)
path.
RID create_document_from_rml_string(rml: String)
string.
RMLElement create_element(document: RID, tag_name: String)
bool document_process_event(document: RID, event: InputEvent)
void document_set_size(document: RID, size: Vector2i)
void document_update(document: RID)
document's layout, called before document_draw
void free_rid(rid: RID)
RMLElement get_document_root(document: RID)
bool load_font_face_from_buffer(buffer: PackedByteArray, family: String, fallback_face: bool, is_italic: bool)
true to fallback_face to use this font face as fallback for unrecognized glyphs.true when loaded successfully.
bool load_font_face_from_path(path: String, fallback_face: bool)
true to fallback_face to use this font face as fallback for unrecognized glyphs.true when loaded successfully.