RmlElement

from acron.rmlui import RmlElement
class RmlElement

Bases:

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=""]; }
__init__()
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.

append_child()

Programmatic DOM manipulation.

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

DOM tree traversal.

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.

get_relative_offset()

Geometry queries.

get_scroll_height()
get_scroll_left()
get_scroll_top()
get_scroll_width()
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.

has_attribute()

Attribute management.

property id → string
property inner_rml → string
is_class_set()
is_pseudo_class_set()

Pseudo-class query.

is_visible()

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

property num_children → int
property offset_height → float
property offset_width → float
query_selector()

CSS selector query.

remove_attribute()
remove_child()
remove_property()
property scroll_height → float
scroll_into_view()

Scroll control.

property scroll_left → float
property scroll_top → float
property scroll_width → float
set_attribute()
set_class()
set_inner_rml()
set_property()

Inline style by property name.

set_scroll_left()
set_scroll_top()
set_value()
property value → string

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.

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