Struct xpcom::interfaces::nsIController
[−]
[src]
#[repr(C)]pub struct nsIController { /* fields omitted */ }
interface nsIController : nsISupports
Methods
impl nsIController
[src]
pub fn coerce<T: nsIControllerCoerce>(&self) -> &T
[src]
Cast this nsIController
to one of its base interfaces.
impl nsIController
[src]
pub unsafe fn IsCommandEnabled(
&self,
command: *const c_char,
_retval: *mut bool
) -> nsresult
[src]
&self,
command: *const c_char,
_retval: *mut bool
) -> nsresult
boolean isCommandEnabled (in string command);
pub unsafe fn SupportsCommand(
&self,
command: *const c_char,
_retval: *mut bool
) -> nsresult
[src]
&self,
command: *const c_char,
_retval: *mut bool
) -> nsresult
boolean supportsCommand (in string command);
pub unsafe fn DoCommand(&self, command: *const c_char) -> nsresult
[src]
void doCommand (in string command);
pub unsafe fn OnEvent(&self, eventName: *const c_char) -> nsresult
[src]
void onEvent (in string eventName);
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 nsIController
[src]
const IID: nsIID
IID: nsIID = nsID(3585481602, 7588, 4563, [191, 135, 0, 16, 90, 27, 6, 39])
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 nsIController
[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 nsIController
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.