PointerPress (クラス)
public PointerPress {inherits PointerButtonEvent}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.

マウス ボタンが押されると発生するイベント。

注意事項

GuiEventTarget.on-pointer-press は、PointerPress イベントのスタティック イベント ハンドラです。

プログラミング注意事項

PointerPress イベントのリスニングは、 RectangleGraphic やテキスト要素などの、他の方法ではポインタ イベントには応答しないオブジェクト上のポインタの動作をモニタリングする良い方法です。ただし通常は、CommandButtonScrollbar など、これらのイベントがすでにモニタリングされている高レベルのオブジェクトに PointerPress ハンドラをインストールすることは適切ではなく望ましくありません。このようなオブジェクトには、ポインタ プレス、解放またはその他のユーザー操作をモニタリングし、必要な場合に ActionValueChangedAdjustment などの高レベルのイベントを発生する内部理論が備えられています。通常、高レベルのオブジェクトを使用するプログラマーは、オブジェクトの説明を確認し、PointerPress ハンドラをアタッチする代わりに、高レベルのイベントをリスニングするようにしてください。

コンストラクタ
default:新しい PointerPress オブジェクトを作成します。
コンストラクタ public {PointerPress.default}

プロパティ
implicit-pointer-grab-manager:このイベントに関連付けられている ImplicitPointerGrabManager
アクセサ public PointerPress.implicit-pointer-grab-manager:#ImplicitPointerGrabManager
セッター public PointerPress.implicit-pointer-grab-manager:#ImplicitPointerGrabManager
プロパティ 継承 PointerButtonEvent: button, click-count
プロパティ 継承 PointerEvent: can-end-implicit-pointer-grab?, nonevent?
プロパティ 継承 GuiInputEvent: accel?, alt?, command?, ctrl?, has-coordinates?, menu?, shift?, state-mask, test-recorded?, x, y
プロパティ 継承 GuiWindowEvent: event-time, to-DragEventInfo
プロパティ 継承 GuiEvent: consumed?

メソッド
clear-state:このメソッドは GuiEvent オブジェクトの状態をクリアするために gui-toolkit で呼び出されます。
public {PointerPress.clear-state}:void
continue-implicit-pointer-grab:現在の暗黙的なポインタ グラブに対するグラブ オブジェクトを指定します。
public {PointerPress.continue-implicit-pointer-grab v:Visual}:void
fire-methods:この Eventスタティック イベント ハンドラを起動します。
protected {PointerPress.fire-methods target:GuiEventTarget}:void
release-implicit-pointer-grab:暗黙的なポインタ グラブを終了します。
public {PointerPress.release-implicit-pointer-grab}:void
メソッド 継承 GuiInputEvent: modifiers-match?, shift-xy
メソッド 継承 GuiWindowEvent: set-view
メソッド 継承 GuiEvent: consume
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {PointerPress.default}

新しい PointerPress オブジェクトを作成します。




プロパティ詳細
implicit-pointer-grab-manager (アクセサ)
アクセサ public PointerPress.implicit-pointer-grab-manager:#ImplicitPointerGrabManager
セッター public PointerPress.implicit-pointer-grab-manager:#ImplicitPointerGrabManager

このイベントに関連付けられている ImplicitPointerGrabManager

注意事項

この ImplicitPointerGrabManager は、必要に応じてこのイベントから取り出され、後の使用のために保存されます。





メソッド詳細
clear-state (メソッド)
public {PointerPress.clear-state}:void

このメソッドは GuiEvent オブジェクトの状態をクリアするために gui-toolkit で呼び出されます。

注意事項

既定の実装では GuiEvent.consumed? フィールドを false に設定します。

オーバーライド

サブクラスでは、追加されるすべての状態がクリアされるようこのメソッドをオーバーライドしてください。また、基本クラスでクリアすべきすべての状態がクリアされるように、スーパー実装を呼び出す必要もあります。


continue-implicit-pointer-grab (メソッド)
public {PointerPress.continue-implicit-pointer-grab v:Visual}:void

現在の暗黙的なポインタ グラブに対するグラブ オブジェクトを指定します。

v: グラブ オブジェクトになるオブジェクト。

説明

暗黙的なポインタ グラブが現在有効な場合、グラブ オブジェクトは v に変更されます。それ以外の場合、この呼び出しの効果はありません。

注意事項

通常、暗黙的なポインタ グラブは、PointerPress イベントが発生すると有効になります。これは、ポインタ プレスにより暗黙的なポインタ グラブが起動するためです。

このメソッドは、PointerPress.implicit-pointer-grab-manager が返す ImplicitPointerGrabManager 上で ImplicitPointerGrabManager.continue-implicit-pointer-grab を呼び出して実行します。


fire-methods (メソッド)
protected {PointerPress.fire-methods target:GuiEventTarget}:void

この Eventスタティック イベント ハンドラを起動します。

target: この Event を処理する GuiEventTarget

プログラミング注意事項

このメソッドは、この Eventスタティック イベント ハンドラを呼び出すときに、GuiEventTarget.handle-event によって呼び出されます。このメソッドは、適切なスタティック イベント ハンドラがすべて呼び出された後に返します。

オーバーライド

このメソッドは、それ自身のスタティック イベント ハンドラに関連付けられた Event のすべてのサブクラスでオーバーライドされます。E クラスで定義されたオーバーライド メソッドは、次のテンプレートに従う必要があります。

{method protected {fire-methods target:GuiEventTarget}:void
    {target.on-E self}
    {super.fire-methods target}
}


ここで、on-EE クラスに関連付けられたスタティック イベント ハンドラ名です。fire-methods 内のメソッド呼び出しは、Curl 言語のスタティック イベント ハンドラ呼び出し順位の規則 (最も用途の特定されたものから最も一般的な用途のもの) に従って順序付ける必要があります。


release-implicit-pointer-grab (メソッド)
public {PointerPress.release-implicit-pointer-grab}:void

暗黙的なポインタ グラブを終了します。

説明

暗黙的なポインタ グラブが有効な場合、これを終了します。明示的なポインタ グラブが有効な場合は、何も起こりません。ポインタ グラブが有効でない場合、この呼び出しの効果はありません。