Lumino
ln::UIMouseEventArgs Class Reference

マウスイベントの引数です。 More...

#include <UIEvents.hpp>

Inherits ln::UIEventArgs.

Public Member Functions

MouseButtons getMouseButtons () const
 ボタンの種類を取得します。
 
const PointgetPosition () const
 マウスイベント生成時のマウスの座標を取得します。
 
int getClickCount () const
 ボタンがクリックされた回数を取得します。(ダブルクリックやトリプルクリックを区別するために使用する。最大3まで)
 
ModifierKeys modifierKeys () const
 修飾キーを取得します。
 
Point getPosition (UIElement *relativeTo) const
 指定した要素から見た相対的なマウス ポインターの位置を返します。
 

Static Public Member Functions

static Ref< UIMouseEventArgscreate (UIElement *sender, UIEventType type, MouseButtons button, float x, float y, int clickCount, ModifierKeys modifierKeys, bool caching=true)
 UIMouseEventArgs のインスタンスを作成します。
 

Detailed Description

マウスイベントの引数です。

マウスイベントは任意の座標値を与えて発行することができます。 そのため座標値は UI 要素のヒットボックス外の値が入力されることがあります。


The documentation for this class was generated from the following file: