Struct xpcom::interfaces::mozIRepresentativeColorCallback
[−]
[src]
#[repr(C)]pub struct mozIRepresentativeColorCallback { /* fields omitted */ }
interface mozIRepresentativeColorCallback : nsISupports
Methods
impl mozIRepresentativeColorCallback
[src]
pub fn coerce<T: mozIRepresentativeColorCallbackCoerce>(&self) -> &T
[src]
Cast this mozIRepresentativeColorCallback
to one of its base interfaces.
impl mozIRepresentativeColorCallback
[src]
pub unsafe fn OnComplete(&self, success: bool, color: uint32_t) -> nsresult
[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>
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 mozIRepresentativeColorCallback
[src]
const IID: nsIID
IID: nsIID = nsID(3825770017, 29110, 16559, [181, 70, 51, 194, 27, 144, 232, 116])
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 mozIRepresentativeColorCallback
[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 mozIRepresentativeColorCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.