31 #ifndef Pt_Forms_TouchEvent_h
32 #define Pt_Forms_TouchEvent_h
34 #include <Pt/Forms/Api.h>
35 #include <Pt/Forms/Widget.h>
36 #include <Pt/Gfx/Point.h>
43 class TouchEvent :
public Pt::BasicEvent<TouchEvent>
63 TouchEvent(Widget& widget)
64 : _widgetId( widget.id() )
90 Widget* widget()
const
95 void setWidget(Widget* widget)
98 _widgetId = widget ? widget->id() : 0;
101 const Gfx::PointF& position()
const
106 void setPosition(
const Gfx::PointF& pos)
141 double pressure()
const
146 void setPressure(
double p)
153 return _action == Move;
163 bool isPressed()
const
165 return _action == Move || _action == Press;
172 return _action == Press;
182 bool isRelease()
const
184 return _action == Release;
uint_type uint64_t
Unsigned 64-bit integer type.
Definition: Types.h:54
uint_type uint32_t
Unsigned 32-bit integer type.
Definition: Types.h:42