pub trait IDirectManipulationViewport_Impl: Sized {
Show 28 methods
// Required methods
fn Enable(&self) -> Result<()>;
fn Disable(&self) -> Result<()>;
fn SetContact(&self, pointerid: u32) -> Result<()>;
fn ReleaseContact(&self, pointerid: u32) -> Result<()>;
fn ReleaseAllContacts(&self) -> Result<()>;
fn GetStatus(&self) -> Result<DIRECTMANIPULATION_STATUS>;
fn GetTag(
&self,
riid: *const GUID,
object: *mut *mut c_void,
id: *mut u32,
) -> Result<()>;
fn SetTag(&self, object: Option<&IUnknown>, id: u32) -> Result<()>;
fn GetViewportRect(&self) -> Result<RECT>;
fn SetViewportRect(&self, viewport: *const RECT) -> Result<()>;
fn ZoomToRect(
&self,
left: f32,
top: f32,
right: f32,
bottom: f32,
animate: BOOL,
) -> Result<()>;
fn SetViewportTransform(
&self,
matrix: *const f32,
pointcount: u32,
) -> Result<()>;
fn SyncDisplayTransform(
&self,
matrix: *const f32,
pointcount: u32,
) -> Result<()>;
fn GetPrimaryContent(
&self,
riid: *const GUID,
object: *mut *mut c_void,
) -> Result<()>;
fn AddContent(
&self,
content: Option<&IDirectManipulationContent>,
) -> Result<()>;
fn RemoveContent(
&self,
content: Option<&IDirectManipulationContent>,
) -> Result<()>;
fn SetViewportOptions(
&self,
options: DIRECTMANIPULATION_VIEWPORT_OPTIONS,
) -> Result<()>;
fn AddConfiguration(
&self,
configuration: DIRECTMANIPULATION_CONFIGURATION,
) -> Result<()>;
fn RemoveConfiguration(
&self,
configuration: DIRECTMANIPULATION_CONFIGURATION,
) -> Result<()>;
fn ActivateConfiguration(
&self,
configuration: DIRECTMANIPULATION_CONFIGURATION,
) -> Result<()>;
fn SetManualGesture(
&self,
configuration: DIRECTMANIPULATION_GESTURE_CONFIGURATION,
) -> Result<()>;
fn SetChaining(
&self,
enabledtypes: DIRECTMANIPULATION_MOTION_TYPES,
) -> Result<()>;
fn AddEventHandler(
&self,
window: HWND,
eventhandler: Option<&IDirectManipulationViewportEventHandler>,
) -> Result<u32>;
fn RemoveEventHandler(&self, cookie: u32) -> Result<()>;
fn SetInputMode(&self, mode: DIRECTMANIPULATION_INPUT_MODE) -> Result<()>;
fn SetUpdateMode(&self, mode: DIRECTMANIPULATION_INPUT_MODE) -> Result<()>;
fn Stop(&self) -> Result<()>;
fn Abandon(&self) -> Result<()>;
}
Required Methods§
fn Enable(&self) -> Result<()>
fn Disable(&self) -> Result<()>
fn SetContact(&self, pointerid: u32) -> Result<()>
fn ReleaseContact(&self, pointerid: u32) -> Result<()>
fn ReleaseAllContacts(&self) -> Result<()>
fn GetStatus(&self) -> Result<DIRECTMANIPULATION_STATUS>
fn GetTag( &self, riid: *const GUID, object: *mut *mut c_void, id: *mut u32, ) -> Result<()>
fn SetTag(&self, object: Option<&IUnknown>, id: u32) -> Result<()>
fn GetViewportRect(&self) -> Result<RECT>
fn SetViewportRect(&self, viewport: *const RECT) -> Result<()>
fn ZoomToRect( &self, left: f32, top: f32, right: f32, bottom: f32, animate: BOOL, ) -> Result<()>
fn SetViewportTransform( &self, matrix: *const f32, pointcount: u32, ) -> Result<()>
fn SyncDisplayTransform( &self, matrix: *const f32, pointcount: u32, ) -> Result<()>
fn GetPrimaryContent( &self, riid: *const GUID, object: *mut *mut c_void, ) -> Result<()>
fn AddContent(&self, content: Option<&IDirectManipulationContent>) -> Result<()>
fn RemoveContent( &self, content: Option<&IDirectManipulationContent>, ) -> Result<()>
fn SetViewportOptions( &self, options: DIRECTMANIPULATION_VIEWPORT_OPTIONS, ) -> Result<()>
fn AddConfiguration( &self, configuration: DIRECTMANIPULATION_CONFIGURATION, ) -> Result<()>
fn RemoveConfiguration( &self, configuration: DIRECTMANIPULATION_CONFIGURATION, ) -> Result<()>
fn ActivateConfiguration( &self, configuration: DIRECTMANIPULATION_CONFIGURATION, ) -> Result<()>
fn SetManualGesture( &self, configuration: DIRECTMANIPULATION_GESTURE_CONFIGURATION, ) -> Result<()>
fn SetChaining( &self, enabledtypes: DIRECTMANIPULATION_MOTION_TYPES, ) -> Result<()>
fn AddEventHandler( &self, window: HWND, eventhandler: Option<&IDirectManipulationViewportEventHandler>, ) -> Result<u32>
fn RemoveEventHandler(&self, cookie: u32) -> Result<()>
fn SetInputMode(&self, mode: DIRECTMANIPULATION_INPUT_MODE) -> Result<()>
fn SetUpdateMode(&self, mode: DIRECTMANIPULATION_INPUT_MODE) -> Result<()>
fn Stop(&self) -> Result<()>
fn Abandon(&self) -> Result<()>
Object Safety§
This trait is not object safe.