Struct xpcom::interfaces::nsIDialogParamBlock
[−]
[src]
#[repr(C)]pub struct nsIDialogParamBlock { /* fields omitted */ }
interface nsIDialogParamBlock : nsISupports
/**
* An interface to pass strings, integers and nsISupports to a dialog
*/
Methods
impl nsIDialogParamBlock
[src]
pub fn coerce<T: nsIDialogParamBlockCoerce>(&self) -> &T
[src]
Cast this nsIDialogParamBlock
to one of its base interfaces.
impl nsIDialogParamBlock
[src]
pub unsafe fn GetInt(&self, inIndex: int32_t, _retval: *mut int32_t) -> nsresult
[src]
/** Get or set an integer to pass.
* Index must be in the range 0..7
*/
int32_t GetInt (in int32_t inIndex);
pub unsafe fn SetInt(&self, inIndex: int32_t, inInt: int32_t) -> nsresult
[src]
void SetInt (in int32_t inIndex, in int32_t inInt);
pub unsafe fn SetNumberStrings(&self, inNumStrings: int32_t) -> nsresult
[src]
/** Set the maximum number of strings to pass. Default is 16.
* Use before setting any string (If you want to change it from the default).
*/
void SetNumberStrings (in int32_t inNumStrings);
pub unsafe fn GetString(
&self,
inIndex: int32_t,
_retval: *mut *const int16_t
) -> nsresult
[src]
&self,
inIndex: int32_t,
_retval: *mut *const int16_t
) -> nsresult
/** Get or set an string to pass.
* Index starts at 0
*/
wstring GetString (in int32_t inIndex);
pub unsafe fn SetString(
&self,
inIndex: int32_t,
inString: *const int16_t
) -> nsresult
[src]
&self,
inIndex: int32_t,
inString: *const int16_t
) -> nsresult
void SetString (in int32_t inIndex, in wstring inString);
pub unsafe fn GetObjects(
&self,
aObjects: *mut *const nsIMutableArray
) -> nsresult
[src]
&self,
aObjects: *mut *const nsIMutableArray
) -> nsresult
/**
* A place where you can store an nsIMutableArray to pass nsISupports
*/
attribute nsIMutableArray objects;
pub unsafe fn SetObjects(&self, aObjects: *const nsIMutableArray) -> nsresult
[src]
/**
* A place where you can store an nsIMutableArray to pass nsISupports
*/
attribute nsIMutableArray objects;
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 nsIDialogParamBlock
[src]
const IID: nsIID
IID: nsIID = nsID(4151052545, 17274, 4563, [183, 160, 227, 93, 179, 81, 180, 188])
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 nsIDialogParamBlock
[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 nsIDialogParamBlock
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.