#include <Pt/Forms/ScrollEvent.h>
Scroll or wheel movement. More...
Inherits BasicEvent< T >.
Public Types | |
| enum | Wheel |
| Defines a scroll axis. | |
Public Member Functions | |
| ScrollEvent () | |
| Creates an event without a target and with zero delta. | |
| ScrollEvent (Widget &widget) | |
| Creates an event targeted at widget. | |
| Pt::uint64_t | widgetId () const |
| Returns the target widget ID, or 0 when no target is set. | |
| Widget * | widget () const |
| Returns the target widget, or 0 when no target is set. | |
| void | setWidget (Widget *widget) |
| Sets the target widget. | |
| Pt::uint32_t | wheel () const |
| Returns the scroll axis. | |
| double | delta () const |
| Returns the signed scroll delta. | |
| void | set (Pt::uint32_t wheel, double d) |
| Sets the scroll wheel and delta d. | |
| Event & | clone (Allocator &allocator) const |
| Clones this event using an allocator. | |
| void | destroy (Allocator &allocator) |
| Destroys this event using an allocator. | |
| const std::type_info & | typeInfo () const |
| Returns the type info for this class of events. | |
Static Public Member Functions | |
| template<typename EventT > | |
| static Event & | copyConstruct (const EventT &ev, Allocator &allocator) |
| Copies an event using an allocator. | |
| template<typename EventT > | |
| static void | destruct (EventT &ev, Allocator &allocator) |
| Destructs an event using an allocator. | |
The event identifies the scroll axis. The widget pointer and widget ID identify the target.