Win32 API 日本語リファレンス
ホームUI.Animation › IUIAnimationManager2

IUIAnimationManager2

COM
IIDd8b6f7d4-4109-4d3f-acee-879926968cb1継承元IUnknown自前メソッド開始 vtbl3

メソッド 21

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT CreateAnimationVectorVariable(DOUBLE* initialValue, DWORD cDimension, IUIAnimationVariable2** variable)
initialValueDOUBLE*in各次元の初期値を格納した DOUBLE 配列へのポインタである。要素数は cDimension と一致させる。
cDimensionDWORDinベクトル変数の次元数を指定する。
variableIUIAnimationVariable2**out生成されたアニメーションベクトル変数オブジェクトを受け取るポインタである。
vtbl 4 HRESULT CreateAnimationVariable(DOUBLE initialValue, IUIAnimationVariable2** variable)
initialValueDOUBLEinアニメーション変数の初期値を指定する。
variableIUIAnimationVariable2**out生成されたアニメーション変数オブジェクトを受け取るポインタである。
vtbl 5 HRESULT ScheduleTransition(IUIAnimationVariable2* variable, IUIAnimationTransition2* transition, DOUBLE timeNow)
variableIUIAnimationVariable2*in遷移を適用する対象のアニメーション変数である。
transitionIUIAnimationTransition2*in変数に適用する遷移オブジェクトである。
timeNowDOUBLEinスケジュールの基準となる現在時刻(秒)を指定する。
vtbl 6 HRESULT CreateStoryboard(IUIAnimationStoryboard2** storyboard)
storyboardIUIAnimationStoryboard2**out生成されたストーリーボードオブジェクトを受け取るポインタである。
vtbl 7 HRESULT FinishAllStoryboards(DOUBLE completionDeadline)
completionDeadlineDOUBLEinすべてのストーリーボードを完了させるまでの最大許容時間(秒)を指定する。
vtbl 8 HRESULT AbandonAllStoryboards()
vtbl 9 HRESULT Update(DOUBLE timeNow, UI_ANIMATION_UPDATE_RESULT* updateResult)
timeNowDOUBLEin更新の基準となる現在時刻(秒)を指定する。
updateResultUI_ANIMATION_UPDATE_RESULT*outoptional今回の更新で変数値が変化したかどうかを示す結果を受け取るポインタである。
vtbl 10 HRESULT GetVariableFromTag(IUnknown* object, DWORD id, IUIAnimationVariable2** variable)
objectIUnknown*inoptionalタグのオブジェクト部分を指定する。NULL を指定可能である。
idDWORDinタグの識別子部分を指定する。
variableIUIAnimationVariable2**out指定したタグに一致するアニメーション変数を受け取るポインタである。
vtbl 11 HRESULT GetStoryboardFromTag(IUnknown* object, DWORD id, IUIAnimationStoryboard2** storyboard)
objectIUnknown*inoptionalタグのオブジェクト部分を指定する。NULL を指定可能である。
idDWORDinタグの識別子部分を指定する。
storyboardIUIAnimationStoryboard2**out指定したタグに一致するストーリーボードを受け取るポインタである。
vtbl 12 HRESULT EstimateNextEventTime(DOUBLE* seconds)
secondsDOUBLE*out次のアニメーションイベントが発生するまでの推定時間(秒)を受け取るポインタである。
vtbl 13 HRESULT GetStatus(UI_ANIMATION_MANAGER_STATUS* status)
statusUI_ANIMATION_MANAGER_STATUS*outアニメーションマネージャーの現在の状態を受け取るポインタである。
vtbl 14 HRESULT SetAnimationMode(UI_ANIMATION_MODE mode)
modeUI_ANIMATION_MODEinアニメーションを有効にするか無効にするかを示すモードを指定する。
vtbl 15 HRESULT Pause()
vtbl 16 HRESULT Resume()
vtbl 17 HRESULT SetManagerEventHandler(IUIAnimationManagerEventHandler2* handler, BOOL fRegisterForNextAnimationEvent)
handlerIUIAnimationManagerEventHandler2*inoptionalマネージャー状態変化を受け取るイベントハンドラーを指定する。NULL を指定すると登録を解除する。
fRegisterForNextAnimationEventBOOLin次のアニメーションイベントに対してハンドラーを登録するかどうかを指定する。
vtbl 18 HRESULT SetCancelPriorityComparison(IUIAnimationPriorityComparison2* comparison)
comparisonIUIAnimationPriorityComparison2*inoptionalキャンセル時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。
vtbl 19 HRESULT SetTrimPriorityComparison(IUIAnimationPriorityComparison2* comparison)
comparisonIUIAnimationPriorityComparison2*inoptionalトリム時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。
vtbl 20 HRESULT SetCompressPriorityComparison(IUIAnimationPriorityComparison2* comparison)
comparisonIUIAnimationPriorityComparison2*inoptional圧縮時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。
vtbl 21 HRESULT SetConcludePriorityComparison(IUIAnimationPriorityComparison2* comparison)
comparisonIUIAnimationPriorityComparison2*inoptional終結時の優先度比較に使用する比較オブジェクトを指定する。NULL を指定可能である。
vtbl 22 HRESULT SetDefaultLongestAcceptableDelay(DOUBLE delay)
delayDOUBLEinストーリーボードに対して既定で許容される最長の遅延時間(秒)を指定する。
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 指定が可能。