RmlDocument
Summary
Represents the root RmlUi document window hosting a hierarchy of UI elements, styling rules, and layout contexts.
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread. See Threads.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophic failures as the engine is not designed for concurrent UI mutation.
Definition
Namespace: SDT4.Managed.UI.Rml
Assembly: SDT4.Managed.UI.dll
sealed class RmlDocument
Inheritance:
Object ➔ RmlElement ➔ RmlDocument
Implements:
IDisposable
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; Title |
String | Gets or sets the document's window title. |
public get; SourceUrl |
String | Gets the source asset path or URL from which this document was loaded. |
Methods
public Void ReloadRcss()
Summary: Forces a reload of the external and inline RCSS stylesheets associated with this document, reapplying styles across the DOM.
public Void Show()
Summary: Makes the document visible and enables rendering to the UI viewport canvas.
public Void Hide()
Summary: Hides the document from the UI viewport canvas, suspending its layout rendering.
public RmlElement CreateElement(String name)
Summary: Creates a new unparented (orphaned) element within the document context.
Remarks:
The created element has no parent upon construction and must be attached to the DOM hierarchy (e.g. via
Parameters:
name(String): The RML tag name for the new element (e.g."div" ,"span" ,"button" ).
Returns:
- RmlElement: The newly created orphaned RmlElement.
public Void PullToFront()
Summary: Moves this document to the top of the z-order stack within its UI context, displaying it in front of sibling documents.
public Void PushToBack()
Summary: Moves this document to the bottom of the z-order stack within its UI context, displaying it behind sibling documents.
public virtual String ToString()
Summary: Returns a formatted string representation of this document.
Returns:
- String: A string identifying the document and its active title or disposed state.