Struct xpcom::interfaces::nsIControllerCommand
[−]
[src]
#[repr(C)]pub struct nsIControllerCommand { /* fields omitted */ }
interface nsIControllerCommand : nsISupports
/**
* nsIControllerCommand
*
* A generic command interface. You can register an nsIControllerCommand
* with the nsIControllerCommandTable.
*/
Methods
impl nsIControllerCommand
[src]
pub fn coerce<T: nsIControllerCommandCoerce>(&self) -> &T
[src]
Cast this nsIControllerCommand
to one of its base interfaces.
impl nsIControllerCommand
[src]
pub unsafe fn IsCommandEnabled(
&self,
aCommandName: *const c_char,
aCommandContext: *const nsISupports,
_retval: *mut bool
) -> nsresult
[src]
&self,
aCommandName: *const c_char,
aCommandContext: *const nsISupports,
_retval: *mut bool
) -> nsresult
/**
* Returns true if the command is currently enabled. An nsIControllerCommand
* can implement more than one commands; say, a group of related commands
* (e.g. delete left/delete right). Because of this, the command name is
* passed to each method.
*
* @param aCommandName the name of the command for which we want the enabled
* state.
* @param aCommandContext a cookie held by the nsIControllerCommandTable,
* allowing the command to get some context information.
* The contents of this cookie are implementation-defined.
*/
boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandContext);
pub unsafe fn GetCommandStateParams(
&self,
aCommandName: *const c_char,
aParams: *const nsICommandParams,
aCommandContext: *const nsISupports
) -> nsresult
[src]
&self,
aCommandName: *const c_char,
aParams: *const nsICommandParams,
aCommandContext: *const nsISupports
) -> nsresult
void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext);
pub unsafe fn DoCommand(
&self,
aCommandName: *const c_char,
aCommandContext: *const nsISupports
) -> nsresult
[src]
&self,
aCommandName: *const c_char,
aCommandContext: *const nsISupports
) -> nsresult
/**
* Execute the name command.
*
* @param aCommandName the name of the command to execute.
*
* @param aCommandContext a cookie held by the nsIControllerCommandTable,
* allowing the command to get some context information.
* The contents of this cookie are implementation-defined.
*/
void doCommand (in string aCommandName, in nsISupports aCommandContext);
pub unsafe fn DoCommandParams(
&self,
aCommandName: *const c_char,
aParams: *const nsICommandParams,
aCommandContext: *const nsISupports
) -> nsresult
[src]
&self,
aCommandName: *const c_char,
aParams: *const nsICommandParams,
aCommandContext: *const nsISupports
) -> nsresult
void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext);
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 nsIControllerCommand
[src]
const IID: nsIID
IID: nsIID = nsID(246323782, 7634, 4530, [172, 160, 145, 118, 240, 95, 233, 219])
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 nsIControllerCommand
[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 nsIControllerCommand
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.