Struct xpcom::interfaces::nsIPluginInstanceOwner
[−]
[src]
#[repr(C)]pub struct nsIPluginInstanceOwner { /* fields omitted */ }
interface nsIPluginInstanceOwner : nsISupports
Methods
impl nsIPluginInstanceOwner
[src]
pub fn coerce<T: nsIPluginInstanceOwnerCoerce>(&self) -> &T
[src]
Cast this nsIPluginInstanceOwner
to one of its base interfaces.
impl nsIPluginInstanceOwner
[src]
pub unsafe fn GetMode(&self, aMode: *mut int32_t) -> nsresult
[src]
/**
* Get the display mode for the plugin instance.
*/
readonly attribute int32_t mode;
pub unsafe fn CreateWidget(&self) -> nsresult
[src]
/**
* Create a place for the plugin to live in the owner's
* environment. this may or may not create a window
* depending on the windowless state of the plugin instance.
*/
void createWidget ();
pub unsafe fn GetDocument(&self, aDocument: *mut *const nsIDocument) -> nsresult
[src]
/**
* Get the associated document.
*/
readonly attribute nsIDocument document;
pub unsafe fn RedrawPlugin(&self) -> nsresult
[src]
/**
* Have the plugin recomposited.
*/
void redrawPlugin ();
pub unsafe fn GetNetscapeWindow(&self, aValue: *mut c_void) -> nsresult
[src]
/**
* Get NetscapeWindow, corresponds to NPNVnetscapeWindow
*/
void getNetscapeWindow (in voidPtr aValue);
pub unsafe fn SetEventModel(&self, eventModel: int32_t) -> nsresult
[src]
/**
* Convert between plugin, window, and screen coordinate spaces.
*/
void setEventModel (in int32_t eventModel);
pub unsafe fn CallSetWindow(&self) -> nsresult
[src]
/**
* Call NPP_SetWindow on the plugin.
*/
void callSetWindow ();
pub unsafe fn GetContentsScaleFactor(&self, _retval: *mut c_double) -> nsresult
[src]
/**
* Get the contents scale factor for the screen the plugin is
* drawn on.
*/
double getContentsScaleFactor ();
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 nsIPluginInstanceOwner
[src]
const IID: nsIID
IID: nsIID = nsID(2103788846, 49511, 19642, [160, 227, 221, 198, 27, 221, 232, 195])
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 nsIPluginInstanceOwner
[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 nsIPluginInstanceOwner
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.