ホーム › UI.Animation › IUIAnimationManager2
IUIAnimationManager2
COMメソッド 21
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT CreateAnimationVectorVariable(DOUBLE* initialValue, DWORD cDimension, IUIAnimationVariable2** variable)
| initialValue | DOUBLE* | in | 各次元の初期値を格納した DOUBLE 配列へのポインタである。要素数は cDimension と一致させる。 |
| cDimension | DWORD | in | ベクトル変数の次元数を指定する。 |
| variable | IUIAnimationVariable2** | out | 生成されたアニメーションベクトル変数オブジェクトを受け取るポインタである。 |
vtbl 4 HRESULT CreateAnimationVariable(DOUBLE initialValue, IUIAnimationVariable2** variable)
| initialValue | DOUBLE | in | アニメーション変数の初期値を指定する。 |
| variable | IUIAnimationVariable2** | out | 生成されたアニメーション変数オブジェクトを受け取るポインタである。 |
vtbl 5 HRESULT ScheduleTransition(IUIAnimationVariable2* variable, IUIAnimationTransition2* transition, DOUBLE timeNow)
| variable | IUIAnimationVariable2* | in | 遷移を適用する対象のアニメーション変数である。 |
| transition | IUIAnimationTransition2* | in | 変数に適用する遷移オブジェクトである。 |
| timeNow | DOUBLE | in | スケジュールの基準となる現在時刻(秒)を指定する。 |
vtbl 6 HRESULT CreateStoryboard(IUIAnimationStoryboard2** storyboard)
| storyboard | IUIAnimationStoryboard2** | out | 生成されたストーリーボードオブジェクトを受け取るポインタである。 |
| completionDeadline | DOUBLE | in | すべてのストーリーボードを完了させるまでの最大許容時間(秒)を指定する。 |
vtbl 8 HRESULT AbandonAllStoryboards()
vtbl 9 HRESULT Update(DOUBLE timeNow, UI_ANIMATION_UPDATE_RESULT* updateResult)
| timeNow | DOUBLE | in | 更新の基準となる現在時刻(秒)を指定する。 |
| updateResult | UI_ANIMATION_UPDATE_RESULT* | outoptional | 今回の更新で変数値が変化したかどうかを示す結果を受け取るポインタである。 |
vtbl 10 HRESULT GetVariableFromTag(IUnknown* object, DWORD id, IUIAnimationVariable2** variable)
| object | IUnknown* | inoptional | タグのオブジェクト部分を指定する。NULL を指定可能である。 |
| id | DWORD | in | タグの識別子部分を指定する。 |
| variable | IUIAnimationVariable2** | out | 指定したタグに一致するアニメーション変数を受け取るポインタである。 |
vtbl 11 HRESULT GetStoryboardFromTag(IUnknown* object, DWORD id, IUIAnimationStoryboard2** storyboard)
| object | IUnknown* | inoptional | タグのオブジェクト部分を指定する。NULL を指定可能である。 |
| id | DWORD | in | タグの識別子部分を指定する。 |
| storyboard | IUIAnimationStoryboard2** | out | 指定したタグに一致するストーリーボードを受け取るポインタである。 |
| seconds | DOUBLE* | out | 次のアニメーションイベントが発生するまでの推定時間(秒)を受け取るポインタである。 |
vtbl 13 HRESULT GetStatus(UI_ANIMATION_MANAGER_STATUS* status)
| status | UI_ANIMATION_MANAGER_STATUS* | out | アニメーションマネージャーの現在の状態を受け取るポインタである。 |
vtbl 14 HRESULT SetAnimationMode(UI_ANIMATION_MODE mode)
| mode | UI_ANIMATION_MODE | in | アニメーションを有効にするか無効にするかを示すモードを指定する。 |
vtbl 15 HRESULT Pause()
vtbl 16 HRESULT Resume()
vtbl 17 HRESULT SetManagerEventHandler(IUIAnimationManagerEventHandler2* handler, BOOL fRegisterForNextAnimationEvent)
| handler | IUIAnimationManagerEventHandler2* | inoptional | マネージャー状態変化を受け取るイベントハンドラーを指定する。NULL を指定すると登録を解除する。 |
| fRegisterForNextAnimationEvent | BOOL | in | 次のアニメーションイベントに対してハンドラーを登録するかどうかを指定する。 |
vtbl 18 HRESULT SetCancelPriorityComparison(IUIAnimationPriorityComparison2* comparison)
| comparison | IUIAnimationPriorityComparison2* | inoptional | キャンセル時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。 |
vtbl 19 HRESULT SetTrimPriorityComparison(IUIAnimationPriorityComparison2* comparison)
| comparison | IUIAnimationPriorityComparison2* | inoptional | トリム時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。 |
vtbl 20 HRESULT SetCompressPriorityComparison(IUIAnimationPriorityComparison2* comparison)
| comparison | IUIAnimationPriorityComparison2* | inoptional | 圧縮時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。 |
vtbl 21 HRESULT SetConcludePriorityComparison(IUIAnimationPriorityComparison2* comparison)
| comparison | IUIAnimationPriorityComparison2* | inoptional | 終結時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。 |
| delay | DOUBLE | in | ストーリーボードに対して既定で許容される最長の遅延時間(秒)を指定する。 |
vtbl 23 HRESULT Shutdown()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IUIAnimationManager2 "{D8B6F7D4-4109-4D3F-ACEE-879926968CB1}" #usecom global IUIAnimationManager2 IID_IUIAnimationManager2 "{D25D8842-8884-4A4A-B321-091314379BDD}" #comfunc global IUIAnimationManager2_CreateAnimationVectorVariable 3 var,int,sptr #comfunc global IUIAnimationManager2_CreateAnimationVariable 4 double,sptr #comfunc global IUIAnimationManager2_ScheduleTransition 5 sptr,sptr,double #comfunc global IUIAnimationManager2_CreateStoryboard 6 sptr #comfunc global IUIAnimationManager2_FinishAllStoryboards 7 double #comfunc global IUIAnimationManager2_AbandonAllStoryboards 8 #comfunc global IUIAnimationManager2_Update 9 double,var #comfunc global IUIAnimationManager2_GetVariableFromTag 10 sptr,int,sptr #comfunc global IUIAnimationManager2_GetStoryboardFromTag 11 sptr,int,sptr #comfunc global IUIAnimationManager2_EstimateNextEventTime 12 var #comfunc global IUIAnimationManager2_GetStatus 13 var #comfunc global IUIAnimationManager2_SetAnimationMode 14 int #comfunc global IUIAnimationManager2_Pause 15 #comfunc global IUIAnimationManager2_Resume 16 #comfunc global IUIAnimationManager2_SetManagerEventHandler 17 sptr,int #comfunc global IUIAnimationManager2_SetCancelPriorityComparison 18 sptr #comfunc global IUIAnimationManager2_SetTrimPriorityComparison 19 sptr #comfunc global IUIAnimationManager2_SetCompressPriorityComparison 20 sptr #comfunc global IUIAnimationManager2_SetConcludePriorityComparison 21 sptr #comfunc global IUIAnimationManager2_SetDefaultLongestAcceptableDelay 22 double #comfunc global IUIAnimationManager2_Shutdown 23 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IUIAnimationManager2 "{D8B6F7D4-4109-4D3F-ACEE-879926968CB1}" #usecom global IUIAnimationManager2 IID_IUIAnimationManager2 "{D25D8842-8884-4A4A-B321-091314379BDD}" #comfunc global IUIAnimationManager2_CreateAnimationVectorVariable 3 sptr,int,sptr #comfunc global IUIAnimationManager2_CreateAnimationVariable 4 double,sptr #comfunc global IUIAnimationManager2_ScheduleTransition 5 sptr,sptr,double #comfunc global IUIAnimationManager2_CreateStoryboard 6 sptr #comfunc global IUIAnimationManager2_FinishAllStoryboards 7 double #comfunc global IUIAnimationManager2_AbandonAllStoryboards 8 #comfunc global IUIAnimationManager2_Update 9 double,sptr #comfunc global IUIAnimationManager2_GetVariableFromTag 10 sptr,int,sptr #comfunc global IUIAnimationManager2_GetStoryboardFromTag 11 sptr,int,sptr #comfunc global IUIAnimationManager2_EstimateNextEventTime 12 sptr #comfunc global IUIAnimationManager2_GetStatus 13 sptr #comfunc global IUIAnimationManager2_SetAnimationMode 14 int #comfunc global IUIAnimationManager2_Pause 15 #comfunc global IUIAnimationManager2_Resume 16 #comfunc global IUIAnimationManager2_SetManagerEventHandler 17 sptr,int #comfunc global IUIAnimationManager2_SetCancelPriorityComparison 18 sptr #comfunc global IUIAnimationManager2_SetTrimPriorityComparison 19 sptr #comfunc global IUIAnimationManager2_SetCompressPriorityComparison 20 sptr #comfunc global IUIAnimationManager2_SetConcludePriorityComparison 21 sptr #comfunc global IUIAnimationManager2_SetDefaultLongestAcceptableDelay 22 double #comfunc global IUIAnimationManager2_Shutdown 23 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。