Struct windows::UI::Composition::Interactions::VisualInteractionSource
pub struct VisualInteractionSource(/* private fields */);
Implementations§
§impl VisualInteractionSource
impl VisualInteractionSource
pub fn PopulatePropertyInfo<P0>(
&self,
propertyname: &HSTRING,
propertyinfo: P0,
) -> Result<()>where
P0: Param<AnimationPropertyInfo>,
pub fn Close(&self) -> Result<()>
pub fn Compositor(&self) -> Result<Compositor>
pub fn Dispatcher(&self) -> Result<CoreDispatcher>
pub fn Properties(&self) -> Result<CompositionPropertySet>
pub fn StartAnimation<P0>(
&self,
propertyname: &HSTRING,
animation: P0,
) -> Result<()>where
P0: Param<CompositionAnimation>,
pub fn StopAnimation(&self, propertyname: &HSTRING) -> Result<()>
pub fn Comment(&self) -> Result<HSTRING>
pub fn SetComment(&self, value: &HSTRING) -> Result<()>
pub fn ImplicitAnimations(&self) -> Result<ImplicitAnimationCollection>
pub fn SetImplicitAnimations<P0>(&self, value: P0) -> Result<()>where
P0: Param<ImplicitAnimationCollection>,
pub fn StartAnimationGroup<P0>(&self, value: P0) -> Result<()>where
P0: Param<ICompositionAnimationBase>,
pub fn StopAnimationGroup<P0>(&self, value: P0) -> Result<()>where
P0: Param<ICompositionAnimationBase>,
pub fn DispatcherQueue(&self) -> Result<DispatcherQueue>
pub fn TryGetAnimationController( &self, propertyname: &HSTRING, ) -> Result<AnimationController>
pub fn StartAnimationWithController<P0, P1>(
&self,
propertyname: &HSTRING,
animation: P0,
animationcontroller: P1,
) -> Result<()>where
P0: Param<CompositionAnimation>,
P1: Param<AnimationController>,
pub fn IsPositionXRailsEnabled(&self) -> Result<bool>
pub fn SetIsPositionXRailsEnabled(&self, value: bool) -> Result<()>
pub fn IsPositionYRailsEnabled(&self) -> Result<bool>
pub fn SetIsPositionYRailsEnabled(&self, value: bool) -> Result<()>
pub fn ManipulationRedirectionMode( &self, ) -> Result<VisualInteractionSourceRedirectionMode>
pub fn SetManipulationRedirectionMode( &self, value: VisualInteractionSourceRedirectionMode, ) -> Result<()>
pub fn PositionXChainingMode(&self) -> Result<InteractionChainingMode>
pub fn SetPositionXChainingMode( &self, value: InteractionChainingMode, ) -> Result<()>
pub fn PositionXSourceMode(&self) -> Result<InteractionSourceMode>
pub fn SetPositionXSourceMode(&self, value: InteractionSourceMode) -> Result<()>
pub fn PositionYChainingMode(&self) -> Result<InteractionChainingMode>
pub fn SetPositionYChainingMode( &self, value: InteractionChainingMode, ) -> Result<()>
pub fn PositionYSourceMode(&self) -> Result<InteractionSourceMode>
pub fn SetPositionYSourceMode(&self, value: InteractionSourceMode) -> Result<()>
pub fn ScaleChainingMode(&self) -> Result<InteractionChainingMode>
pub fn SetScaleChainingMode(&self, value: InteractionChainingMode) -> Result<()>
pub fn ScaleSourceMode(&self) -> Result<InteractionSourceMode>
pub fn SetScaleSourceMode(&self, value: InteractionSourceMode) -> Result<()>
pub fn Source(&self) -> Result<Visual>
pub fn TryRedirectForManipulation<P0>(&self, pointerpoint: P0) -> Result<()>where
P0: Param<PointerPoint>,
pub fn DeltaPosition(&self) -> Result<Vector3>
pub fn DeltaScale(&self) -> Result<f32>
pub fn Position(&self) -> Result<Vector3>
pub fn PositionVelocity(&self) -> Result<Vector3>
pub fn Scale(&self) -> Result<f32>
pub fn ScaleVelocity(&self) -> Result<f32>
pub fn ConfigureCenterPointXModifiers<P0>(
&self,
conditionalvalues: P0,
) -> Result<()>where
P0: Param<IIterable<CompositionConditionalValue>>,
pub fn ConfigureCenterPointYModifiers<P0>(
&self,
conditionalvalues: P0,
) -> Result<()>where
P0: Param<IIterable<CompositionConditionalValue>>,
pub fn ConfigureDeltaPositionXModifiers<P0>(
&self,
conditionalvalues: P0,
) -> Result<()>where
P0: Param<IIterable<CompositionConditionalValue>>,
pub fn ConfigureDeltaPositionYModifiers<P0>(
&self,
conditionalvalues: P0,
) -> Result<()>where
P0: Param<IIterable<CompositionConditionalValue>>,
pub fn ConfigureDeltaScaleModifiers<P0>(
&self,
conditionalvalues: P0,
) -> Result<()>where
P0: Param<IIterable<CompositionConditionalValue>>,
pub fn PointerWheelConfig(&self) -> Result<InteractionSourceConfiguration>
pub fn Create<P0>(source: P0) -> Result<VisualInteractionSource>where
P0: Param<Visual>,
pub fn CreateFromIVisualElement<P0>(
source: P0,
) -> Result<VisualInteractionSource>where
P0: Param<IVisualElement>,
Trait Implementations§
§impl CanInto<CompositionObject> for VisualInteractionSource
impl CanInto<CompositionObject> for VisualInteractionSource
§impl CanInto<IAnimationObject> for VisualInteractionSource
impl CanInto<IAnimationObject> for VisualInteractionSource
§impl CanInto<ICompositionInteractionSource> for VisualInteractionSource
impl CanInto<ICompositionInteractionSource> for VisualInteractionSource
§impl CanInto<IInspectable> for VisualInteractionSource
impl CanInto<IInspectable> for VisualInteractionSource
§impl CanInto<IUnknown> for VisualInteractionSource
impl CanInto<IUnknown> for VisualInteractionSource
§impl Clone for VisualInteractionSource
impl Clone for VisualInteractionSource
§fn clone(&self) -> VisualInteractionSource
fn clone(&self) -> VisualInteractionSource
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 VisualInteractionSource
impl Debug for VisualInteractionSource
§impl From<&VisualInteractionSource> for &IInspectable
impl From<&VisualInteractionSource> for &IInspectable
§fn from(value: &VisualInteractionSource) -> Self
fn from(value: &VisualInteractionSource) -> Self
Converts to this type from the input type.
§impl From<&VisualInteractionSource> for &IUnknown
impl From<&VisualInteractionSource> for &IUnknown
§fn from(value: &VisualInteractionSource) -> Self
fn from(value: &VisualInteractionSource) -> Self
Converts to this type from the input type.
§impl From<VisualInteractionSource> for IInspectable
impl From<VisualInteractionSource> for IInspectable
§fn from(value: VisualInteractionSource) -> Self
fn from(value: VisualInteractionSource) -> Self
Converts to this type from the input type.
§impl From<VisualInteractionSource> for IUnknown
impl From<VisualInteractionSource> for IUnknown
§fn from(value: VisualInteractionSource) -> Self
fn from(value: VisualInteractionSource) -> Self
Converts to this type from the input type.
§impl Interface for VisualInteractionSource
impl Interface for VisualInteractionSource
§const IID: GUID = <IVisualInteractionSource as windows_core::Interface>::IID
const IID: GUID = <IVisualInteractionSource as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for VisualInteractionSource
impl PartialEq for VisualInteractionSource
§fn eq(&self, other: &VisualInteractionSource) -> bool
fn eq(&self, other: &VisualInteractionSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VisualInteractionSource
impl Send for VisualInteractionSource
impl StructuralPartialEq for VisualInteractionSource
impl Sync for VisualInteractionSource
Auto Trait Implementations§
impl Freeze for VisualInteractionSource
impl RefUnwindSafe for VisualInteractionSource
impl Unpin for VisualInteractionSource
impl UnwindSafe for VisualInteractionSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)