#include <Pt/Forms/PaintEvent.h>

Reports a dirty rectangle that a widget must paint.

Inherits BasicEvent< PaintEvent >.

Public Member Functions

 PaintEvent (Widget &widget, const Gfx::RectF &rect)
 Constructs an event for widget and dirty rectangle rect.
virtual ~PaintEvent ()
 Destructor.
Pt::uint64_t widgetId () const
 Returns the target widget ID.
Widgetwidget () const
 Returns the target widget.
const Gfx::RectF & rect () const
 Returns the dirty rectangle in local coordinates.
void setRect (const Gfx::RectF &r)
 Sets the dirty rectangle to r.
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

static EventcopyConstruct (const EventT &ev, Allocator &allocator)
 Copies an event using an allocator.
static void destruct (EventT &ev, Allocator &allocator)
 Destructs an event using an allocator.