Struct xpcom::interfaces::nsICommandParams
[−]
[src]
#[repr(C)]pub struct nsICommandParams { /* fields omitted */ }
interface nsICommandParams : nsISupports
Methods
impl nsICommandParams
[src]
pub fn coerce<T: nsICommandParamsCoerce>(&self) -> &T
[src]
Cast this nsICommandParams
to one of its base interfaces.
impl nsICommandParams
[src]
pub const eNoType: i64
eNoType: i64 = 0
pub const eBooleanType: i64
eBooleanType: i64 = 1
pub const eLongType: i64
eLongType: i64 = 2
pub const eDoubleType: i64
eDoubleType: i64 = 3
pub const eWStringType: i64
eWStringType: i64 = 4
pub const eISupportsType: i64
eISupportsType: i64 = 5
pub const eStringType: i64
eStringType: i64 = 6
pub unsafe fn GetValueType(
&self,
name: *const c_char,
_retval: *mut int16_t
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: *mut int16_t
) -> nsresult
short getValueType (in string name);
pub unsafe fn GetBooleanValue(
&self,
name: *const c_char,
_retval: *mut bool
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: *mut bool
) -> nsresult
boolean getBooleanValue (in string name);
pub unsafe fn GetLongValue(
&self,
name: *const c_char,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: *mut int32_t
) -> nsresult
long getLongValue (in string name);
pub unsafe fn GetDoubleValue(
&self,
name: *const c_char,
_retval: *mut c_double
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: *mut c_double
) -> nsresult
double getDoubleValue (in string name);
pub unsafe fn GetStringValue(
&self,
name: *const c_char,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: &mut nsAString
) -> nsresult
AString getStringValue (in string name);
pub unsafe fn GetCStringValue(
&self,
name: *const c_char,
_retval: *mut *const c_char
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: *mut *const c_char
) -> nsresult
string getCStringValue (in string name);
pub unsafe fn GetISupportsValue(
&self,
name: *const c_char,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
name: *const c_char,
_retval: *mut *const nsISupports
) -> nsresult
nsISupports getISupportsValue (in string name);
pub unsafe fn SetBooleanValue(
&self,
name: *const c_char,
value: bool
) -> nsresult
[src]
&self,
name: *const c_char,
value: bool
) -> nsresult
void setBooleanValue (in string name, in boolean value);
pub unsafe fn SetLongValue(
&self,
name: *const c_char,
value: int32_t
) -> nsresult
[src]
&self,
name: *const c_char,
value: int32_t
) -> nsresult
void setLongValue (in string name, in long value);
pub unsafe fn SetDoubleValue(
&self,
name: *const c_char,
value: c_double
) -> nsresult
[src]
&self,
name: *const c_char,
value: c_double
) -> nsresult
void setDoubleValue (in string name, in double value);
pub unsafe fn SetStringValue(
&self,
name: *const c_char,
value: &nsAString
) -> nsresult
[src]
&self,
name: *const c_char,
value: &nsAString
) -> nsresult
void setStringValue (in string name, in AString value);
pub unsafe fn SetCStringValue(
&self,
name: *const c_char,
value: *const c_char
) -> nsresult
[src]
&self,
name: *const c_char,
value: *const c_char
) -> nsresult
void setCStringValue (in string name, in string value);
pub unsafe fn SetISupportsValue(
&self,
name: *const c_char,
value: *const nsISupports
) -> nsresult
[src]
&self,
name: *const c_char,
value: *const nsISupports
) -> nsresult
void setISupportsValue (in string name, in nsISupports value);
pub unsafe fn RemoveValue(&self, name: *const c_char) -> nsresult
[src]
void removeValue (in string name);
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 nsICommandParams
[src]
const IID: nsIID
IID: nsIID = nsID(2986210244, 29923, 20349, [161, 77, 43, 118, 188, 245, 52, 130])
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 nsICommandParams
[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 nsICommandParams
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.