#include <Pt/Forms/PaintEvent.h>
Reports a dirty rectangle that a widget must paint.
Inherits BasicEvent< T >.
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. | |
| Widget * | widget () 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. | |
| 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. | |