libyui
3.0.10
|
#include <YEvent.h>
Public Member Functions | |
YEvent (EventType eventType=UnknownEvent) | |
EventType | eventType () const |
unsigned long | serial () const |
virtual YWidget * | widget () const |
virtual YItem * | item () const |
YDialog * | dialog () const |
bool | isValid () const |
Static Public Member Functions | |
static const char * | toString (EventType eventType) |
static const char * | toString (EventReason reason) |
Protected Member Functions | |
void | setDialog (YDialog *dia) |
virtual | ~YEvent () |
void | invalidate () |
Friends | |
void | YDialog::deleteEvent (YEvent *event) |
void | YSimpleEventHandler::deleteEvent (YEvent *event) |
Abstract base class for events to be returned upon UI::UserInput() and related functions.
YEvent::YEvent | ( | EventType | eventType = UnknownEvent | ) |
|
protectedvirtual |
Protected destructor - events can only be deleted via YDialog::deleteEvent(). The associated dialog will take care of this event and delete it when appropriate.
This desctructor is virtual to force a polymorph object so dynamic_cast<> can be used.
Definition at line 46 of file YEvent.cc.
|
inline |
|
inline |
|
protected |
bool YEvent::isValid | ( | ) | const |
|
inlinevirtual |
Return the YItem that corresponds to this event or 0 if there is none.
This default implementation always returns 0. Subclasses that actually return items should overwrite this method.
Reimplemented in YMenuEvent.
|
inline |
|
inlineprotected |
|
static |
|
static |
|
inlinevirtual |
Returns the widget that caused this event or 0 if there is none.
This default implementation always returns 0. Subclasses that actually return widgets should overwrite this method.
Reimplemented in YWidgetEvent.