Struct xpcom::interfaces::nsIScreenManager
[−]
[src]
#[repr(C)]pub struct nsIScreenManager { /* fields omitted */ }
interface nsIScreenManager : nsISupports
Methods
impl nsIScreenManager
[src]
pub fn coerce<T: nsIScreenManagerCoerce>(&self) -> &T
[src]
Cast this nsIScreenManager
to one of its base interfaces.
impl nsIScreenManager
[src]
pub unsafe fn ScreenForRect(
&self,
left: int32_t,
top: int32_t,
width: int32_t,
height: int32_t,
_retval: *mut *const nsIScreen
) -> nsresult
[src]
&self,
left: int32_t,
top: int32_t,
width: int32_t,
height: int32_t,
_retval: *mut *const nsIScreen
) -> nsresult
nsIScreen screenForRect (in long left, in long top, in long width, in long height);
pub unsafe fn GetPrimaryScreen(
&self,
aPrimaryScreen: *mut *const nsIScreen
) -> nsresult
[src]
&self,
aPrimaryScreen: *mut *const nsIScreen
) -> nsresult
readonly attribute nsIScreen primaryScreen;
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 nsIScreenManager
[src]
const IID: nsIID
IID: nsIID = nsID(3903417952, 27489, 18964, [186, 204, 83, 137, 22, 4, 181, 2])
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 nsIScreenManager
[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 nsIScreenManager
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.