Struct xpcom::interfaces::nsIDeviceSensorData
[−]
[src]
#[repr(C)]pub struct nsIDeviceSensorData { /* fields omitted */ }
interface nsIDeviceSensorData : nsISupports
Methods
impl nsIDeviceSensorData
[src]
pub fn coerce<T: nsIDeviceSensorDataCoerce>(&self) -> &T
[src]
Cast this nsIDeviceSensorData
to one of its base interfaces.
impl nsIDeviceSensorData
[src]
pub const TYPE_ORIENTATION: i64
TYPE_ORIENTATION: i64 = 0
pub const TYPE_ACCELERATION: i64
TYPE_ACCELERATION: i64 = 1
pub const TYPE_PROXIMITY: i64
TYPE_PROXIMITY: i64 = 2
pub const TYPE_LINEAR_ACCELERATION: i64
TYPE_LINEAR_ACCELERATION: i64 = 3
pub const TYPE_GYROSCOPE: i64
TYPE_GYROSCOPE: i64 = 4
pub const TYPE_LIGHT: i64
TYPE_LIGHT: i64 = 5
pub const TYPE_ROTATION_VECTOR: i64
TYPE_ROTATION_VECTOR: i64 = 6
pub const TYPE_GAME_ROTATION_VECTOR: i64
TYPE_GAME_ROTATION_VECTOR: i64 = 7
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long type;
pub unsafe fn GetX(&self, aX: *mut c_double) -> nsresult
[src]
readonly attribute double x;
pub unsafe fn GetY(&self, aY: *mut c_double) -> nsresult
[src]
readonly attribute double y;
pub unsafe fn GetZ(&self, aZ: *mut c_double) -> nsresult
[src]
readonly attribute double z;
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 nsIDeviceSensorData
[src]
const IID: nsIID
IID: nsIID = nsID(73540734, 65164, 19109, [182, 117, 55, 82, 84, 126, 72, 95])
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 nsIDeviceSensorData
[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 nsIDeviceSensorData
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.