All docs
Docs/ API Reference/ lsdtools.runtimeui reference
API Reference

lsdtools.runtimeui reference

Generated public SDK reference for lsdtools.runtimeui.

SDK distribution 1.0.0; API contract 1.0; generator 1.0.0.

Product source digest: 13800cef04184609594a0b15f310d52e8ece337faa4be2176039a5286946127b.

Generated from declared public exports and source syntax. Signatures and annotations are declaration spellings; decorators, factories and annotations are never executed. Class members below are declared members; base classes remain explicit. Source docstrings describe their owning implementation; they do not grant app permissions.

text
Runtime UI documents, native contexts, and the project UI editor, loaded on demand.

Importing this facade loads neither GTK nor a native library. Documents are data-only RML/RCSS
resource closures. The existing Timeline/tween service owns animation and runtime time.

lsdtools.runtimeui.BuildUI#

Kind: class. Source: services/runtimeui/src/lsd_runtimeui/steps.py:22.

Source docstring:

text
Build a contained UI resource bundle without native initialization or code execution.

Implementation alias: lsd_runtimeui.steps.BuildUI.

Declared bases: LoadStep.

lsdtools.runtimeui.BuildUI.output_ports#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/steps.py:24.

Python
output_ports = ['ui']

lsdtools.runtimeui.BuildUI.cache_pin#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/steps.py:25.

Python
cache_pin = 'lsd-runtimeui-document-v1'

lsdtools.runtimeui.BuildUI.document#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/steps.py:26.

Python
document = param(dict, default_factory=lambda: dict(EMPTY_DOCUMENT), required=True, label='UI document', validators=[_validate_document], description='RML, RCSS, fonts and images included with this project.')

lsdtools.runtimeui.BuildUI.run#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/steps.py:30.

Python
run(self)
Python
self: (unannotated)

lsdtools.runtimeui.DocumentBundle#

Kind: class. Source: services/runtimeui/src/lsd_runtimeui/document.py:243.

Source docstring:

text
One immutable, self-contained document and its explicit resource closure.

Implementation alias: lsd_runtimeui.document.DocumentBundle.

lsdtools.runtimeui.DocumentBundle.id#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:245.

Python
id: str

lsdtools.runtimeui.DocumentBundle.entry#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:246.

Python
entry: str

lsdtools.runtimeui.DocumentBundle.resources#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:247.

Python
resources: tuple[Resource, ...]

lsdtools.runtimeui.DocumentBundle.fonts#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:248.

Python
fonts: tuple[str, ...]
Python
fonts = ()

lsdtools.runtimeui.DocumentBundle.properties#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:249.

Python
properties: Mapping[str, Mapping]
Python
properties = field(default_factory=dict)

lsdtools.runtimeui.DocumentBundle.models#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:250.

Python
models: Mapping[str, Mapping]
Python
models = field(default_factory=dict)

lsdtools.runtimeui.DocumentBundle.event_bindings#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:251.

Python
event_bindings: tuple[Mapping, ...]
Python
event_bindings = ()

lsdtools.runtimeui.DocumentBundle.from_sources#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:327.

Python
from_sources(cls, source: str, *, id='ui', entry='main.rml', resources=None, fonts=(), properties=None, models=None, event_bindings=())
Python
cls: (unannotated)
entry: (unannotated)
event_bindings: (unannotated)
fonts: (unannotated)
id: (unannotated)
models: (unannotated)
properties: (unannotated)
resources: (unannotated)
source: str

lsdtools.runtimeui.DocumentBundle.source#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:335.

Python
source(self, path=None)
Python
path: (unannotated)
self: (unannotated)

lsdtools.runtimeui.DocumentBundle.resource_bytes#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:339.

Python
resource_bytes(self)
Python
self: (unannotated)

lsdtools.runtimeui.DocumentBundle.replace_source#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:342.

Python
replace_source(self, path, source)
Python
path: (unannotated)
self: (unannotated)
source: (unannotated)

lsdtools.runtimeui.DocumentBundle.with_resource#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:348.

Python
with_resource(self, path, data, *, font=False)
Python
data: (unannotated)
font: (unannotated)
path: (unannotated)
self: (unannotated)

Source docstring:

text
Include explicit asset bytes in a new generation, refusing accidental replacement.

lsdtools.runtimeui.DocumentBundle.without_resource#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:358.

Python
without_resource(self, path)
Python
path: (unannotated)
self: (unannotated)

Source docstring:

text
Remove an unreferenced asset; normal closure validation protects live references.

lsdtools.runtimeui.DocumentBundle.with_property#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:365.

Python
with_property(self, element, name, value)
Python
element: (unannotated)
name: (unannotated)
self: (unannotated)
value: (unannotated)

Source docstring:

text
Set a definite typed authored value above RCSS through a new document generation.

lsdtools.runtimeui.DocumentBundle.without_property#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:371.

Python
without_property(self, element, name)
Python
element: (unannotated)
name: (unannotated)
self: (unannotated)

Source docstring:

text
Release one authored override back to RCSS in a new document generation.

lsdtools.runtimeui.DocumentBundle.to_authoring_tables#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:381.

Python
to_authoring_tables(self)
Python
self: (unannotated)

lsdtools.runtimeui.DocumentBundle.to_dict#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:385.

Python
to_dict(self)
Python
self: (unannotated)

lsdtools.runtimeui.DocumentBundle.from_dict#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:395.

Python
from_dict(cls, value)
Python
cls: (unannotated)
value: (unannotated)

lsdtools.runtimeui.DocumentBundle.canonical_bytes#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:420.

Python
canonical_bytes(self)
Python
self: (unannotated)

lsdtools.runtimeui.DocumentBundle.digest#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:424.

Python
digest(self)
Python
self: (unannotated)

lsdtools.runtimeui.DocumentError#

Kind: class. Source: services/runtimeui/src/lsd_runtimeui/document.py:29.

Source docstring:

text
Invalid, incomplete, or unsupported runtime UI document data.

Implementation alias: lsd_runtimeui.document.DocumentError.

Declared bases: ValueError.

lsdtools.runtimeui.NativeDocument#

Kind: class. Source: services/runtimeui/src/lsd_runtimeui/native.py:175.

Python
NativeDocument(self, width: int=800, height: int=600, dpi: float=1.0, *, resources: Mapping[str, bytes] | None=None, fonts: Iterable[str]=(), models: Mapping[str, Mapping] | None=None, event_bindings: Iterable[Mapping]=(), renderer: int=0, library: NativeLibrary | None=None)

Implementation alias: lsd_runtimeui.native.NativeDocument.

lsdtools.runtimeui.NativeDocument.__init__#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:176.

Python
__init__(self, width: int=800, height: int=600, dpi: float=1.0, *, resources: Mapping[str, bytes] | None=None, fonts: Iterable[str]=(), models: Mapping[str, Mapping] | None=None, event_bindings: Iterable[Mapping]=(), renderer: int=0, library: NativeLibrary | None=None)
Python
dpi: float
event_bindings: Iterable[Mapping]
fonts: Iterable[str]
height: int
library: NativeLibrary | None
models: Mapping[str, Mapping] | None
renderer: int
resources: Mapping[str, bytes] | None
self: (unannotated)
width: int

lsdtools.runtimeui.NativeDocument.add_resource#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:218.

Python
add_resource(self, path: str, data: bytes)
Python
data: bytes
path: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.load#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:223.

Python
load(self, rml: str, source: str='main.rml')
Python
rml: str
self: (unannotated)
source: str

lsdtools.runtimeui.NativeDocument.update#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:226.

Python
update(self)
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.next_update_delay#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:229.

Python
next_update_delay(self) -> float
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.resize#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:234.

Python
resize(self, width: int, height: int, dpi: float=1.0)
Python
dpi: float
height: int
self: (unannotated)
width: int

lsdtools.runtimeui.NativeDocument.query#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:237.

Python
query(self, element_id: str) -> dict
Python
element_id: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.elements#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:240.

Python
elements(self) -> list[dict]
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.query_all#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/native.py:243.

Python
query_all = elements

lsdtools.runtimeui.NativeDocument.set_property#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:245.

Python
set_property(self, element_id: str, name: str, value: str)
Python
element_id: str
name: str
self: (unannotated)
value: str

lsdtools.runtimeui.NativeDocument.set_properties#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:248.

Python
set_properties(self, changes: Iterable[tuple[str, str, str]])
Python
changes: Iterable[tuple[str, str, str]]
self: (unannotated)

lsdtools.runtimeui.NativeDocument.set_text#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:255.

Python
set_text(self, element_id: str, text: str)
Python
element_id: str
self: (unannotated)
text: str

lsdtools.runtimeui.NativeDocument.set_model#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:258.

Python
set_model(self, name: str, mapping: Mapping)
Python
mapping: Mapping
name: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.patch_model#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/native.py:296.

Python
patch_model = set_model

lsdtools.runtimeui.NativeDocument.get_model#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:298.

Python
get_model(self, name: str) -> dict
Python
name: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.query_selector#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:301.

Python
query_selector(self, selector: str)
Python
selector: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.query_selector_all#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:304.

Python
query_selector_all(self, selector: str) -> list[dict]
Python
selector: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.hit_test#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:307.

Python
hit_test(self, x: float, y: float)
Python
self: (unannotated)
x: float
y: float

lsdtools.runtimeui.NativeDocument.set_attribute#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:310.

Python
set_attribute(self, identity: str, name: str, value: str)
Python
identity: str
name: str
self: (unannotated)
value: str

lsdtools.runtimeui.NativeDocument.remove_attribute#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:313.

Python
remove_attribute(self, identity: str, name: str)
Python
identity: str
name: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.set_class#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:316.

Python
set_class(self, identity: str, name: str, enabled: bool=True)
Python
enabled: bool
identity: str
name: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.set_pseudo_class#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:321.

Python
set_pseudo_class(self, identity: str, name: str, enabled: bool=True)
Python
enabled: bool
identity: str
name: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.append_rml#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:326.

Python
append_rml(self, identity: str, source: str)
Python
identity: str
self: (unannotated)
source: str

lsdtools.runtimeui.NativeDocument.set_inner_rml#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:329.

Python
set_inner_rml(self, identity: str, source: str)
Python
identity: str
self: (unannotated)
source: str

lsdtools.runtimeui.NativeDocument.remove_element#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:332.

Python
remove_element(self, identity: str)
Python
identity: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.bind_event#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:335.

Python
bind_event(self, model: str, callback: str)
Python
callback: str
model: str
self: (unannotated)

lsdtools.runtimeui.NativeDocument.input#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:338.

Python
input(self, kind: str, **values) -> bool
Python
kind: str
self: (unannotated)
values: (unannotated)

lsdtools.runtimeui.NativeDocument.input_state#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:363.

Python
input_state(self) -> dict
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.activate#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:366.

Python
activate(self, identity: str)
Python
identity: str
self: (unannotated)

Source docstring:

text
Activate an identified visible native control without pointer coordinates.

lsdtools.runtimeui.NativeDocument.drain_events#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:370.

Python
drain_events(self) -> list[dict]
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.poll_form_event#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:373.

Python
poll_form_event(self) -> dict | None
Python
self: (unannotated)

Source docstring:

text
Consume one bounded native submission; copy all borrowed values now.

lsdtools.runtimeui.NativeDocument.render_native#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:386.

Python
render_native(self)
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.close#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:389.

Python
close(self)
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.__enter__#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:395.

Python
__enter__(self)
Python
self: (unannotated)

lsdtools.runtimeui.NativeDocument.__exit__#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/native.py:399.

Python
__exit__(self, *exc)
Python
exc: (unannotated)
self: (unannotated)

lsdtools.runtimeui.NativeDocument.native_library#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/native.py:180.

Python
native_library: (unannotated)
Python
native_library = library or load_native()

lsdtools.runtimeui.NativeDocument.handle#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/native.py:182.

Python
handle: (unannotated)
Python
handle = 0

lsdtools.runtimeui.Resource#

Kind: class. Source: services/runtimeui/src/lsd_runtimeui/document.py:226.

Implementation alias: lsd_runtimeui.document.Resource.

lsdtools.runtimeui.Resource.path#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:227.

Python
path: str

lsdtools.runtimeui.Resource.data#

Kind: attribute. Source: services/runtimeui/src/lsd_runtimeui/document.py:228.

Python
data: bytes

lsdtools.runtimeui.Resource.digest#

Kind: method. Source: services/runtimeui/src/lsd_runtimeui/document.py:238.

Python
digest(self)
Python
self: (unannotated)

lsdtools.runtimeui.builtin_font_resources#

Kind: function. Source: sdk/src/lsdtools/runtimeui.py:12.

Python
builtin_font_resources() -> dict[str, bytes]

Source docstring:

text
Return authenticated LatoLatin Regular font/license bytes for an included UI resource bundle.

lsdtools.runtimeui.can_play_ui#

Kind: function. Source: sdk/src/lsdtools/runtimeui.py:24.

Python
can_play_ui(entity) -> bool
Python
entity: (unannotated)

Source docstring:

text
Whether an entity declares one UI output and a complete or genuinely empty scene.

lsdtools.runtimeui.create_runtime_ui_surface#

Kind: function. Source: sdk/src/lsdtools/runtimeui.py:52.

Python
create_runtime_ui_surface(surface, *, input_port=None)
Python
input_port: (unannotated)
surface: (unannotated)

Source docstring:

text
Compose the retained runtime overlay on an existing graphical surface and its clock.

The caller passes immutable UI component tables and borrowed published UI numeric state;
the adapter retains only copied property changes. Input authority stays in its existing
runtime channel or admitted human seat.

lsdtools.runtimeui.create_ui_editor#

Kind: function. Source: sdk/src/lsdtools/runtimeui.py:101.

Python
create_ui_editor(host, *, entity=None, view_id)
Python
entity: (unannotated)
host: (unannotated)
view_id: (unannotated)

Source docstring:

text
Compose an editor over attached Build UI steps and this host's admitted action port.

lsdtools.runtimeui.create_ui_player#

Kind: function. Source: sdk/src/lsdtools/runtimeui.py:34.

Python
create_ui_player(host, *, entity=None, view_id)
Python
entity: (unannotated)
host: (unannotated)
view_id: (unannotated)

Source docstring:

text
Present UI through the existing shared runtime viewport, input channel and Timeline clock.

The ordinary main-view binding delivers its entity after creation. A UI-only document has
zero objects, cameras and actors; this factory creates no spatial authoring or second player.
Its visible transport uses the existing entity-keyed runtime actions. The Timeline button
opens the ordinary Timeline editor on that same entity.

lsdtools.runtimeui.timeline_spec#

Kind: function. Source: sdk/src/lsdtools/runtimeui.py:18.

Python
timeline_spec()

Source docstring:

text
Return Runtime UI's exact property/state contribution for the existing Scene Timeline.
By LSD Team · Last updated Oct 16, 2026 Ask a question View as Markdown
Type to search every doc, guide, and tutorial.
↑↓ navigate↵ openesc close