#include <Pt/Forms/MoveEvent.h>

Reports that a widget moved. More...

Inherits BasicEvent< T >.

Public Member Functions

 MoveEvent (Widget &widget, const Gfx::PointF &pos)
 Creates a move event for widget at pos.
 
virtual ~MoveEvent ()
 Destroys the move event.
 
Pt::uint64_t widgetId () const
 Returns the ID of the affected widget.
 
Widgetwidget () const
 Returns the affected widget.
 
const Gfx::PointFposition () const
 Returns the widget position.
 
void setPosition (const Gfx::PointF &position)
 Sets the widget position to position.
 
Eventclone (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 EventcopyConstruct (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.
 

Detailed Description

The widget pointer and widget ID identify the affected Forms object.