RmlContext

class RmlContext

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=""]; }
RmlContext.__init__()
RmlContext.create_data_model()
RmlContext.enable_mouse_cursor()
RmlContext.get_data_model()
RmlContext.get_element_at_point()

Hit-test and hover/focus.

RmlContext.get_focus_element()
RmlContext.get_height()
RmlContext.get_hover_element()
RmlContext.get_name()
RmlContext.get_num_documents()
RmlContext.get_width()
RmlContext.is_mouse_interacting()

Mouse interaction query.

RmlContext.load_document()
RmlContext.load_document_from_memory()

Document lifecycle.

RmlContext.load_font_face()
RmlContext.remove_data_model()
RmlContext.set_density_independent_pixel_ratio()

HiDPI and cursor.

RmlContext.unload_all_documents()
RmlContext.unload_document()
RmlContext.update()