pub struct IDirectManipulationViewport(/* private fields */);
Implementations§
§impl IDirectManipulationViewport
impl IDirectManipulationViewport
pub unsafe fn Enable(&self) -> Result<()>
pub unsafe fn Disable(&self) -> Result<()>
pub unsafe fn SetContact(&self, pointerid: u32) -> Result<()>
pub unsafe fn ReleaseContact(&self, pointerid: u32) -> Result<()>
pub unsafe fn ReleaseAllContacts(&self) -> Result<()>
pub unsafe fn GetStatus(&self) -> Result<DIRECTMANIPULATION_STATUS>
pub unsafe fn GetTag<T>(
&self,
id: Option<*mut u32>,
result__: *mut Option<T>,
) -> Result<()>where
T: Interface,
pub unsafe fn SetTag<P0>(&self, object: P0, id: u32) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn GetViewportRect(&self) -> Result<RECT>
pub unsafe fn SetViewportRect(&self, viewport: *const RECT) -> Result<()>
pub unsafe fn ZoomToRect<P0>(
&self,
left: f32,
top: f32,
right: f32,
bottom: f32,
animate: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn SetViewportTransform(&self, matrix: &[f32]) -> Result<()>
pub unsafe fn SyncDisplayTransform(&self, matrix: &[f32]) -> Result<()>
pub unsafe fn GetPrimaryContent<T>(&self) -> Result<T>where
T: Interface,
pub unsafe fn AddContent<P0>(&self, content: P0) -> Result<()>where
P0: Param<IDirectManipulationContent>,
pub unsafe fn RemoveContent<P0>(&self, content: P0) -> Result<()>where
P0: Param<IDirectManipulationContent>,
pub unsafe fn SetViewportOptions( &self, options: DIRECTMANIPULATION_VIEWPORT_OPTIONS, ) -> Result<()>
pub unsafe fn AddConfiguration( &self, configuration: DIRECTMANIPULATION_CONFIGURATION, ) -> Result<()>
pub unsafe fn RemoveConfiguration( &self, configuration: DIRECTMANIPULATION_CONFIGURATION, ) -> Result<()>
pub unsafe fn ActivateConfiguration( &self, configuration: DIRECTMANIPULATION_CONFIGURATION, ) -> Result<()>
pub unsafe fn SetManualGesture( &self, configuration: DIRECTMANIPULATION_GESTURE_CONFIGURATION, ) -> Result<()>
pub unsafe fn SetChaining( &self, enabledtypes: DIRECTMANIPULATION_MOTION_TYPES, ) -> Result<()>
pub unsafe fn AddEventHandler<P0, P1>(
&self,
window: P0,
eventhandler: P1,
) -> Result<u32>where
P0: Param<HWND>,
P1: Param<IDirectManipulationViewportEventHandler>,
pub unsafe fn RemoveEventHandler(&self, cookie: u32) -> Result<()>
pub unsafe fn SetInputMode( &self, mode: DIRECTMANIPULATION_INPUT_MODE, ) -> Result<()>
pub unsafe fn SetUpdateMode( &self, mode: DIRECTMANIPULATION_INPUT_MODE, ) -> Result<()>
pub unsafe fn Stop(&self) -> Result<()>
pub unsafe fn Abandon(&self) -> Result<()>
Trait Implementations§
§impl CanInto<IDirectManipulationViewport> for IDirectManipulationViewport2
impl CanInto<IDirectManipulationViewport> for IDirectManipulationViewport2
§impl CanInto<IUnknown> for IDirectManipulationViewport
impl CanInto<IUnknown> for IDirectManipulationViewport
§impl Clone for IDirectManipulationViewport
impl Clone for IDirectManipulationViewport
§fn clone(&self) -> IDirectManipulationViewport
fn clone(&self) -> IDirectManipulationViewport
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 IDirectManipulationViewport
impl Debug for IDirectManipulationViewport
§impl Deref for IDirectManipulationViewport
impl Deref for IDirectManipulationViewport
§impl From<&IDirectManipulationViewport> for &IUnknown
impl From<&IDirectManipulationViewport> for &IUnknown
§fn from(value: &IDirectManipulationViewport) -> Self
fn from(value: &IDirectManipulationViewport) -> Self
Converts to this type from the input type.
§impl From<&IDirectManipulationViewport2> for &IDirectManipulationViewport
impl From<&IDirectManipulationViewport2> for &IDirectManipulationViewport
§fn from(value: &IDirectManipulationViewport2) -> Self
fn from(value: &IDirectManipulationViewport2) -> Self
Converts to this type from the input type.
§impl From<IDirectManipulationViewport> for IUnknown
impl From<IDirectManipulationViewport> for IUnknown
§fn from(value: IDirectManipulationViewport) -> Self
fn from(value: IDirectManipulationViewport) -> Self
Converts to this type from the input type.
§impl From<IDirectManipulationViewport2> for IDirectManipulationViewport
impl From<IDirectManipulationViewport2> for IDirectManipulationViewport
§fn from(value: IDirectManipulationViewport2) -> Self
fn from(value: IDirectManipulationViewport2) -> Self
Converts to this type from the input type.
§impl Interface for IDirectManipulationViewport
impl Interface for IDirectManipulationViewport
§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 IDirectManipulationViewport
impl PartialEq for IDirectManipulationViewport
§fn eq(&self, other: &IDirectManipulationViewport) -> bool
fn eq(&self, other: &IDirectManipulationViewport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDirectManipulationViewport
impl StructuralPartialEq for IDirectManipulationViewport
Auto Trait Implementations§
impl Freeze for IDirectManipulationViewport
impl RefUnwindSafe for IDirectManipulationViewport
impl !Send for IDirectManipulationViewport
impl !Sync for IDirectManipulationViewport
impl Unpin for IDirectManipulationViewport
impl UnwindSafe for IDirectManipulationViewport
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
)