Struct windows::UI::Input::Spatial::SpatialInteractionSource
pub struct SpatialInteractionSource(/* private fields */);
Implementations§
§impl SpatialInteractionSource
impl SpatialInteractionSource
pub fn Id(&self) -> Result<u32>
pub fn Kind(&self) -> Result<SpatialInteractionSourceKind>
pub fn IsPointingSupported(&self) -> Result<bool>
pub fn IsMenuSupported(&self) -> Result<bool>
pub fn IsGraspSupported(&self) -> Result<bool>
pub fn Controller(&self) -> Result<SpatialInteractionController>
pub fn TryGetStateAtTimestamp<P0>(
&self,
timestamp: P0
) -> Result<SpatialInteractionSourceState>where
P0: IntoParam<PerceptionTimestamp>,
pub fn Handedness(&self) -> Result<SpatialInteractionSourceHandedness>
pub fn TryCreateHandMeshObserver(&self) -> Result<HandMeshObserver>
pub fn TryCreateHandMeshObserverAsync( &self ) -> Result<IAsyncOperation<HandMeshObserver>>
Trait Implementations§
§impl Clone for SpatialInteractionSource
impl Clone for SpatialInteractionSource
§fn clone(&self) -> SpatialInteractionSource
fn clone(&self) -> SpatialInteractionSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SpatialInteractionSource
impl Debug for SpatialInteractionSource
§impl From<&SpatialInteractionSource> for &IInspectable
impl From<&SpatialInteractionSource> for &IInspectable
§fn from(value: &SpatialInteractionSource) -> Self
fn from(value: &SpatialInteractionSource) -> Self
Converts to this type from the input type.
§impl From<&SpatialInteractionSource> for &IUnknown
impl From<&SpatialInteractionSource> for &IUnknown
§fn from(value: &SpatialInteractionSource) -> Self
fn from(value: &SpatialInteractionSource) -> Self
Converts to this type from the input type.
§impl From<SpatialInteractionSource> for IInspectable
impl From<SpatialInteractionSource> for IInspectable
§fn from(value: SpatialInteractionSource) -> Self
fn from(value: SpatialInteractionSource) -> Self
Converts to this type from the input type.
§impl From<SpatialInteractionSource> for IUnknown
impl From<SpatialInteractionSource> for IUnknown
§fn from(value: SpatialInteractionSource) -> Self
fn from(value: SpatialInteractionSource) -> Self
Converts to this type from the input type.
§impl Interface for SpatialInteractionSource
impl Interface for SpatialInteractionSource
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for SpatialInteractionSource
impl PartialEq for SpatialInteractionSource
§fn eq(&self, other: &SpatialInteractionSource) -> bool
fn eq(&self, other: &SpatialInteractionSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SpatialInteractionSource
impl Send for SpatialInteractionSource
impl StructuralPartialEq for SpatialInteractionSource
impl Sync for SpatialInteractionSource
Auto Trait Implementations§
impl RefUnwindSafe for SpatialInteractionSource
impl Unpin for SpatialInteractionSource
impl UnwindSafe for SpatialInteractionSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more