Trait webkit2gtk_webextension::DOMElementExt[][src]

pub trait DOMElementExt {
    fn blur(&self);
fn focus(&self);
fn get_attribute(&self, name: &str) -> Option<String>;
fn get_attribute_node(&self, name: &str) -> Option<DOMAttr>;
fn get_attribute_node_ns(
        &self,
        namespaceURI: &str,
        localName: &str
    ) -> Option<DOMAttr>;
fn get_attribute_ns(
        &self,
        namespaceURI: &str,
        localName: &str
    ) -> Option<String>;
fn get_attributes(&self) -> Option<DOMNamedNodeMap>;
fn get_child_element_count(&self) -> c_ulong;
fn get_class_name(&self) -> Option<String>;
fn get_client_height(&self) -> f64;
fn get_client_left(&self) -> f64;
fn get_client_top(&self) -> f64;
fn get_client_width(&self) -> f64;
fn get_elements_by_class_name(
        &self,
        class_name: &str
    ) -> Option<DOMNodeList>;
fn get_elements_by_tag_name(&self, tag_name: &str) -> Option<DOMNodeList>;
fn get_elements_by_tag_name_ns(
        &self,
        namespace_uri: &str,
        tag_name: &str
    ) -> Option<DOMNodeList>;
fn get_first_element_child(&self) -> Option<DOMElement>;
fn get_id(&self) -> Option<String>;
fn get_last_element_child(&self) -> Option<DOMElement>;
fn get_next_element_sibling(&self) -> Option<DOMElement>;
fn get_offset_height(&self) -> f64;
fn get_offset_left(&self) -> f64;
fn get_offset_parent(&self) -> Option<DOMElement>;
fn get_offset_top(&self) -> f64;
fn get_offset_width(&self) -> f64;
fn get_previous_element_sibling(&self) -> Option<DOMElement>;
fn get_scroll_height(&self) -> c_long;
fn get_scroll_left(&self) -> c_long;
fn get_scroll_top(&self) -> c_long;
fn get_scroll_width(&self) -> c_long;
fn get_style(&self) -> Option<DOMCSSStyleDeclaration>;
fn get_tag_name(&self) -> Option<String>;
fn has_attribute(&self, name: &str) -> bool;
fn has_attribute_ns(&self, namespaceURI: &str, localName: &str) -> bool;
fn has_attributes(&self) -> bool;
fn query_selector(
        &self,
        selectors: &str
    ) -> Result<Option<DOMElement>, Error>;
fn query_selector_all(&self, selectors: &str) -> Result<DOMNodeList, Error>;
fn remove_attribute(&self, name: &str);
fn remove_attribute_node(&self, oldAttr: &DOMAttr) -> Result<DOMAttr, Error>;
fn remove_attribute_ns(&self, namespaceURI: &str, localName: &str);
fn scroll_by_lines(&self, lines: c_long);
fn scroll_by_pages(&self, pages: c_long);
fn scroll_into_view(&self, alignWithTop: bool);
fn scroll_into_view_if_needed(&self, centerIfNeeded: bool);
fn set_attribute(&self, name: &str, value: &str) -> Result<(), Error>;
fn set_attribute_node(&self, newAttr: &DOMAttr) -> Result<DOMAttr, Error>;
fn set_attribute_node_ns(&self, newAttr: &DOMAttr) -> Result<DOMAttr, Error>;
fn set_attribute_ns<'a, P: Into<Option<&'a str>>>(
        &self,
        namespaceURI: P,
        qualifiedName: &str,
        value: &str
    ) -> Result<(), Error>;
fn set_class_name(&self, value: &str);
fn set_id(&self, value: &str);
fn set_scroll_left(&self, value: c_long);
fn set_scroll_top(&self, value: c_long);
fn get_property_children(&self) -> Option<DOMHTMLCollection>;
fn get_property_inner_html(&self) -> Option<String>;
fn set_property_inner_html(&self, inner_html: Option<&str>);
fn get_property_outer_html(&self) -> Option<String>;
fn set_property_outer_html(&self, outer_html: Option<&str>);
fn get_property_webkit_region_overset(&self) -> Option<String>;
fn connect_property_attributes_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_child_element_count_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_children_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_class_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_client_height_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_client_left_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_client_top_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_client_width_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_first_element_child_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_id_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_inner_html_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_last_element_child_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_local_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_namespace_uri_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_next_element_sibling_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_offset_height_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_offset_left_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_offset_parent_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_offset_top_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_offset_width_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_outer_html_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_prefix_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_previous_element_sibling_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_scroll_height_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_scroll_left_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_scroll_top_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_scroll_width_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_style_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_tag_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_webkit_region_overset_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required Methods

Implementors