#include <Pt/Forms/CloseEvent.h>
Reports that a widget is closing. More...
Inherits BasicEvent< T >.
Public Member Functions | |
| CloseEvent (Widget &widget) | |
| Creates a close event for widget. | |
| virtual | ~CloseEvent () |
| Destroys the close event. | |
| Pt::uint64_t | widgetId () const |
| Returns the ID of the affected widget. | |
| Widget * | widget () const |
| Returns the affected widget. | |
| 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. | |
After this event is processed, a window is hidden, detached, and marked closed. The widget pointer and widget ID identify the affected object.