Struct xpcom::interfaces::nsIURIRefObject
[−]
[src]
#[repr(C)]pub struct nsIURIRefObject { /* fields omitted */ }
interface nsIURIRefObject : nsISupports
/** A class which can represent any node which points to an
* external URI, e.g. <a>, <img>, <script> etc,
* and has the capability to rewrite URLs to be
* relative or absolute.
* Used by the editor but not dependant on it.
*/
Methods
impl nsIURIRefObject
[src]
pub fn coerce<T: nsIURIRefObjectCoerce>(&self) -> &T
[src]
Cast this nsIURIRefObject
to one of its base interfaces.
impl nsIURIRefObject
[src]
pub unsafe fn GetNode(&self, aNode: *mut *const nsIDOMNode) -> nsresult
[src]
attribute nsIDOMNode node;
pub unsafe fn SetNode(&self, aNode: *const nsIDOMNode) -> nsresult
[src]
attribute nsIDOMNode node;
pub unsafe fn Reset(&self) -> nsresult
[src]
/**
* Go back to the beginning of the attribute list.
*/
void Reset ();
pub unsafe fn GetNextURI(&self, _retval: &mut nsAString) -> nsresult
[src]
/**
* Return the next rewritable URI.
*/
DOMString GetNextURI ();
pub unsafe fn RewriteAllURIs(
&self,
aOldPat: &nsAString,
aNewPat: &nsAString,
aMakeRel: bool
) -> nsresult
[src]
&self,
aOldPat: &nsAString,
aNewPat: &nsAString,
aMakeRel: bool
) -> nsresult
/**
* Go back to the beginning of the attribute list
*
* @param aOldPat Old pattern to be replaced, e.g. file:///a/b/
* @param aNewPat New pattern to be replaced, e.g. http://mypage.aol.com/
* @param aMakeRel Rewrite links as relative vs. absolute
*/
void RewriteAllURIs (in DOMString aOldPat, in DOMString aNewPat, in boolean aMakeRel);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIURIRefObject
[src]
const IID: nsIID
IID: nsIID = nsID(572953214, 7634, 4530, [181, 127, 250, 171, 71, 40, 133, 99])
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 nsIURIRefObject
[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 nsIURIRefObject
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.