|
std::string | _keySymbol |
|
YWidget * | _focusWidget |
|
|
enum | EventType {
NoEvent = 0,
UnknownEvent,
WidgetEvent,
MenuEvent,
KeyEvent,
CancelEvent,
TimeoutEvent,
DebugEvent,
InvalidEvent = 0x4242
} |
|
enum | EventReason {
UnknownReason = 0,
Activated,
SelectionChanged,
ValueChanged,
ContextMenuActivated
} |
|
static const char * | toString (EventType eventType) |
|
static const char * | toString (EventReason reason) |
|
Definition at line 206 of file YEvent.h.
YKeyEvent::YKeyEvent |
( |
const std::string & |
keySymbol, |
|
|
YWidget * |
focusWidget = 0 |
|
) |
| |
Constructor.
Create a key event with a specified key symbol (a text describing the key, such as "CursorLeft", "F1", etc.) and optionally the widget that currently has the keyboard focus.
Definition at line 123 of file YEvent.cc.
virtual YKeyEvent::~YKeyEvent |
( |
| ) |
|
|
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.
Definition at line 241 of file YEvent.h.
YWidget* YKeyEvent::focusWidget |
( |
| ) |
const |
|
inline |
Returns the widget that currently has the keyboard focus.
This might be 0 if no widget has the focus or if the creator of this event could not obtain that information.
Definition at line 232 of file YEvent.h.
std::string YKeyEvent::keySymbol |
( |
| ) |
const |
|
inline |
Returns the key symbol - a text describing the key, such as "CursorLeft", "F1", "a", "A", etc.
Definition at line 224 of file YEvent.h.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-libyui-master-3.0.13/src/YEvent.h
- /builddir/build/BUILD/libyui-libyui-master-3.0.13/src/YEvent.cc