FPointerEvent describes a mouse or touch action (e.g. 更多...
#include <Events.h>
类 FPointerEvent 继承关系图:Public 成员函数 | |
| FPointerEvent () | |
| UStruct Constructor. 更多... | |
| FPointerEvent (const FVector2D &InScreenSpacePosition, const FVector2D &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys, EGestureEvent InGestureType, const FVector2D &InGestureDelta, bool bInIsDirectionInvertedFromDevice) | |
| A constructor for gesture events | |
| FPointerEvent (uint32 InPointerIndex, const FVector2D &InScreenSpacePosition, const FVector2D &InLastScreenSpacePosition, const FVector2D &InDelta, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys) | |
| A constructor for raw mouse events | |
| FPointerEvent (uint32 InPointerIndex, const FVector2D &InScreenSpacePosition, const FVector2D &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys) | |
| Events are immutable once constructed. | |
| FPointerEvent (uint32 InUserIndex, uint32 InPointerIndex, const FVector2D &InScreenSpacePosition, const FVector2D &InLastScreenSpacePosition, bool bPressLeftMouseButton, const FModifierKeysState &InModifierKeys=FModifierKeysState(), uint32 InTouchpadIndex=0) | |
| A constructor for touch events | |
| const FVector2D & | GetCursorDelta () const |
| Returns the distance the mouse traveled since the last event was handled. | |
| FKey | GetEffectingButton () const |
| Mouse button that caused this event to be raised (possibly FKey::Invalid) | |
| const FVector2D & | GetGestureDelta () const |
| Returns the change in gesture value since the last gesture event of the same type. | |
| EGestureEvent | GetGestureType () const |
| Returns the type of touch gesture | |
| const FVector2D & | GetLastScreenSpacePosition () const |
| Returns the position of the cursor in screen space last time we handled an input event | |
| uint32 | GetPointerIndex () const |
| Returns the unique identifier of the pointer (e.g., finger index) | |
| const TSet< FKey > & | GetPressedButtons () const |
| Returns the full set of pressed buttons | |
| const FVector2D & | GetScreenSpacePosition () const |
| Returns The position of the cursor in screen space | |
| float | GetTouchForce () const |
| Returns the force of a touch (1.0f is mapped to an general touch force, < 1 is "light", > 1 is "heavy", and 10 is the max force possible) | |
| uint32 | GetTouchpadIndex () const |
| Returns the index of the touch pad that generated this event (for platforms with multiple touch pads per user) | |
| int32 | GetUserIndex () const |
| Returns the index of the user that caused the event | |
| float | GetWheelDelta () const |
| How much did the mouse wheel turn since the last mouse event | |
| bool | IsDirectionInvertedFromDevice () const |
| Is the gesture delta inverted | |
| bool | IsMouseButtonDown (FKey MouseButton) const |
| Mouse buttons that are currently pressed | |
| virtual SLATECORE_API bool | IsPointerEvent () const override |
| Is this event a pointer event (touch or cursor). | |
| bool | IsTouchEvent () const |
| Is this event a result from a touch (as opposed to a mouse) | |
| bool | IsTouchFirstMoveEvent () const |
| Is this event a special first-move touch event | |
| bool | IsTouchForceChangedEvent () const |
| Is this event a special force-change touch event | |
| void | operator= (const FPointerEvent &Other) |
| We override the assignment operator to allow generated code to compile with the const ref member. | |
Public 成员函数 继承自 FInputEvent | |
| bool | AreCapsLocked () const |
| Returns true if caps lock was on when this event occurred | |
| SLATECORE_API FGeometry | FindGeometry (const TSharedRef< SWidget > &WidgetToFind) const |
| The event path provides additional context for handling | |
| FInputEvent () | |
| UStruct Constructor. 更多... | |
| FInputEvent (const FModifierKeysState &InModifierKeys, const int32 InUserIndex, const bool bInIsRepeat) | |
| Constructor. 更多... | |
| const FModifierKeysState & | GetModifierKeys () const |
| Returns the complete set of modifier keys | |
| uint32 | GetUserIndex () const |
| Returns the index of the user that generated this event. | |
| bool | IsAltDown () const |
| Returns true if either alt key was down when this event occurred | |
| bool | IsCommandDown () const |
| Returns true if either command key was down when this event occurred | |
| bool | IsControlDown () const |
| Returns true if either control key was down when this event occurred | |
| virtual SLATECORE_API bool | IsKeyEvent () const |
| Is this event a key event. | |
| bool | IsLeftAltDown () const |
| Returns true if left alt key was down when this event occurred | |
| bool | IsLeftCommandDown () const |
| Returns true if left command key was down when this event occurred | |
| bool | IsLeftControlDown () const |
| Returns true if left control key was down when this event occurred | |
| bool | IsLeftShiftDown () const |
| Returns true if left shift key was down when this event occurred | |
| virtual SLATECORE_API bool | IsPointerEvent () const |
| Is this event a pointer event (touch or cursor). | |
| bool | IsRepeat () const |
| Returns whether or not this character is an auto-repeated keystroke 更多... | |
| bool | IsRightAltDown () const |
| Returns true if right alt key was down when this event occurred | |
| bool | IsRightCommandDown () const |
| Returns true if right command key was down when this event occurred | |
| bool | IsRightControlDown () const |
| Returns true if right control key was down when this event occurred | |
| bool | IsRightShiftDown () const |
| Returns true if right shift key was down when this event occurred | |
| bool | IsShiftDown () const |
| Returns true if either shift key was down when this event occurred 更多... | |
| void | SetEventPath (const FWidgetPath &InEventPath) |
| Set the widget path along which this event will be routed | |
| virtual | ~FInputEvent () |
| Virtual destructor. | |
FPointerEvent describes a mouse or touch action (e.g.
Press, Release, Move, etc). It is passed to event handlers dealing with pointer-based input.
|
inline |
UStruct Constructor.
Not meant for normal usage.