ホーム › UI.TabletPC › IInkPicture
IInkPicture
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 59
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| CurrentWindow | INT_PTR* | out | インク ピクチャ コントロールのウィンドウ ハンドルを受け取るポインタである。 |
vtbl 8 HRESULT get_DefaultDrawingAttributes(IInkDrawingAttributes** CurrentAttributes)
| CurrentAttributes | IInkDrawingAttributes** | out | 新しいストロークに適用される既定の描画属性を受け取るポインタである。 |
vtbl 9 HRESULT putref_DefaultDrawingAttributes(IInkDrawingAttributes* NewAttributes)
| NewAttributes | IInkDrawingAttributes* | inoptional | 新しいストロークに適用する既定の描画属性へのポインタである。 |
vtbl 10 HRESULT get_Renderer(IInkRenderer** CurrentInkRenderer)
| CurrentInkRenderer | IInkRenderer** | out | 現在使用されているインク レンダラを受け取るポインタである。 |
vtbl 11 HRESULT putref_Renderer(IInkRenderer* NewInkRenderer)
| NewInkRenderer | IInkRenderer* | inoptional | 使用するインク レンダラへのポインタである。 |
| Ink | IInkDisp** | out | このコントロールに関連付けられたインク オブジェクトを受け取るポインタである。 |
| NewInk | IInkDisp* | inoptional | このコントロールに関連付けるインク オブジェクトへのポインタである。 |
vtbl 14 HRESULT get_AutoRedraw(VARIANT_BOOL* AutoRedraw)
| AutoRedraw | VARIANT_BOOL* | out | ウィンドウの再描画時にインクを自動再描画するかどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 15 HRESULT put_AutoRedraw(VARIANT_BOOL AutoRedraw)
| AutoRedraw | VARIANT_BOOL | in | ウィンドウの再描画時にインクを自動再描画するかどうかを指定する VARIANT_BOOL である。 |
vtbl 16 HRESULT get_CollectingInk(VARIANT_BOOL* Collecting)
| Collecting | VARIANT_BOOL* | out | 現在インクを収集中(ストローク描画中)かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 17 HRESULT get_CollectionMode(InkCollectionMode* Mode)
| Mode | InkCollectionMode* | out | 現在の収集モード(インク・ジェスチャ・両方)を受け取る InkCollectionMode へのポインタである。 |
vtbl 18 HRESULT put_CollectionMode(InkCollectionMode Mode)
| Mode | InkCollectionMode | in | 設定する収集モード(インク・ジェスチャ・両方)を指定する InkCollectionMode 値である。 |
vtbl 19 HRESULT get_DynamicRendering(VARIANT_BOOL* Enabled)
| Enabled | VARIANT_BOOL* | out | 描画中にインクをリアルタイム表示する動的レンダリングが有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 20 HRESULT put_DynamicRendering(VARIANT_BOOL Enabled)
| Enabled | VARIANT_BOOL | in | 描画中の動的レンダリングを有効にするかどうかを指定する VARIANT_BOOL である。 |
| PacketGuids | VARIANT* | out | 収集するパケットに含めたいプロパティの GUID 配列を受け取る VARIANT へのポインタである。 |
| PacketGuids | VARIANT | in | 収集するパケットに含めたいプロパティの GUID 配列を格納した VARIANT である。 |
vtbl 23 HRESULT get_MouseIcon(IPictureDisp** MouseIcon)
| MouseIcon | IPictureDisp** | out | マウス ポインタにカスタム アイコンとして使用される画像を受け取るポインタである。 |
vtbl 24 HRESULT put_MouseIcon(IPictureDisp* MouseIcon)
| MouseIcon | IPictureDisp* | inoptional | マウス ポインタとして使用するカスタム アイコン画像へのポインタである。 |
vtbl 25 HRESULT putref_MouseIcon(IPictureDisp* MouseIcon)
| MouseIcon | IPictureDisp* | inoptional | マウス ポインタとして使用するカスタム アイコン画像への参照ポインタである。 |
vtbl 26 HRESULT get_MousePointer(InkMousePointer* MousePointer)
| MousePointer | InkMousePointer* | out | 現在のマウス ポインタの種類を受け取る InkMousePointer へのポインタである。 |
vtbl 27 HRESULT put_MousePointer(InkMousePointer MousePointer)
| MousePointer | InkMousePointer | in | 設定するマウス ポインタの種類を指定する InkMousePointer 値である。 |
vtbl 28 HRESULT get_EditingMode(InkOverlayEditingMode* EditingMode)
| EditingMode | InkOverlayEditingMode* | out | 現在の編集モード(インク描画・削除・選択)を受け取る InkOverlayEditingMode へのポインタである。 |
vtbl 29 HRESULT put_EditingMode(InkOverlayEditingMode EditingMode)
| EditingMode | InkOverlayEditingMode | in | 設定する編集モード(インク描画・削除・選択)を指定する InkOverlayEditingMode 値である。 |
vtbl 30 HRESULT get_Selection(IInkStrokes** Selection)
| Selection | IInkStrokes** | out | 現在選択されているストロークのコレクションを受け取るポインタである。 |
vtbl 31 HRESULT put_Selection(IInkStrokes* Selection)
| Selection | IInkStrokes* | inoptional | 選択状態にするストローク コレクションへのポインタである。 |
vtbl 32 HRESULT get_EraserMode(InkOverlayEraserMode* EraserMode)
| EraserMode | InkOverlayEraserMode* | out | 現在の消しゴム モード(ストローク単位・ポイント単位)を受け取る InkOverlayEraserMode へのポインタである。 |
vtbl 33 HRESULT put_EraserMode(InkOverlayEraserMode EraserMode)
| EraserMode | InkOverlayEraserMode | in | 設定する消しゴム モード(ストローク単位・ポイント単位)を指定する InkOverlayEraserMode 値である。 |
| EraserWidth | INT* | out | 現在の消しゴムの幅(インク空間単位)を受け取るポインタである。 |
| newEraserWidth | INT | in | 設定する消しゴムの幅(インク空間単位)を指定する。 |
vtbl 36 HRESULT putref_Picture(IPictureDisp* pPicture)
| pPicture | IPictureDisp* | inoptional | コントロールの背景に表示する画像オブジェクトへの参照ポインタである。 |
vtbl 37 HRESULT put_Picture(IPictureDisp* pPicture)
| pPicture | IPictureDisp* | inoptional | コントロールの背景に表示する画像オブジェクトへのポインタである。 |
vtbl 38 HRESULT get_Picture(IPictureDisp** ppPicture)
| ppPicture | IPictureDisp** | out | コントロールの背景に表示されている画像オブジェクトを受け取るポインタである。 |
vtbl 39 HRESULT put_SizeMode(InkPictureSizeMode smNewSizeMode)
| smNewSizeMode | InkPictureSizeMode | in | 背景画像のサイズ調整方法(等倍・拡大縮小等)を指定する InkPictureSizeMode 値である。 |
vtbl 40 HRESULT get_SizeMode(InkPictureSizeMode* smSizeMode)
| smSizeMode | InkPictureSizeMode* | out | 現在の背景画像のサイズ調整方法を受け取る InkPictureSizeMode へのポインタである。 |
| newColor | DWORD | in | コントロールの背景色を RGB 値で指定する。 |
| pColor | DWORD* | out | 現在のコントロールの背景色を RGB 値として受け取るポインタである。 |
vtbl 43 HRESULT get_Cursors(IInkCursors** Cursors)
| Cursors | IInkCursors** | out | このコントロールで使用可能なカーソルのコレクションを受け取るポインタである。 |
| MarginX | INT* | out | 入力領域の水平方向のマージン(ピクセル)を受け取るポインタである。 |
| MarginX | INT | in | 入力領域の水平方向のマージン(ピクセル)を指定する。 |
| MarginY | INT* | out | 入力領域の垂直方向のマージン(ピクセル)を受け取るポインタである。 |
| MarginY | INT | in | 入力領域の垂直方向のマージン(ピクセル)を指定する。 |
vtbl 48 HRESULT get_Tablet(IInkTablet** SingleTablet)
| SingleTablet | IInkTablet** | out | 単一タブレット統合モードで使用されているタブレット オブジェクトを受け取るポインタである。 |
vtbl 49 HRESULT get_SupportHighContrastInk(VARIANT_BOOL* Support)
| Support | VARIANT_BOOL* | out | ハイ コントラスト モード時にインクを単色で表示する設定が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 50 HRESULT put_SupportHighContrastInk(VARIANT_BOOL Support)
| Support | VARIANT_BOOL | in | ハイ コントラスト モード時にインクを単色で表示するかどうかを指定する VARIANT_BOOL である。 |
vtbl 51 HRESULT get_SupportHighContrastSelectionUI(VARIANT_BOOL* Support)
| Support | VARIANT_BOOL* | out | ハイ コントラスト モード時に選択 UI を高コントラスト表示する設定が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 52 HRESULT put_SupportHighContrastSelectionUI(VARIANT_BOOL Support)
| Support | VARIANT_BOOL | in | ハイ コントラスト モード時に選択 UI を高コントラスト表示するかどうかを指定する VARIANT_BOOL である。 |
vtbl 53 HRESULT HitTestSelection(INT x, INT y, SelectionHitResult* SelArea)
| x | INT | in | ヒット テストを行う点の X 座標(ピクセル)を指定する。 |
| y | INT | in | ヒット テストを行う点の Y 座標(ピクセル)を指定する。 |
| SelArea | SelectionHitResult* | out | 指定した点が選択範囲のどの部分(ハンドル等)に当たるかを受け取る SelectionHitResult へのポインタである。 |
vtbl 54 HRESULT SetGestureStatus(InkApplicationGesture Gesture, VARIANT_BOOL Listen)
| Gesture | InkApplicationGesture | in | 対象とするアプリケーション ジェスチャを指定する InkApplicationGesture 値である。 |
| Listen | VARIANT_BOOL | in | 指定したジェスチャの認識を有効にするかどうかを指定する VARIANT_BOOL である。 |
vtbl 55 HRESULT GetGestureStatus(InkApplicationGesture Gesture, VARIANT_BOOL* Listening)
| Gesture | InkApplicationGesture | in | 状態を取得するアプリケーション ジェスチャを指定する InkApplicationGesture 値である。 |
| Listening | VARIANT_BOOL* | out | 指定したジェスチャの認識が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 56 HRESULT GetWindowInputRectangle(IInkRectangle** WindowInputRectangle)
| WindowInputRectangle | IInkRectangle** | inout | 現在のウィンドウ入力矩形を受け取るポインタである。 |
vtbl 57 HRESULT SetWindowInputRectangle(IInkRectangle* WindowInputRectangle)
| WindowInputRectangle | IInkRectangle* | inoptional | 設定するウィンドウ入力矩形へのポインタである。 |
vtbl 58 HRESULT SetAllTabletsMode(VARIANT_BOOL UseMouseForInput)
| UseMouseForInput | VARIANT_BOOL | in | マウスをインク入力に使用するかどうかを指定する VARIANT_BOOL である。 |
vtbl 59 HRESULT SetSingleTabletIntegratedMode(IInkTablet* Tablet)
| Tablet | IInkTablet* | inoptional | 単一タブレット統合モードで使用するタブレット オブジェクトへのポインタである。 |
vtbl 60 HRESULT GetEventInterest(InkCollectorEventInterest EventId, VARIANT_BOOL* Listen)
| EventId | InkCollectorEventInterest | in | 状態を取得する対象イベントを指定する InkCollectorEventInterest 値である。 |
| Listen | VARIANT_BOOL* | out | 指定したイベントの受信が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 61 HRESULT SetEventInterest(InkCollectorEventInterest EventId, VARIANT_BOOL Listen)
| EventId | InkCollectorEventInterest | in | 設定対象のイベントを指定する InkCollectorEventInterest 値である。 |
| Listen | VARIANT_BOOL | in | 指定したイベントの受信を有効にするかどうかを指定する VARIANT_BOOL である。 |
vtbl 62 HRESULT get_InkEnabled(VARIANT_BOOL* Collecting)
| Collecting | VARIANT_BOOL* | out | インクの収集が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 63 HRESULT put_InkEnabled(VARIANT_BOOL Collecting)
| Collecting | VARIANT_BOOL | in | インクの収集を有効にするかどうかを指定する VARIANT_BOOL である。 |
vtbl 64 HRESULT get_Enabled(VARIANT_BOOL* pbool)
| pbool | VARIANT_BOOL* | out | コントロール自体が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 65 HRESULT put_Enabled(VARIANT_BOOL vbool)
| vbool | VARIANT_BOOL | in | コントロール自体を有効にするかどうかを指定する VARIANT_BOOL である。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IInkPicture "{E85662E0-379A-40D7-9B5C-757D233F9923}" #usecom global IInkPicture IID_IInkPicture "{04A1E553-FE36-4FDE-865E-344194E69424}" #comfunc global IInkPicture_get_hWnd 7 var #comfunc global IInkPicture_get_DefaultDrawingAttributes 8 sptr #comfunc global IInkPicture_putref_DefaultDrawingAttributes 9 sptr #comfunc global IInkPicture_get_Renderer 10 sptr #comfunc global IInkPicture_putref_Renderer 11 sptr #comfunc global IInkPicture_get_Ink 12 sptr #comfunc global IInkPicture_putref_Ink 13 sptr #comfunc global IInkPicture_get_AutoRedraw 14 var #comfunc global IInkPicture_put_AutoRedraw 15 int #comfunc global IInkPicture_get_CollectingInk 16 var #comfunc global IInkPicture_get_CollectionMode 17 var #comfunc global IInkPicture_put_CollectionMode 18 int #comfunc global IInkPicture_get_DynamicRendering 19 var #comfunc global IInkPicture_put_DynamicRendering 20 int #comfunc global IInkPicture_get_DesiredPacketDescription 21 var #comfunc global IInkPicture_put_DesiredPacketDescription 22 int #comfunc global IInkPicture_get_MouseIcon 23 sptr #comfunc global IInkPicture_put_MouseIcon 24 sptr #comfunc global IInkPicture_putref_MouseIcon 25 sptr #comfunc global IInkPicture_get_MousePointer 26 var #comfunc global IInkPicture_put_MousePointer 27 int #comfunc global IInkPicture_get_EditingMode 28 var #comfunc global IInkPicture_put_EditingMode 29 int #comfunc global IInkPicture_get_Selection 30 sptr #comfunc global IInkPicture_put_Selection 31 sptr #comfunc global IInkPicture_get_EraserMode 32 var #comfunc global IInkPicture_put_EraserMode 33 int #comfunc global IInkPicture_get_EraserWidth 34 var #comfunc global IInkPicture_put_EraserWidth 35 int #comfunc global IInkPicture_putref_Picture 36 sptr #comfunc global IInkPicture_put_Picture 37 sptr #comfunc global IInkPicture_get_Picture 38 sptr #comfunc global IInkPicture_put_SizeMode 39 int #comfunc global IInkPicture_get_SizeMode 40 var #comfunc global IInkPicture_put_BackColor 41 int #comfunc global IInkPicture_get_BackColor 42 var #comfunc global IInkPicture_get_Cursors 43 sptr #comfunc global IInkPicture_get_MarginX 44 var #comfunc global IInkPicture_put_MarginX 45 int #comfunc global IInkPicture_get_MarginY 46 var #comfunc global IInkPicture_put_MarginY 47 int #comfunc global IInkPicture_get_Tablet 48 sptr #comfunc global IInkPicture_get_SupportHighContrastInk 49 var #comfunc global IInkPicture_put_SupportHighContrastInk 50 int #comfunc global IInkPicture_get_SupportHighContrastSelectionUI 51 var #comfunc global IInkPicture_put_SupportHighContrastSelectionUI 52 int #comfunc global IInkPicture_HitTestSelection 53 int,int,var #comfunc global IInkPicture_SetGestureStatus 54 int,int #comfunc global IInkPicture_GetGestureStatus 55 int,var #comfunc global IInkPicture_GetWindowInputRectangle 56 sptr #comfunc global IInkPicture_SetWindowInputRectangle 57 sptr #comfunc global IInkPicture_SetAllTabletsMode 58 int #comfunc global IInkPicture_SetSingleTabletIntegratedMode 59 sptr #comfunc global IInkPicture_GetEventInterest 60 int,var #comfunc global IInkPicture_SetEventInterest 61 int,int #comfunc global IInkPicture_get_InkEnabled 62 var #comfunc global IInkPicture_put_InkEnabled 63 int #comfunc global IInkPicture_get_Enabled 64 var #comfunc global IInkPicture_put_Enabled 65 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IInkPicture "{E85662E0-379A-40D7-9B5C-757D233F9923}" #usecom global IInkPicture IID_IInkPicture "{04A1E553-FE36-4FDE-865E-344194E69424}" #comfunc global IInkPicture_get_hWnd 7 sptr #comfunc global IInkPicture_get_DefaultDrawingAttributes 8 sptr #comfunc global IInkPicture_putref_DefaultDrawingAttributes 9 sptr #comfunc global IInkPicture_get_Renderer 10 sptr #comfunc global IInkPicture_putref_Renderer 11 sptr #comfunc global IInkPicture_get_Ink 12 sptr #comfunc global IInkPicture_putref_Ink 13 sptr #comfunc global IInkPicture_get_AutoRedraw 14 sptr #comfunc global IInkPicture_put_AutoRedraw 15 int #comfunc global IInkPicture_get_CollectingInk 16 sptr #comfunc global IInkPicture_get_CollectionMode 17 sptr #comfunc global IInkPicture_put_CollectionMode 18 int #comfunc global IInkPicture_get_DynamicRendering 19 sptr #comfunc global IInkPicture_put_DynamicRendering 20 int #comfunc global IInkPicture_get_DesiredPacketDescription 21 sptr #comfunc global IInkPicture_put_DesiredPacketDescription 22 int #comfunc global IInkPicture_get_MouseIcon 23 sptr #comfunc global IInkPicture_put_MouseIcon 24 sptr #comfunc global IInkPicture_putref_MouseIcon 25 sptr #comfunc global IInkPicture_get_MousePointer 26 sptr #comfunc global IInkPicture_put_MousePointer 27 int #comfunc global IInkPicture_get_EditingMode 28 sptr #comfunc global IInkPicture_put_EditingMode 29 int #comfunc global IInkPicture_get_Selection 30 sptr #comfunc global IInkPicture_put_Selection 31 sptr #comfunc global IInkPicture_get_EraserMode 32 sptr #comfunc global IInkPicture_put_EraserMode 33 int #comfunc global IInkPicture_get_EraserWidth 34 sptr #comfunc global IInkPicture_put_EraserWidth 35 int #comfunc global IInkPicture_putref_Picture 36 sptr #comfunc global IInkPicture_put_Picture 37 sptr #comfunc global IInkPicture_get_Picture 38 sptr #comfunc global IInkPicture_put_SizeMode 39 int #comfunc global IInkPicture_get_SizeMode 40 sptr #comfunc global IInkPicture_put_BackColor 41 int #comfunc global IInkPicture_get_BackColor 42 sptr #comfunc global IInkPicture_get_Cursors 43 sptr #comfunc global IInkPicture_get_MarginX 44 sptr #comfunc global IInkPicture_put_MarginX 45 int #comfunc global IInkPicture_get_MarginY 46 sptr #comfunc global IInkPicture_put_MarginY 47 int #comfunc global IInkPicture_get_Tablet 48 sptr #comfunc global IInkPicture_get_SupportHighContrastInk 49 sptr #comfunc global IInkPicture_put_SupportHighContrastInk 50 int #comfunc global IInkPicture_get_SupportHighContrastSelectionUI 51 sptr #comfunc global IInkPicture_put_SupportHighContrastSelectionUI 52 int #comfunc global IInkPicture_HitTestSelection 53 int,int,sptr #comfunc global IInkPicture_SetGestureStatus 54 int,int #comfunc global IInkPicture_GetGestureStatus 55 int,sptr #comfunc global IInkPicture_GetWindowInputRectangle 56 sptr #comfunc global IInkPicture_SetWindowInputRectangle 57 sptr #comfunc global IInkPicture_SetAllTabletsMode 58 int #comfunc global IInkPicture_SetSingleTabletIntegratedMode 59 sptr #comfunc global IInkPicture_GetEventInterest 60 int,sptr #comfunc global IInkPicture_SetEventInterest 61 int,int #comfunc global IInkPicture_get_InkEnabled 62 sptr #comfunc global IInkPicture_put_InkEnabled 63 int #comfunc global IInkPicture_get_Enabled 64 sptr #comfunc global IInkPicture_put_Enabled 65 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。