Struct xpcom::interfaces::nsIWebPageDescriptor
[−]
[src]
#[repr(C)]pub struct nsIWebPageDescriptor { /* fields omitted */ }
interface nsIWebPageDescriptor : nsISupports
/**
* The nsIWebPageDescriptor interface allows content being displayed in one
* window to be loaded into another window without refetching it from the
* network.
*/
Methods
impl nsIWebPageDescriptor
[src]
pub fn coerce<T: nsIWebPageDescriptorCoerce>(&self) -> &T
[src]
Cast this nsIWebPageDescriptor
to one of its base interfaces.
impl nsIWebPageDescriptor
[src]
pub const DISPLAY_AS_SOURCE: i64
DISPLAY_AS_SOURCE: i64 = 1
pub const DISPLAY_NORMAL: i64
DISPLAY_NORMAL: i64 = 2
pub unsafe fn LoadPage(
&self,
aPageDescriptor: *const nsISupports,
aDisplayType: uint32_t
) -> nsresult
[src]
&self,
aPageDescriptor: *const nsISupports,
aDisplayType: uint32_t
) -> nsresult
/**
* Tells the object to load the page specified by the page descriptor
*
* @throws NS_ERROR_FAILURE -
*/
void loadPage (in nsISupports aPageDescriptor, in unsigned long aDisplayType);
pub unsafe fn GetCurrentDescriptor(
&self,
aCurrentDescriptor: *mut *const nsISupports
) -> nsresult
[src]
&self,
aCurrentDescriptor: *mut *const nsISupports
) -> nsresult
/**
* Retrieves the page descriptor for the curent document.
*/
readonly attribute nsISupports currentDescriptor;
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 nsIWebPageDescriptor
[src]
const IID: nsIID
IID: nsIID = nsID(1865463414, 14096, 19500, [128, 177, 3, 149, 251, 38, 81, 110])
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 nsIWebPageDescriptor
[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 nsIWebPageDescriptor
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.