libyui
 
Loading...
Searching...
No Matches
YWidgetEvent Class Reference
Inheritance diagram for YWidgetEvent:
Collaboration diagram for YWidgetEvent:

Public Member Functions

 YWidgetEvent (YWidget *widget=0, EventReason reason=Activated, EventType eventType=WidgetEvent)
 
virtual YWidgetwidget () const
 
EventReason reason () const
 
- Public Member Functions inherited from YEvent
 YEvent (EventType eventType=UnknownEvent)
 
EventType eventType () const
 
unsigned long serial () const
 
virtual YItemitem () const
 
YDialogdialog () const
 
bool isValid () const
 

Protected Member Functions

virtual ~YWidgetEvent ()
 
- Protected Member Functions inherited from YEvent
void setDialog (YDialog *dia)
 
virtual ~YEvent ()
 
void invalidate ()
 

Protected Attributes

YWidget_widget
 
EventReason _reason
 

Additional Inherited Members

- Public Types inherited from YEvent
enum  EventType {
  NoEvent = 0 , UnknownEvent , WidgetEvent , MenuEvent ,
  KeyEvent , CancelEvent , TimeoutEvent , DebugEvent ,
  SpecialKeyEvent , InvalidEvent = 0x4242
}
 
enum  EventReason {
  UnknownReason = 0 , Activated , SelectionChanged , ValueChanged ,
  ContextMenuActivated
}
 
- Static Public Member Functions inherited from YEvent
static const char * toString (EventType eventType)
 
static const char * toString (EventReason reason)
 

Constructor & Destructor Documentation

◆ YWidgetEvent()

YWidgetEvent::YWidgetEvent ( YWidget * widget = 0,
EventReason reason = Activated,
EventType eventType = WidgetEvent )

Constructor.

◆ ~YWidgetEvent()

virtual YWidgetEvent::~YWidgetEvent ( )
inlineprotectedvirtual

Protected destructor - events can only be deleted via YDialog::deleteEvent(). The associated dialog will take care of this event and delete it when appropriate.

Member Function Documentation

◆ reason()

EventReason YWidgetEvent::reason ( ) const
inline

Returns the reason for this event. This very much like an event sub-type.

◆ widget()

virtual YWidget * YWidgetEvent::widget ( ) const
inlinevirtual

Returns the widget that caused this event. Reimplemented from YEvent.

Reimplemented from YEvent.


The documentation for this class was generated from the following files: