Struct xpcom::interfaces::nsIColorPicker
[−]
[src]
#[repr(C)]pub struct nsIColorPicker { /* fields omitted */ }
interface nsIColorPicker : nsISupports
Methods
impl nsIColorPicker
[src]
pub fn coerce<T: nsIColorPickerCoerce>(&self) -> &T
[src]
Cast this nsIColorPicker
to one of its base interfaces.
impl nsIColorPicker
[src]
pub unsafe fn Init(
&self,
parent: *const mozIDOMWindowProxy,
title: &nsAString,
initialColor: &nsAString
) -> nsresult
[src]
&self,
parent: *const mozIDOMWindowProxy,
title: &nsAString,
initialColor: &nsAString
) -> nsresult
/**
* 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);
pub unsafe fn Open(
&self,
aColorPickerShownCallback: *const nsIColorPickerShownCallback
) -> nsresult
[src]
&self,
aColorPickerShownCallback: *const nsIColorPickerShownCallback
) -> nsresult
/**
* Opens the color dialog asynchrounously.
* The results are provided via the callback object.
*/
void open (in nsIColorPickerShownCallback aColorPickerShownCallback);
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 nsIColorPicker
[src]
const IID: nsIID
IID: nsIID = nsID(3726810423, 43174, 18161, [150, 154, 12, 29, 227, 61, 10, 215])
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 nsIColorPicker
[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 nsIColorPicker
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.