DIRECTMANIPULATION_SNAPPOINT_COORDINATE enumeration

Defines the coordinate system for a collection of snap points.

Syntax


typedef enum DIRECTMANIPULATION_SNAPPOINT_COORDINATE { 
  DIRECTMANIPULATION_COORDINATE_BOUNDARY  = 0x00,
  DIRECTMANIPULATION_COORDINATE_ORIGIN    = 0x01,
  DIRECTMANIPULATION_COORDINATE_MIRRORED  = 0x10
} DIRECTMANIPULATION_SNAPPOINT_COORDINATE;

Constants

DIRECTMANIPULATION_COORDINATE_BOUNDARY

Default.

Snap points are specified relative to the top and left boundaries of the content unless DIRECTMANIPULATION_COORDINATE_MIRRORED is also specified, in which case they are relative to the bottom and right boundaries of the content. For zoom, the boundary is 1.0f.

DIRECTMANIPULATION_COORDINATE_ORIGIN

Snap points are specified relative to the origin of the viewport.

DIRECTMANIPULATION_COORDINATE_MIRRORED

Snap points are interpreted as specified in the negative direction of the origin. The origin is shifted to the bottom and right of the viewport or content. Cannot be set for zoom.

Remarks

If DIRECTMANIPULATION_COORDINATE_ORIGIN and DIRECTMANIPULATION_COORDINATE_MIRRORED are both specified, the snap points are interpreted as specified from the bottom and right boundaries of the content (the size of the content - the size of the viewport). This is intended for RTL reading scenarios where content is normally specified and rendered from right-to-left or bottom-to-top.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Directmanipulation.h

IDL

DirectManipulation.idl

See also

Direct Manipulation Enumerations
SetSnapCoordinate

 

 

Community Additions

ADD
Show: