ホーム › UI.TabletPC › IInkOverlay
IInkOverlay
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 54
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| CurrentWindow | INT_PTR* | out | インク オーバーレイが関連付けられている現在のウィンドウ ハンドルを受け取るポインタである。 |
| NewWindow | INT_PTR | in | インク オーバーレイを関連付けるウィンドウ ハンドルを指定する。 |
vtbl 9 HRESULT get_Enabled(VARIANT_BOOL* Collecting)
| Collecting | VARIANT_BOOL* | out | インク オーバーレイが有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 10 HRESULT put_Enabled(VARIANT_BOOL Collecting)
| Collecting | VARIANT_BOOL | in | インク オーバーレイを有効にするかどうかを指定する VARIANT_BOOL である。 |
vtbl 11 HRESULT get_DefaultDrawingAttributes(IInkDrawingAttributes** CurrentAttributes)
| CurrentAttributes | IInkDrawingAttributes** | out | 新しいストロークに適用される既定の描画属性を受け取るポインタである。 |
vtbl 12 HRESULT putref_DefaultDrawingAttributes(IInkDrawingAttributes* NewAttributes)
| NewAttributes | IInkDrawingAttributes* | inoptional | 新しいストロークに適用する既定の描画属性へのポインタである。 |
vtbl 13 HRESULT get_Renderer(IInkRenderer** CurrentInkRenderer)
| CurrentInkRenderer | IInkRenderer** | out | 現在使用されているインク レンダラを受け取るポインタである。 |
vtbl 14 HRESULT putref_Renderer(IInkRenderer* NewInkRenderer)
| NewInkRenderer | IInkRenderer* | inoptional | 使用するインク レンダラへのポインタである。 |
| Ink | IInkDisp** | out | このオーバーレイに関連付けられたインク オブジェクトを受け取るポインタである。 |
| NewInk | IInkDisp* | inoptional | このオーバーレイに関連付けるインク オブジェクトへのポインタである。 |
vtbl 17 HRESULT get_AutoRedraw(VARIANT_BOOL* AutoRedraw)
| AutoRedraw | VARIANT_BOOL* | out | ウィンドウの再描画時にインクを自動再描画するかどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 18 HRESULT put_AutoRedraw(VARIANT_BOOL AutoRedraw)
| AutoRedraw | VARIANT_BOOL | in | ウィンドウの再描画時にインクを自動再描画するかどうかを指定する VARIANT_BOOL である。 |
vtbl 19 HRESULT get_CollectingInk(VARIANT_BOOL* Collecting)
| Collecting | VARIANT_BOOL* | out | 現在インクを収集中(ストローク描画中)かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 20 HRESULT get_CollectionMode(InkCollectionMode* Mode)
| Mode | InkCollectionMode* | out | 現在の収集モード(インク・ジェスチャ・両方)を受け取る InkCollectionMode へのポインタである。 |
vtbl 21 HRESULT put_CollectionMode(InkCollectionMode Mode)
| Mode | InkCollectionMode | in | 設定する収集モード(インク・ジェスチャ・両方)を指定する InkCollectionMode 値である。 |
vtbl 22 HRESULT get_DynamicRendering(VARIANT_BOOL* Enabled)
| Enabled | VARIANT_BOOL* | out | 描画中にインクをリアルタイム表示する動的レンダリングが有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 23 HRESULT put_DynamicRendering(VARIANT_BOOL Enabled)
| Enabled | VARIANT_BOOL | in | 描画中の動的レンダリングを有効にするかどうかを指定する VARIANT_BOOL である。 |
| PacketGuids | VARIANT* | out | 収集するパケットに含めたいプロパティの GUID 配列を受け取る VARIANT へのポインタである。 |
| PacketGuids | VARIANT | in | 収集するパケットに含めたいプロパティの GUID 配列を格納した VARIANT である。 |
vtbl 26 HRESULT get_MouseIcon(IPictureDisp** MouseIcon)
| MouseIcon | IPictureDisp** | out | マウス ポインタにカスタム アイコンとして使用される画像を受け取るポインタである。 |
vtbl 27 HRESULT put_MouseIcon(IPictureDisp* MouseIcon)
| MouseIcon | IPictureDisp* | inoptional | マウス ポインタとして使用するカスタム アイコン画像へのポインタである。 |
vtbl 28 HRESULT putref_MouseIcon(IPictureDisp* MouseIcon)
| MouseIcon | IPictureDisp* | inoptional | マウス ポインタとして使用するカスタム アイコン画像への参照ポインタである。 |
vtbl 29 HRESULT get_MousePointer(InkMousePointer* MousePointer)
| MousePointer | InkMousePointer* | out | 現在のマウス ポインタの種類を受け取る InkMousePointer へのポインタである。 |
vtbl 30 HRESULT put_MousePointer(InkMousePointer MousePointer)
| MousePointer | InkMousePointer | in | 設定するマウス ポインタの種類を指定する InkMousePointer 値である。 |
vtbl 31 HRESULT get_EditingMode(InkOverlayEditingMode* EditingMode)
| EditingMode | InkOverlayEditingMode* | out | 現在の編集モード(インク描画・削除・選択)を受け取る InkOverlayEditingMode へのポインタである。 |
vtbl 32 HRESULT put_EditingMode(InkOverlayEditingMode EditingMode)
| EditingMode | InkOverlayEditingMode | in | 設定する編集モード(インク描画・削除・選択)を指定する InkOverlayEditingMode 値である。 |
vtbl 33 HRESULT get_Selection(IInkStrokes** Selection)
| Selection | IInkStrokes** | out | 現在選択されているストロークのコレクションを受け取るポインタである。 |
vtbl 34 HRESULT put_Selection(IInkStrokes* Selection)
| Selection | IInkStrokes* | inoptional | 選択状態にするストローク コレクションへのポインタである。 |
vtbl 35 HRESULT get_EraserMode(InkOverlayEraserMode* EraserMode)
| EraserMode | InkOverlayEraserMode* | out | 現在の消しゴム モード(ストローク単位・ポイント単位)を受け取る InkOverlayEraserMode へのポインタである。 |
vtbl 36 HRESULT put_EraserMode(InkOverlayEraserMode EraserMode)
| EraserMode | InkOverlayEraserMode | in | 設定する消しゴム モード(ストローク単位・ポイント単位)を指定する InkOverlayEraserMode 値である。 |
| EraserWidth | INT* | out | 現在の消しゴムの幅(インク空間単位)を受け取るポインタである。 |
| newEraserWidth | INT | in | 設定する消しゴムの幅(インク空間単位)を指定する。 |
vtbl 39 HRESULT get_AttachMode(InkOverlayAttachMode* AttachMode)
| AttachMode | InkOverlayAttachMode* | out | インク レイヤをウィンドウの前面と背面のどちらに配置するかを受け取る InkOverlayAttachMode へのポインタである。 |
vtbl 40 HRESULT put_AttachMode(InkOverlayAttachMode AttachMode)
| AttachMode | InkOverlayAttachMode | in | インク レイヤをウィンドウの前面と背面のどちらに配置するかを指定する InkOverlayAttachMode 値である。 |
vtbl 41 HRESULT get_Cursors(IInkCursors** Cursors)
| Cursors | IInkCursors** | out | このオーバーレイで使用可能なカーソルのコレクションを受け取るポインタである。 |
| MarginX | INT* | out | 入力領域の水平方向のマージン(ピクセル)を受け取るポインタである。 |
| MarginX | INT | in | 入力領域の水平方向のマージン(ピクセル)を指定する。 |
| MarginY | INT* | out | 入力領域の垂直方向のマージン(ピクセル)を受け取るポインタである。 |
| MarginY | INT | in | 入力領域の垂直方向のマージン(ピクセル)を指定する。 |
vtbl 46 HRESULT get_Tablet(IInkTablet** SingleTablet)
| SingleTablet | IInkTablet** | out | 単一タブレット統合モードで使用されているタブレット オブジェクトを受け取るポインタである。 |
vtbl 47 HRESULT get_SupportHighContrastInk(VARIANT_BOOL* Support)
| Support | VARIANT_BOOL* | out | ハイ コントラスト モード時にインクを単色で表示する設定が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 48 HRESULT put_SupportHighContrastInk(VARIANT_BOOL Support)
| Support | VARIANT_BOOL | in | ハイ コントラスト モード時にインクを単色で表示するかどうかを指定する VARIANT_BOOL である。 |
vtbl 49 HRESULT get_SupportHighContrastSelectionUI(VARIANT_BOOL* Support)
| Support | VARIANT_BOOL* | out | ハイ コントラスト モード時に選択 UI を高コントラスト表示する設定が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 50 HRESULT put_SupportHighContrastSelectionUI(VARIANT_BOOL Support)
| Support | VARIANT_BOOL | in | ハイ コントラスト モード時に選択 UI を高コントラスト表示するかどうかを指定する VARIANT_BOOL である。 |
vtbl 51 HRESULT HitTestSelection(INT x, INT y, SelectionHitResult* SelArea)
| x | INT | in | ヒット テストを行う点の X 座標(ピクセル)を指定する。 |
| y | INT | in | ヒット テストを行う点の Y 座標(ピクセル)を指定する。 |
| SelArea | SelectionHitResult* | out | 指定した点が選択範囲のどの部分(ハンドル等)に当たるかを受け取る SelectionHitResult へのポインタである。 |
vtbl 52 HRESULT Draw(IInkRectangle* Rect)
| Rect | IInkRectangle* | inoptional | 再描画する領域を表す矩形へのポインタである。 |
vtbl 53 HRESULT SetGestureStatus(InkApplicationGesture Gesture, VARIANT_BOOL Listen)
| Gesture | InkApplicationGesture | in | 対象とするアプリケーション ジェスチャを指定する InkApplicationGesture 値である。 |
| Listen | VARIANT_BOOL | in | 指定したジェスチャの認識を有効にするかどうかを指定する VARIANT_BOOL である。 |
vtbl 54 HRESULT GetGestureStatus(InkApplicationGesture Gesture, VARIANT_BOOL* Listening)
| Gesture | InkApplicationGesture | in | 状態を取得するアプリケーション ジェスチャを指定する InkApplicationGesture 値である。 |
| Listening | VARIANT_BOOL* | out | 指定したジェスチャの認識が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 55 HRESULT GetWindowInputRectangle(IInkRectangle** WindowInputRectangle)
| WindowInputRectangle | IInkRectangle** | inout | 現在のウィンドウ入力矩形を受け取るポインタである。 |
vtbl 56 HRESULT SetWindowInputRectangle(IInkRectangle* WindowInputRectangle)
| WindowInputRectangle | IInkRectangle* | inoptional | 設定するウィンドウ入力矩形へのポインタである。 |
vtbl 57 HRESULT SetAllTabletsMode(VARIANT_BOOL UseMouseForInput)
| UseMouseForInput | VARIANT_BOOL | in | マウスをインク入力に使用するかどうかを指定する VARIANT_BOOL である。 |
vtbl 58 HRESULT SetSingleTabletIntegratedMode(IInkTablet* Tablet)
| Tablet | IInkTablet* | inoptional | 単一タブレット統合モードで使用するタブレット オブジェクトへのポインタである。 |
vtbl 59 HRESULT GetEventInterest(InkCollectorEventInterest EventId, VARIANT_BOOL* Listen)
| EventId | InkCollectorEventInterest | in | 状態を取得する対象イベントを指定する InkCollectorEventInterest 値である。 |
| Listen | VARIANT_BOOL* | out | 指定したイベントの受信が有効かどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 60 HRESULT SetEventInterest(InkCollectorEventInterest EventId, VARIANT_BOOL Listen)
| EventId | InkCollectorEventInterest | in | 設定対象のイベントを指定する InkCollectorEventInterest 値である。 |
| Listen | VARIANT_BOOL | in | 指定したイベントの受信を有効にするかどうかを指定する VARIANT_BOOL である。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IInkOverlay "{B82A463B-C1C5-45A3-997C-DEAB5651B67A}" #usecom global IInkOverlay IID_IInkOverlay "{65D00646-CDE3-4A88-9163-6769F0F1A97D}" #comfunc global IInkOverlay_get_hWnd 7 var #comfunc global IInkOverlay_put_hWnd 8 sptr #comfunc global IInkOverlay_get_Enabled 9 var #comfunc global IInkOverlay_put_Enabled 10 int #comfunc global IInkOverlay_get_DefaultDrawingAttributes 11 sptr #comfunc global IInkOverlay_putref_DefaultDrawingAttributes 12 sptr #comfunc global IInkOverlay_get_Renderer 13 sptr #comfunc global IInkOverlay_putref_Renderer 14 sptr #comfunc global IInkOverlay_get_Ink 15 sptr #comfunc global IInkOverlay_putref_Ink 16 sptr #comfunc global IInkOverlay_get_AutoRedraw 17 var #comfunc global IInkOverlay_put_AutoRedraw 18 int #comfunc global IInkOverlay_get_CollectingInk 19 var #comfunc global IInkOverlay_get_CollectionMode 20 var #comfunc global IInkOverlay_put_CollectionMode 21 int #comfunc global IInkOverlay_get_DynamicRendering 22 var #comfunc global IInkOverlay_put_DynamicRendering 23 int #comfunc global IInkOverlay_get_DesiredPacketDescription 24 var #comfunc global IInkOverlay_put_DesiredPacketDescription 25 int #comfunc global IInkOverlay_get_MouseIcon 26 sptr #comfunc global IInkOverlay_put_MouseIcon 27 sptr #comfunc global IInkOverlay_putref_MouseIcon 28 sptr #comfunc global IInkOverlay_get_MousePointer 29 var #comfunc global IInkOverlay_put_MousePointer 30 int #comfunc global IInkOverlay_get_EditingMode 31 var #comfunc global IInkOverlay_put_EditingMode 32 int #comfunc global IInkOverlay_get_Selection 33 sptr #comfunc global IInkOverlay_put_Selection 34 sptr #comfunc global IInkOverlay_get_EraserMode 35 var #comfunc global IInkOverlay_put_EraserMode 36 int #comfunc global IInkOverlay_get_EraserWidth 37 var #comfunc global IInkOverlay_put_EraserWidth 38 int #comfunc global IInkOverlay_get_AttachMode 39 var #comfunc global IInkOverlay_put_AttachMode 40 int #comfunc global IInkOverlay_get_Cursors 41 sptr #comfunc global IInkOverlay_get_MarginX 42 var #comfunc global IInkOverlay_put_MarginX 43 int #comfunc global IInkOverlay_get_MarginY 44 var #comfunc global IInkOverlay_put_MarginY 45 int #comfunc global IInkOverlay_get_Tablet 46 sptr #comfunc global IInkOverlay_get_SupportHighContrastInk 47 var #comfunc global IInkOverlay_put_SupportHighContrastInk 48 int #comfunc global IInkOverlay_get_SupportHighContrastSelectionUI 49 var #comfunc global IInkOverlay_put_SupportHighContrastSelectionUI 50 int #comfunc global IInkOverlay_HitTestSelection 51 int,int,var #comfunc global IInkOverlay_Draw 52 sptr #comfunc global IInkOverlay_SetGestureStatus 53 int,int #comfunc global IInkOverlay_GetGestureStatus 54 int,var #comfunc global IInkOverlay_GetWindowInputRectangle 55 sptr #comfunc global IInkOverlay_SetWindowInputRectangle 56 sptr #comfunc global IInkOverlay_SetAllTabletsMode 57 int #comfunc global IInkOverlay_SetSingleTabletIntegratedMode 58 sptr #comfunc global IInkOverlay_GetEventInterest 59 int,var #comfunc global IInkOverlay_SetEventInterest 60 int,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_IInkOverlay "{B82A463B-C1C5-45A3-997C-DEAB5651B67A}" #usecom global IInkOverlay IID_IInkOverlay "{65D00646-CDE3-4A88-9163-6769F0F1A97D}" #comfunc global IInkOverlay_get_hWnd 7 sptr #comfunc global IInkOverlay_put_hWnd 8 sptr #comfunc global IInkOverlay_get_Enabled 9 sptr #comfunc global IInkOverlay_put_Enabled 10 int #comfunc global IInkOverlay_get_DefaultDrawingAttributes 11 sptr #comfunc global IInkOverlay_putref_DefaultDrawingAttributes 12 sptr #comfunc global IInkOverlay_get_Renderer 13 sptr #comfunc global IInkOverlay_putref_Renderer 14 sptr #comfunc global IInkOverlay_get_Ink 15 sptr #comfunc global IInkOverlay_putref_Ink 16 sptr #comfunc global IInkOverlay_get_AutoRedraw 17 sptr #comfunc global IInkOverlay_put_AutoRedraw 18 int #comfunc global IInkOverlay_get_CollectingInk 19 sptr #comfunc global IInkOverlay_get_CollectionMode 20 sptr #comfunc global IInkOverlay_put_CollectionMode 21 int #comfunc global IInkOverlay_get_DynamicRendering 22 sptr #comfunc global IInkOverlay_put_DynamicRendering 23 int #comfunc global IInkOverlay_get_DesiredPacketDescription 24 sptr #comfunc global IInkOverlay_put_DesiredPacketDescription 25 int #comfunc global IInkOverlay_get_MouseIcon 26 sptr #comfunc global IInkOverlay_put_MouseIcon 27 sptr #comfunc global IInkOverlay_putref_MouseIcon 28 sptr #comfunc global IInkOverlay_get_MousePointer 29 sptr #comfunc global IInkOverlay_put_MousePointer 30 int #comfunc global IInkOverlay_get_EditingMode 31 sptr #comfunc global IInkOverlay_put_EditingMode 32 int #comfunc global IInkOverlay_get_Selection 33 sptr #comfunc global IInkOverlay_put_Selection 34 sptr #comfunc global IInkOverlay_get_EraserMode 35 sptr #comfunc global IInkOverlay_put_EraserMode 36 int #comfunc global IInkOverlay_get_EraserWidth 37 sptr #comfunc global IInkOverlay_put_EraserWidth 38 int #comfunc global IInkOverlay_get_AttachMode 39 sptr #comfunc global IInkOverlay_put_AttachMode 40 int #comfunc global IInkOverlay_get_Cursors 41 sptr #comfunc global IInkOverlay_get_MarginX 42 sptr #comfunc global IInkOverlay_put_MarginX 43 int #comfunc global IInkOverlay_get_MarginY 44 sptr #comfunc global IInkOverlay_put_MarginY 45 int #comfunc global IInkOverlay_get_Tablet 46 sptr #comfunc global IInkOverlay_get_SupportHighContrastInk 47 sptr #comfunc global IInkOverlay_put_SupportHighContrastInk 48 int #comfunc global IInkOverlay_get_SupportHighContrastSelectionUI 49 sptr #comfunc global IInkOverlay_put_SupportHighContrastSelectionUI 50 int #comfunc global IInkOverlay_HitTestSelection 51 int,int,sptr #comfunc global IInkOverlay_Draw 52 sptr #comfunc global IInkOverlay_SetGestureStatus 53 int,int #comfunc global IInkOverlay_GetGestureStatus 54 int,sptr #comfunc global IInkOverlay_GetWindowInputRectangle 55 sptr #comfunc global IInkOverlay_SetWindowInputRectangle 56 sptr #comfunc global IInkOverlay_SetAllTabletsMode 57 int #comfunc global IInkOverlay_SetSingleTabletIntegratedMode 58 sptr #comfunc global IInkOverlay_GetEventInterest 59 int,sptr #comfunc global IInkOverlay_SetEventInterest 60 int,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 不要)。