31 #ifndef Pt_Forms_MouseEvent_h
32 #define Pt_Forms_MouseEvent_h
34 #include <Pt/Forms/Api.h>
35 #include <Pt/Forms/Widget.h>
36 #include <Pt/Gfx/Point.h>
95 return (_buttonState & mask) == mask;
103 _buttonState |= mask;
111 return (_buttonState & mask) != mask;
119 _buttonState &= (~mask);
168 : _widgetId_(
widget.id() )
244 return _action == Move;
260 return (_buttonState & mask) == mask;
268 return (_button & mask) == mask && _action == Press;
279 _buttonState |= mask;
287 return (_buttonState & mask) != mask;
295 return (_button & mask) == mask && _action == Release;
306 _buttonState &= (~mask);
Core module.
Definition: Allocator.h:33
Point with floating-point X and Y coordinates.
Definition: Point.h:47
uint_type uint32_t
Unsigned 32-bit integer type.
Definition: Api-Types.h:48
uint_type uint64_t
Unsigned 64-bit integer type.
Definition: Api-Types.h:62