Struct xpcom::interfaces::nsIPropertyBag2
[−]
[src]
#[repr(C)]pub struct nsIPropertyBag2 { /* fields omitted */ }
interface nsIPropertyBag2 : nsIPropertyBag
Methods
impl nsIPropertyBag2
[src]
pub fn coerce<T: nsIPropertyBag2Coerce>(&self) -> &T
[src]
Cast this nsIPropertyBag2
to one of its base interfaces.
impl nsIPropertyBag2
[src]
pub unsafe fn GetPropertyAsInt32(
&self,
prop: &nsAString,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut int32_t
) -> nsresult
int32_t getPropertyAsInt32 (in AString prop);
pub unsafe fn GetPropertyAsUint32(
&self,
prop: &nsAString,
_retval: *mut uint32_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut uint32_t
) -> nsresult
uint32_t getPropertyAsUint32 (in AString prop);
pub unsafe fn GetPropertyAsInt64(
&self,
prop: &nsAString,
_retval: *mut int64_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut int64_t
) -> nsresult
int64_t getPropertyAsInt64 (in AString prop);
pub unsafe fn GetPropertyAsUint64(
&self,
prop: &nsAString,
_retval: *mut uint64_t
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut uint64_t
) -> nsresult
uint64_t getPropertyAsUint64 (in AString prop);
pub unsafe fn GetPropertyAsDouble(
&self,
prop: &nsAString,
_retval: *mut c_double
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut c_double
) -> nsresult
double getPropertyAsDouble (in AString prop);
pub unsafe fn GetPropertyAsAString(
&self,
prop: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: &mut nsAString
) -> nsresult
AString getPropertyAsAString (in AString prop);
pub unsafe fn GetPropertyAsACString(
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
ACString getPropertyAsACString (in AString prop);
pub unsafe fn GetPropertyAsAUTF8String(
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: &mut nsACString
) -> nsresult
AUTF8String getPropertyAsAUTF8String (in AString prop);
pub unsafe fn GetPropertyAsBool(
&self,
prop: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut bool
) -> nsresult
boolean getPropertyAsBool (in AString prop);
pub unsafe fn GetPropertyAsInterface(
&self,
prop: &nsAString,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
prop: &nsAString,
iid: &nsIID,
result: *mut *mut c_void
) -> nsresult
/**
* This method returns null if the value exists, but is null.
*/
void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result);
pub unsafe fn Get(
&self,
prop: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
prop: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* This method returns null if the value does not exist,
* or exists but is null.
*/
nsIVariant get (in AString prop);
pub unsafe fn HasKey(&self, prop: &nsAString, _retval: *mut bool) -> nsresult
[src]
/**
* Check for the existence of a key.
*/
boolean hasKey (in AString prop);
Methods from Deref<Target = nsIPropertyBag>
pub fn coerce<T: nsIPropertyBagCoerce>(&self) -> &T
[src]
Cast this nsIPropertyBag
to one of its base interfaces.
pub unsafe fn GetEnumerator(
&self,
aEnumerator: *mut *const nsISimpleEnumerator
) -> nsresult
[src]
&self,
aEnumerator: *mut *const nsISimpleEnumerator
) -> nsresult
/**
* Get a nsISimpleEnumerator whose elements are nsIProperty objects.
*/
readonly attribute nsISimpleEnumerator enumerator;
pub unsafe fn GetProperty(
&self,
name: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
[src]
&self,
name: &nsAString,
_retval: *mut *const nsIVariant
) -> nsresult
/**
* Get a property value for the given name.
* @throws NS_ERROR_FAILURE if a property with that name doesn't
* exist.
*/
nsIVariant getProperty (in AString name);
Trait Implementations
impl XpCom for nsIPropertyBag2
[src]
const IID: nsIID
IID: nsIID = nsID(1650261278, 55838, 17431, [158, 233, 219, 200, 224, 179, 253, 121])
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 nsIPropertyBag2
[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 nsIPropertyBag2
[src]
type Target = nsIPropertyBag
The resulting type after dereferencing.
fn deref(&self) -> &nsIPropertyBag
[src]
Dereferences the value.