RmlContext

from acron.rmlui import RmlContext
class RmlContext

Bases:

Bases: ReferenceCount

Thin Python-accessible wrapper around Rml::Context.

Obtained via RmlRegion.get_context(). The context is owned by RmlUi; this object holds a non-owning pointer. Do not use after the owning RmlRegion has been destroyed.

Inheritance diagram

digraph inheritancebc38b0906e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "RmlContext" [URL="acron.rmlui.RmlContext.html#acron.rmlui.RmlContext",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ReferenceCount" -> "RmlContext" [arrowsize=0.75,style=""]; }
__init__()
create_data_model()
enable_mouse_cursor()
property focus_element → PointerTo_RmlElement
get_data_model()
get_element_at_point()

Hit-test and hover/focus.

get_focus_element()
get_height()
get_hover_element()
get_name()
get_num_documents()
get_width()
property height → int
property hover_element → PointerTo_RmlElement
is_mouse_interacting()

Mouse interaction query.

load_document()
load_document_from_memory()

Document lifecycle.

load_font_face()
property name → string
property num_documents → int
remove_data_model()
set_density_independent_pixel_ratio()

HiDPI and cursor.

unload_all_documents()
unload_document()
update()
property width → int