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]

[src]

Cast this nsIControllerCommand to one of its base interfaces.

impl nsIControllerCommand
[src]

[src]

/**
   * 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);

[src]

void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext);

[src]

/**
   * 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);

[src]

void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIControllerCommand
[src]

IID: nsIID = nsID(246323782, 7634, 4530, [172, 160, 145, 118, 240, 95, 233, 219])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIControllerCommand
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.