ホーム › UI.Input.Touch › _IManipulationEvents
_IManipulationEvents
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| x | FLOAT | in | 操作が開始された位置の X 座標である。 |
| y | FLOAT | in | 操作が開始された位置の Y 座標である。 |
vtbl 4 HRESULT ManipulationDelta(FLOAT x, FLOAT y, FLOAT translationDeltaX, FLOAT translationDeltaY, FLOAT scaleDelta, FLOAT expansionDelta, FLOAT rotationDelta, FLOAT cumulativeTranslationX, FLOAT cumulativeTranslationY, FLOAT cumulativeScale, FLOAT cumulativeExpansion, FLOAT cumulativeRotation)
| x | FLOAT | in | 現在の操作位置の X 座標である。 |
| y | FLOAT | in | 現在の操作位置の Y 座標である。 |
| translationDeltaX | FLOAT | in | 前回からの X 方向の移動量である。 |
| translationDeltaY | FLOAT | in | 前回からの Y 方向の移動量である。 |
| scaleDelta | FLOAT | in | 前回からの拡大縮小倍率の変化量である。 |
| expansionDelta | FLOAT | in | 前回からの拡張量(半径方向)の変化量である。 |
| rotationDelta | FLOAT | in | 前回からの回転角の変化量である。 |
| cumulativeTranslationX | FLOAT | in | 操作開始からの X 方向の累積移動量である。 |
| cumulativeTranslationY | FLOAT | in | 操作開始からの Y 方向の累積移動量である。 |
| cumulativeScale | FLOAT | in | 操作開始からの累積拡大縮小倍率である。 |
| cumulativeExpansion | FLOAT | in | 操作開始からの累積拡張量である。 |
| cumulativeRotation | FLOAT | in | 操作開始からの累積回転角である。 |
vtbl 5 HRESULT ManipulationCompleted(FLOAT x, FLOAT y, FLOAT cumulativeTranslationX, FLOAT cumulativeTranslationY, FLOAT cumulativeScale, FLOAT cumulativeExpansion, FLOAT cumulativeRotation)
| x | FLOAT | in | 操作が完了した位置の X 座標である。 |
| y | FLOAT | in | 操作が完了した位置の Y 座標である。 |
| cumulativeTranslationX | FLOAT | in | 操作開始からの X 方向の累積移動量である。 |
| cumulativeTranslationY | FLOAT | in | 操作開始からの Y 方向の累積移動量である。 |
| cumulativeScale | FLOAT | in | 操作開始からの累積拡大縮小倍率である。 |
| cumulativeExpansion | FLOAT | in | 操作開始からの累積拡張量である。 |
| cumulativeRotation | FLOAT | in | 操作開始からの累積回転角である。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID__IManipulationEvents "{4F62C8DA-9C53-4B22-93DF-927A862BBB03}"
#usecom global _IManipulationEvents IID__IManipulationEvents "{}"
#comfunc global _IManipulationEvents_ManipulationStarted 3 float,float
#comfunc global _IManipulationEvents_ManipulationDelta 4 float,float,float,float,float,float,float,float,float,float,float,float
#comfunc global _IManipulationEvents_ManipulationCompleted 5 float,float,float,float,float,float,float
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。