Struct xpcom::interfaces::nsIColorPicker [] [src]

#[repr(C)]
pub struct nsIColorPicker { /* fields omitted */ }

interface nsIColorPicker : nsISupports

Methods

impl nsIColorPicker
[src]

[src]

Cast this nsIColorPicker to one of its base interfaces.

impl nsIColorPicker
[src]

[src]

/**
  * Initialize the color picker widget. The color picker will not be shown until
  * open() is called.
  * If the backend doesn't support setting a title to the native color picker
  * widget, the title parameter might be ignored.
  * If the initialColor parameter does not follow the format specified on top of
  * this file, the behavior will be unspecified. The initialColor could be the
  * one used by the underlying backend or an arbitrary one. The backend could
  * also assert.
  *
  * @param      parent       nsIDOMWindow parent. This dialog will be dependent
  *                          on this parent. parent must be non-null.
  * @param      title        The title for the color picker widget.
  * @param      initialColor The color to show when the widget is opened. The
  *                          parameter has to follow the format specified on top
  *                          of this file.
  */

void init (in mozIDOMWindowProxy parent, in AString title, in AString initialColor);

[src]

/**
  * Opens the color dialog asynchrounously.
  * The results are provided via the callback object.
  */

void open (in nsIColorPickerShownCallback aColorPickerShownCallback);

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

IID: nsIID = nsID(3726810423, 43174, 18161, [150, 154, 12, 29, 227, 61, 10, 215])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIColorPicker
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.