RmlElement

class RmlElement

Bases: ReferenceCount

Thin Python-accessible wrapper around Rml::Element.

Obtained via RmlDocument::get_element_by_id().

Inheritance diagram

digraph inheritancea328d179d5 { 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=""]; "RmlElement" [URL="acron.rmlui.RmlElement.html#acron.rmlui.RmlElement",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ReferenceCount" -> "RmlElement" [arrowsize=0.75,style=""]; }
RmlElement.__init__()
RmlElement.add_event_listener()

The listener is owned by the underlying RmlUi element and survives for as long as the element exists, independent of this wrapper’s lifetime. Multiple listeners may be attached by calling this method repeatedly.

RmlElement.append_child()

Programmatic DOM manipulation.

RmlElement.click()
RmlElement.focus()
RmlElement.get_absolute_offset()
RmlElement.get_attribute()
RmlElement.get_child()
RmlElement.get_id()
RmlElement.get_inner_rml()
RmlElement.get_num_children()
RmlElement.get_offset_height()
RmlElement.get_offset_width()
RmlElement.get_parent_node()

DOM tree traversal.

RmlElement.get_property()

The resolved value of a style property (inline, stylesheet or default) as its RCSS string, or default_value if the element has no such property.

RmlElement.get_relative_offset()

Geometry queries.

RmlElement.get_scroll_height()
RmlElement.get_scroll_left()
RmlElement.get_scroll_top()
RmlElement.get_scroll_width()
RmlElement.get_value()

value property for form controls (<input>, <select>, <textarea>). Returns an empty string if the element is not a form control.

value property for form controls (<input>, <select>, <textarea>). Returns an empty string if the element is not a form control.

RmlElement.has_attribute()

Attribute management.

RmlElement.is_class_set()
RmlElement.is_pseudo_class_set()

Pseudo-class query.

RmlElement.is_visible()

Whether the element is displayed (display != none and visibility == visible); with include_ancestors, whether all its ancestors are too.

RmlElement.query_selector()

CSS selector query.

RmlElement.remove_attribute()
RmlElement.remove_child()
RmlElement.remove_property()
RmlElement.scroll_into_view()

Scroll control.

RmlElement.set_attribute()
RmlElement.set_class()
RmlElement.set_inner_rml()
RmlElement.set_property()

Inline style by property name.

RmlElement.set_scroll_left()
RmlElement.set_scroll_top()
RmlElement.set_value()