#include <Pt/Forms/ShowEvent.h>
Reports that a widget was shown or hidden. More...
Inherits BasicEvent< T >.
Public Member Functions | |
| ShowEvent (Widget &widget, bool visible) | |
| Creates a visibility event for widget. | |
| ShowEvent () | |
| Creates an event without an affected widget. | |
| virtual | ~ShowEvent () |
| Destroys the visibility event. | |
| Pt::uint64_t | widgetId () const |
| Returns the ID of the affected widget. | |
| Widget * | widget () const |
| Returns the affected widget, or null. | |
| bool | visible () const |
| Returns whether the widget is visible. | |
| 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. | |
The widget pointer and widget ID identify the affected Forms object.