ホーム › Graphics.DirectManipulation › IDirectManipulationPrimaryContent
IDirectManipulationPrimaryContent
COMメソッド 9
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetSnapInterval(DIRECTMANIPULATION_MOTION_TYPES motion, FLOAT interval, FLOAT offset)
| motion | DIRECTMANIPULATION_MOTION_TYPES | in | スナップを適用する動作種別を示す DIRECTMANIPULATION_MOTION_TYPES フラグ。 |
| interval | FLOAT | in | スナップ点を配置する間隔をコンテンツ座標で指定する。 |
| offset | FLOAT | in | 最初のスナップ点の基準位置からのオフセットを指定する。 |
vtbl 4 HRESULT SetSnapPoints(DIRECTMANIPULATION_MOTION_TYPES motion, FLOAT* points, DWORD pointCount)
| motion | DIRECTMANIPULATION_MOTION_TYPES | in | スナップを適用する動作種別を示す DIRECTMANIPULATION_MOTION_TYPES フラグ。 |
| points | FLOAT* | inoptional | スナップ点の座標を列挙したFLOAT配列の先頭ポインタ。 |
| pointCount | DWORD | in | 配列に含まれるスナップ点の個数を指定する。 |
vtbl 5 HRESULT SetSnapType(DIRECTMANIPULATION_MOTION_TYPES motion, DIRECTMANIPULATION_SNAPPOINT_TYPE type)
| motion | DIRECTMANIPULATION_MOTION_TYPES | in | スナップを適用する動作種別を示す DIRECTMANIPULATION_MOTION_TYPES フラグ。 |
| type | DIRECTMANIPULATION_SNAPPOINT_TYPE | in | スナップ挙動の種類を示す DIRECTMANIPULATION_SNAPPOINT_TYPE 値。 |
vtbl 6 HRESULT SetSnapCoordinate(DIRECTMANIPULATION_MOTION_TYPES motion, DIRECTMANIPULATION_SNAPPOINT_COORDINATE coordinate, FLOAT origin)
| motion | DIRECTMANIPULATION_MOTION_TYPES | in | スナップを適用する動作種別を示す DIRECTMANIPULATION_MOTION_TYPES フラグ。 |
| coordinate | DIRECTMANIPULATION_SNAPPOINT_COORDINATE | in | スナップ座標の基準を示す DIRECTMANIPULATION_SNAPPOINT_COORDINATE 値。 |
| origin | FLOAT | in | スナップ座標系の原点位置を指定する。 |
| zoomMinimum | FLOAT | in | 許容する最小ズーム倍率を指定する。 |
| zoomMaximum | FLOAT | in | 許容する最大ズーム倍率を指定する。 |
vtbl 8 HRESULT SetHorizontalAlignment(DIRECTMANIPULATION_HORIZONTALALIGNMENT alignment)
| alignment | DIRECTMANIPULATION_HORIZONTALALIGNMENT | in | コンテンツの水平方向の配置を示す DIRECTMANIPULATION_HORIZONTALALIGNMENT 値。 |
vtbl 9 HRESULT SetVerticalAlignment(DIRECTMANIPULATION_VERTICALALIGNMENT alignment)
| alignment | DIRECTMANIPULATION_VERTICALALIGNMENT | in | コンテンツの垂直方向の配置を示す DIRECTMANIPULATION_VERTICALALIGNMENT 値。 |
| matrix | FLOAT* | out | 慣性運動終了時に予測される変換行列を受け取るFLOAT配列ポインタ。 |
| pointCount | DWORD | in | 行列配列の要素数を指定する。通常は6を指定する。 |
| centerX | FLOAT* | out | コンテンツの現在の中心点X座標を受け取るFLOAT出力ポインタ。 |
| centerY | FLOAT* | out | コンテンツの現在の中心点Y座標を受け取るFLOAT出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDirectManipulationPrimaryContent "{C12851E4-1698-4625-B9B1-7CA3EC18630B}" #usecom global IDirectManipulationPrimaryContent IID_IDirectManipulationPrimaryContent "{}" #comfunc global IDirectManipulationPrimaryContent_SetSnapInterval 3 int,float,float #comfunc global IDirectManipulationPrimaryContent_SetSnapPoints 4 int,var,int #comfunc global IDirectManipulationPrimaryContent_SetSnapType 5 int,int #comfunc global IDirectManipulationPrimaryContent_SetSnapCoordinate 6 int,int,float #comfunc global IDirectManipulationPrimaryContent_SetZoomBoundaries 7 float,float #comfunc global IDirectManipulationPrimaryContent_SetHorizontalAlignment 8 int #comfunc global IDirectManipulationPrimaryContent_SetVerticalAlignment 9 int #comfunc global IDirectManipulationPrimaryContent_GetInertiaEndTransform 10 var,int #comfunc global IDirectManipulationPrimaryContent_GetCenterPoint 11 var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDirectManipulationPrimaryContent "{C12851E4-1698-4625-B9B1-7CA3EC18630B}" #usecom global IDirectManipulationPrimaryContent IID_IDirectManipulationPrimaryContent "{}" #comfunc global IDirectManipulationPrimaryContent_SetSnapInterval 3 int,float,float #comfunc global IDirectManipulationPrimaryContent_SetSnapPoints 4 int,sptr,int #comfunc global IDirectManipulationPrimaryContent_SetSnapType 5 int,int #comfunc global IDirectManipulationPrimaryContent_SetSnapCoordinate 6 int,int,float #comfunc global IDirectManipulationPrimaryContent_SetZoomBoundaries 7 float,float #comfunc global IDirectManipulationPrimaryContent_SetHorizontalAlignment 8 int #comfunc global IDirectManipulationPrimaryContent_SetVerticalAlignment 9 int #comfunc global IDirectManipulationPrimaryContent_GetInertiaEndTransform 10 sptr,int #comfunc global IDirectManipulationPrimaryContent_GetCenterPoint 11 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。