abstract struct SF::Event::TouchEvent
- SF::Event::TouchEvent
- SF::Event
- Struct
- Value
- Object
Overview
Touch events parameters (see TouchBegan
, TouchMoved
, TouchEnded
)
Direct Known Subclasses
Defined in:
window/obj.crConstructors
Instance Method Summary
-
#dup : TouchEvent
Returns a shallow copy of this object.
-
#finger : UInt32
Index of the finger in case of multi-touch events
- #finger=(finger : Int)
-
#x : Int32
X position of the touch, relative to the left of the owner window
- #x=(x : Int)
-
#y : Int32
Y position of the touch, relative to the top of the owner window
- #y=(y : Int)
Instance methods inherited from struct SF::Event
initialize
initialize
Constructor methods inherited from struct SF::Event
new
new
Constructor Detail
Instance Method Detail
def dup : TouchEvent
#
Description copied from struct Value
Returns a shallow copy of this object.
Because Value
is a value type, this method returns self
,
which already involves a shallow copy of this object because
value types are passed by value.