Struct xpcom::interfaces::nsIDOMHTMLElement
[−]
[src]
#[repr(C)]pub struct nsIDOMHTMLElement { /* fields omitted */ }
interface nsIDOMHTMLElement : nsIDOMElement
Methods
impl nsIDOMHTMLElement
[src]
pub fn coerce<T: nsIDOMHTMLElementCoerce>(&self) -> &T
[src]
Cast this nsIDOMHTMLElement
to one of its base interfaces.
impl nsIDOMHTMLElement
[src]
pub unsafe fn GetDraggable(&self, aDraggable: *mut bool) -> nsresult
[src]
/**
* The nsIDOMHTMLElement interface is the primary [X]HTML element
* interface. It represents a single [X]HTML element in the document
* tree.
*
* This interface is trying to follow the DOM Level 2 HTML specification:
* http://www.w3.org/TR/DOM-Level-2-HTML/
*
* with changes from the work-in-progress WHATWG HTML specification:
* http://www.whatwg.org/specs/web-apps/current-work/
*/
readonly attribute boolean draggable;
pub unsafe fn GetSpellcheck(&self, aSpellcheck: *mut bool) -> nsresult
[src]
readonly attribute boolean spellcheck;
pub unsafe fn GetOffsetWidth(&self, aOffsetWidth: *mut int32_t) -> nsresult
[src]
readonly attribute long offsetWidth;
pub unsafe fn GetOffsetHeight(&self, aOffsetHeight: *mut int32_t) -> nsresult
[src]
readonly attribute long offsetHeight;
Methods from Deref<Target = nsIDOMElement>
pub fn coerce<T: nsIDOMElementCoerce>(&self) -> &T
[src]
Cast this nsIDOMElement
to one of its base interfaces.
pub unsafe fn GetTagName(&self, aTagName: &mut nsAString) -> nsresult
[src]
/**
* The nsIDOMElement interface represents an element in an HTML or
* XML document.
*
* For more information on this interface please see
* http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-element
*/
readonly attribute DOMString tagName;
pub unsafe fn GetAttributes(
&self,
aAttributes: *mut *const nsIDOMMozNamedAttrMap
) -> nsresult
[src]
&self,
aAttributes: *mut *const nsIDOMMozNamedAttrMap
) -> nsresult
readonly attribute nsIDOMMozNamedAttrMap attributes;
pub unsafe fn GetAttribute(
&self,
name: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
name: &nsAString,
_retval: &mut nsAString
) -> nsresult
DOMString getAttribute (in DOMString name);
pub unsafe fn SetAttribute(
&self,
name: &nsAString,
value: &nsAString
) -> nsresult
[src]
&self,
name: &nsAString,
value: &nsAString
) -> nsresult
void setAttribute (in DOMString name, in DOMString value);
pub unsafe fn HasAttribute(
&self,
name: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
name: &nsAString,
_retval: *mut bool
) -> nsresult
boolean hasAttribute (in DOMString name);
pub unsafe fn GetAttributeNode(
&self,
name: &nsAString,
_retval: *mut *const nsIDOMAttr
) -> nsresult
[src]
&self,
name: &nsAString,
_retval: *mut *const nsIDOMAttr
) -> nsresult
nsIDOMAttr getAttributeNode (in DOMString name);
pub unsafe fn GetAttributeNodeNS(
&self,
namespaceURI: &nsAString,
localName: &nsAString,
_retval: *mut *const nsIDOMAttr
) -> nsresult
[src]
&self,
namespaceURI: &nsAString,
localName: &nsAString,
_retval: *mut *const nsIDOMAttr
) -> nsresult
nsIDOMAttr getAttributeNodeNS (in DOMString namespaceURI, in DOMString localName);
Trait Implementations
impl XpCom for nsIDOMHTMLElement
[src]
const IID: nsIID
IID: nsIID = nsID(2965644178, 53479, 20330, [190, 181, 166, 152, 206, 100, 137, 69])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIDOMHTMLElement
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDOMHTMLElement
[src]
type Target = nsIDOMElement
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMElement
[src]
Dereferences the value.