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]
pub fn coerce<T: nsIColorPickerShownCallbackCoerce>(&self) -> &T
[src]
Cast this nsIColorPickerShownCallback
to one of its base interfaces.
impl nsIColorPickerShownCallback
[src]
pub unsafe fn Update(&self, color: &nsAString) -> nsresult
[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);
pub unsafe fn Done(&self, color: &nsAString) -> nsresult
[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>
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 nsIColorPickerShownCallback
[src]
const IID: nsIID
IID: nsIID = nsID(3536746705, 16565, 18897, [182, 109, 88, 1, 252, 185, 163, 133])
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 nsIColorPickerShownCallback
[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 nsIColorPickerShownCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.