Struct xpcom::interfaces::nsIColorPickerShownCallback [] [src]

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

interface nsIColorPickerShownCallback : nsISupports

/**
 * nsIColorPicker is representing colors as strings because the internal
 * representation will depend on the underlying backend.
 * The format of the colors taken in input and returned will always follow the
 * format of the <input type='color'> value as described in the HTML
 * specifications.
 */

Methods

impl nsIColorPickerShownCallback
[src]

[src]

Cast this nsIColorPickerShownCallback to one of its base interfaces.

impl nsIColorPickerShownCallback
[src]

[src]

/**
  * Callback called when the color picker requests a color update.
  * This callback can not be called after done() was called.
  * When this callback is used, the consumer can assume that the color value has
  * changed.
  *
  * @param  color  The new selected color value following the format specifed on
  *                top of this file.
  */

void update (in AString color);

[src]

/**
  * Callback called when the color picker is dismissed.
  * When this callback is used, the color might have changed or could stay the
  * same.
  * If the color has not changed, the color parameter will be the empty string.
  *
  * @param  color  The new selected color value following the format specifed on
  *                top of this file or the empty string.
  */

void done (in AString color);

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

IID: nsIID = nsID(3536746705, 16565, 18897, [182, 109, 88, 1, 252, 185, 163, 133])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIColorPickerShownCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.