The OpenD Programming Language

cef_domnode_t

Structure used to represent a DOM node. The functions of this structure should only be called on the render process main thread.

version(cef && embedded_cef_bindings)
extern (C)
struct cef_domnode_t {}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_as_markup
cef_string_userfree_t function(cef_domnode_t* self) nothrow get_as_markup;

Returns the contents of this node as markup.

get_document
cef_domdocument_t* function(cef_domnode_t* self) nothrow get_document;

Returns the document associated with this node.

get_element_attribute
cef_string_userfree_t function(cef_domnode_t* self, const(cef_string_t)* attrName) nothrow get_element_attribute;

Returns the element attribute named |attrName|.

get_element_attributes
void function(cef_domnode_t* self, cef_string_map_t attrMap) nothrow get_element_attributes;

Returns a map of all element attributes.

get_element_bounds
cef_rect_t function(cef_domnode_t* self) nothrow get_element_bounds;

Returns the bounds of the element in device pixels. Use "window.devicePixelRatio" to convert to/from CSS pixels.

get_element_inner_text
cef_string_userfree_t function(cef_domnode_t* self) nothrow get_element_inner_text;

Returns the inner text of the element.

get_element_tag_name
cef_string_userfree_t function(cef_domnode_t* self) nothrow get_element_tag_name;

Returns the tag name of this element.

get_first_child
cef_domnode_t* function(cef_domnode_t* self) nothrow get_first_child;

Return the first child node.

get_form_control_element_type
cef_dom_form_control_type_t function(cef_domnode_t* self) nothrow get_form_control_element_type;

Returns the type of this form control element node.

get_last_child
cef_domnode_t* function(cef_domnode_t* self) nothrow get_last_child;

Returns the last child node.

get_name
cef_string_userfree_t function(cef_domnode_t* self) nothrow get_name;

Returns the name of this node.

get_next_sibling
cef_domnode_t* function(cef_domnode_t* self) nothrow get_next_sibling;

Returns the next sibling node.

get_parent
cef_domnode_t* function(cef_domnode_t* self) nothrow get_parent;

Returns the parent node.

get_previous_sibling
cef_domnode_t* function(cef_domnode_t* self) nothrow get_previous_sibling;

Returns the previous sibling node.

get_type
cef_dom_node_type_t function(cef_domnode_t* self) nothrow get_type;

Returns the type for this node.

get_value
cef_string_userfree_t function(cef_domnode_t* self) nothrow get_value;

Returns the value of this node.

has_children
int function(cef_domnode_t* self) nothrow has_children;

Returns true (1) if this node has child nodes.

has_element_attribute
int function(cef_domnode_t* self, const(cef_string_t)* attrName) nothrow has_element_attribute;

Returns true (1) if this element has an attribute named |attrName|.

has_element_attributes
int function(cef_domnode_t* self) nothrow has_element_attributes;

Returns true (1) if this element has attributes.

is_editable
int function(cef_domnode_t* self) nothrow is_editable;

Returns true (1) if this is an editable node.

is_element
int function(cef_domnode_t* self) nothrow is_element;

Returns true (1) if this is an element node.

is_form_control_element
int function(cef_domnode_t* self) nothrow is_form_control_element;

Returns true (1) if this is a form control element node.

is_same
int function(cef_domnode_t* self, cef_domnode_t* that) nothrow is_same;

Returns true (1) if this object is pointing to the same handle as |that| object.

is_text
int function(cef_domnode_t* self) nothrow is_text;

Returns true (1) if this is a text node.

set_element_attribute
int function(cef_domnode_t* self, const(cef_string_t)* attrName, const(cef_string_t)* value) nothrow set_element_attribute;

Set the value for the element attribute named |attrName|. Returns true (1) on success.

set_value
int function(cef_domnode_t* self, const(cef_string_t)* value) nothrow set_value;

Set the value of this node. Returns true (1) on success.

Meta