Struct xpcom::interfaces::mozIRepresentativeColorCallback [] [src]

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

interface mozIRepresentativeColorCallback : nsISupports

Methods

impl mozIRepresentativeColorCallback
[src]

[src]

Cast this mozIRepresentativeColorCallback to one of its base interfaces.

impl mozIRepresentativeColorCallback
[src]

[src]

/**
   * Will be called when color analysis finishes.
   *
   * @param success
   *        True if analysis was successful, false otherwise.
   *        Analysis can fail if the image is transparent, imageURI doesn't
   *        resolve to a valid image, or the image is too big.
   *
   * @param color
   *        The representative color as an integer in RGB form.
   *        e.g. 0xFF0102 == rgb(255,1,2)
   *        If success is false, color is not provided.
   */

void onComplete (in boolean success, [optional] in unsigned long 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 mozIRepresentativeColorCallback
[src]

IID: nsIID = nsID(3825770017, 29110, 16559, [181, 70, 51, 194, 27, 144, 232, 116])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for mozIRepresentativeColorCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.