IDirectManipulationViewport interface

Defines a region within a window (referred to as a viewport) that is able to receive and process input from user interactions. The viewport contains content that moves in response to a user interaction.

When to implement

The system provides an implementation of IDirectManipulationViewport.

Members

The IDirectManipulationViewport interface inherits from the IUnknown interface. IDirectManipulationViewport also has these types of members:

Methods

The IDirectManipulationViewport interface has these methods.

MethodDescription
Abandon

Releases all resources that are used by the viewport and prepares it for destruction from memory.

ActivateConfiguration

Sets the configuration for input interaction.

AddConfiguration

Adds an interaction configuration for the viewport.

AddContent

Adds secondary content, such as a panning indicator, to a viewport.

AddEventHandler

Adds a new event handler to listen for viewport events.

Disable

Stops input processing by the viewport.

Enable

Starts or resumes input processing by the viewport.

GetPrimaryContent

Gets the primary content of a viewport that implements IDirectManipulationContent and IDirectManipulationPrimaryContent.

GetStatus

Gets the state of the viewport.

GetTag

Gets the tag value of a viewport.

GetViewportRect

Retrieves the rectangle for the viewport relative to the origin of the viewport coordinate system specified by SetViewportRect.

ReleaseAllContacts

Removes all contacts that are associated with the viewport. Inertia is started if the viewport supports inertia.

ReleaseContact

Removes a contact that is associated with a viewport.

RemoveConfiguration

Removes an interaction configuration for the viewport.

RemoveContent

Removes secondary content from a viewport.

RemoveEventHandler

Removes an existing event handler from the viewport.

SetChaining

Specifies the motion types supported in a viewport that can be chained to a parent viewport.

SetContact

Specifies an association between a contact and the viewport.

SetInputMode

Specifies if input is visible to the UI thread.

SetManualGesture

Sets which gestures are ignored by Direct Manipulation.

SetTag

Sets a viewport tag.

SetUpdateMode

Specifies whether a viewport updates content manually instead of during an input event.

SetViewportOptions

Sets how the viewport handles input and output.

SetViewportRect

Sets the bounding rectangle for the viewport, relative to the origin of the viewport coordinate system.

SetViewportTransform

Specifies the transform from the viewport coordinate system to the window client coordinate system.

Stop

Stops the manipulation and returns the viewport to a ready state.

SyncDisplayTransform

Specifies a display transform for the viewport, and synchronizes the output transform with the new value of the display transform.

ZoomToRect

Moves the viewport to a specific area of the primary content and specifies whether to animate the transition.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationViewport is defined as 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d

See also

Direct Manipulation Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft