#include <Pt/Forms/ResizeEvent.h>

Reports that a widget was resized. More...

Inherits BasicEvent< ResizeEvent >.

Public Member Functions

 ResizeEvent (Widget &widget, const Gfx::SizeF &size)
 Creates a resize event for widget with size.
virtual ~ResizeEvent ()
 Destroys the resize event.
Pt::uint64_t widgetId () const
 Returns the ID of the affected widget.
Widgetwidget () const
 Returns the affected widget.
const Gfx::SizeF & size () const
 Returns the widget size.
void setSize (const Gfx::SizeF &size)
 Sets the widget size to size.
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.

Detailed Description

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