pub trait DOMHTMLElementExt: 'static {
Show 57 methods
fn click(&self);
fn access_key(&self) -> Option<GString>;
fn children(&self) -> Option<DOMHTMLCollection>;
fn content_editable(&self) -> Option<GString>;
fn dir(&self) -> Option<GString>;
fn is_draggable(&self) -> bool;
fn is_hidden(&self) -> bool;
fn inner_html(&self) -> Option<GString>;
fn inner_text(&self) -> Option<GString>;
fn is_content_editable(&self) -> bool;
fn lang(&self) -> Option<GString>;
fn outer_html(&self) -> Option<GString>;
fn outer_text(&self) -> Option<GString>;
fn is_spellcheck(&self) -> bool;
fn tab_index(&self) -> c_long;
fn title(&self) -> Option<GString>;
fn is_translate(&self) -> bool;
fn webkitdropzone(&self) -> Option<GString>;
fn set_access_key(&self, value: &str);
fn set_content_editable(&self, value: &str) -> Result<(), Error>;
fn set_dir(&self, value: &str);
fn set_draggable(&self, value: bool);
fn set_hidden(&self, value: bool);
fn set_inner_html(&self, contents: &str) -> Result<(), Error>;
fn set_inner_text(&self, value: &str) -> Result<(), Error>;
fn set_lang(&self, value: &str);
fn set_outer_html(&self, contents: &str) -> Result<(), Error>;
fn set_outer_text(&self, value: &str) -> Result<(), Error>;
fn set_spellcheck(&self, value: bool);
fn set_tab_index(&self, value: c_long);
fn set_title(&self, value: &str);
fn set_translate(&self, value: bool);
fn set_webkitdropzone(&self, value: &str);
fn get_property_draggable(&self) -> bool;
fn set_property_draggable(&self, draggable: bool);
fn get_property_hidden(&self) -> bool;
fn set_property_hidden(&self, hidden: bool);
fn get_property_spellcheck(&self) -> bool;
fn set_property_spellcheck(&self, spellcheck: bool);
fn get_property_translate(&self) -> bool;
fn set_property_translate(&self, translate: bool);
fn get_property_webkitdropzone(&self) -> Option<GString>;
fn set_property_webkitdropzone(&self, webkitdropzone: Option<&str>);
fn connect_access_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_content_editable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_dir_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_draggable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_hidden_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_inner_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_is_content_editable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_lang_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_outer_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_spellcheck_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_tab_index_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_translate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_webkitdropzone_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Trait containing all DOMHTMLElement
methods.
Implementors
DOMHTMLAnchorElement
, DOMHTMLAppletElement
, DOMHTMLAreaElement
, DOMHTMLBRElement
, DOMHTMLBaseElement
, DOMHTMLBaseFontElement
, DOMHTMLBodyElement
, DOMHTMLButtonElement
, DOMHTMLCanvasElement
, DOMHTMLDListElement
, DOMHTMLDirectoryElement
, DOMHTMLDivElement
, DOMHTMLElement
, DOMHTMLEmbedElement
, DOMHTMLFieldSetElement
, DOMHTMLFontElement
, DOMHTMLFormElement
, DOMHTMLFrameElement
, DOMHTMLFrameSetElement
, DOMHTMLHRElement
, DOMHTMLHeadElement
, DOMHTMLHeadingElement
, DOMHTMLHtmlElement
, DOMHTMLIFrameElement
, DOMHTMLImageElement
, DOMHTMLInputElement
, DOMHTMLLIElement
, DOMHTMLLabelElement
, DOMHTMLLegendElement
, DOMHTMLLinkElement
, DOMHTMLMapElement
, DOMHTMLMarqueeElement
, DOMHTMLMenuElement
, DOMHTMLMetaElement
, DOMHTMLModElement
, DOMHTMLOListElement
, DOMHTMLObjectElement
, DOMHTMLOptGroupElement
, DOMHTMLOptionElement
, DOMHTMLParagraphElement
, DOMHTMLParamElement
, DOMHTMLPreElement
, DOMHTMLQuoteElement
, DOMHTMLScriptElement
, DOMHTMLSelectElement
, DOMHTMLStyleElement
, DOMHTMLTableCaptionElement
, DOMHTMLTableCellElement
, DOMHTMLTableColElement
, DOMHTMLTableElement
, DOMHTMLTableRowElement
, DOMHTMLTableSectionElement
, DOMHTMLTextAreaElement
, DOMHTMLTitleElement
, DOMHTMLUListElement
Required Methods
sourcefn click(&self)
fn click(&self)
Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn access_key(&self) -> Option<GString>
fn access_key(&self) -> Option<GString>
sourcefn children(&self) -> Option<DOMHTMLCollection>
fn children(&self) -> Option<DOMHTMLCollection>
v2_10
only.sourcefn content_editable(&self) -> Option<GString>
fn content_editable(&self) -> Option<GString>
sourcefn is_draggable(&self) -> bool
fn is_draggable(&self) -> bool
v2_16
only.v2_16
only.sourcefn inner_html(&self) -> Option<GString>
fn inner_html(&self) -> Option<GString>
v2_8
only.sourcefn inner_text(&self) -> Option<GString>
fn inner_text(&self) -> Option<GString>
sourcefn is_content_editable(&self) -> bool
fn is_content_editable(&self) -> bool
sourcefn outer_html(&self) -> Option<GString>
fn outer_html(&self) -> Option<GString>
v2_8
only.sourcefn outer_text(&self) -> Option<GString>
fn outer_text(&self) -> Option<GString>
sourcefn is_spellcheck(&self) -> bool
fn is_spellcheck(&self) -> bool
v2_16
only.sourcefn is_translate(&self) -> bool
fn is_translate(&self) -> bool
v2_16
only.sourcefn webkitdropzone(&self) -> Option<GString>
fn webkitdropzone(&self) -> Option<GString>
v2_16
only.sourcefn set_access_key(&self, value: &str)
fn set_access_key(&self, value: &str)
sourcefn set_draggable(&self, value: bool)
fn set_draggable(&self, value: bool)
v2_16
only.v2_16
only.sourcefn set_inner_html(&self, contents: &str) -> Result<(), Error>
fn set_inner_html(&self, contents: &str) -> Result<(), Error>
v2_8
only.Deprecated since 2.8
Use DOMElementExt::set_inner_html()
instead.
contents
a gchar
with contents to set
sourcefn set_outer_html(&self, contents: &str) -> Result<(), Error>
fn set_outer_html(&self, contents: &str) -> Result<(), Error>
v2_8
only.Deprecated since 2.8
Use DOMElementExt::set_outer_html()
instead.
contents
a gchar
with contents to set
sourcefn set_spellcheck(&self, value: bool)
fn set_spellcheck(&self, value: bool)
v2_16
only.sourcefn set_tab_index(&self, value: c_long)
fn set_tab_index(&self, value: c_long)
sourcefn set_translate(&self, value: bool)
fn set_translate(&self, value: bool)
v2_16
only.sourcefn set_webkitdropzone(&self, value: &str)
fn set_webkitdropzone(&self, value: &str)
v2_16
only.