Location:
w32std.h
Link against: N/A
TWsEvent
Supported from 5.0
Window server event.
All events generated by the window server, except redraw events and
priority key events, are delivered to the client in a TWsEvent.
The client obtains the TWsEvent by calling
RWsSession::GetEvent(). The type of data contained in the
TWsEvent depends on the type of event. The client can inquire the
event type using Type(), and then retrieve the appropriate type of
data.
Defined in TWsEvent:
Anonymous, EWsEventDataSize, ErrorMessage(), EventData(), Handle(), Key(), ModifiersChanged(), Pointer(), SetHandle(), SetTimeNow(), SetType(), Time(), Type()
TInt Type() const;
Gets the type of event that occurred.
|
TPointerEvent* Pointer() const;
Gets the pointer event.
This function can be used to get information about the pointer
event if Type() returns an event of type
EEventPointer. or EEventDragDrop.
|
TKeyEvent* Key() const;
Gets the key event.
This function can be used to get information about the key
event if Type() returns an event of type EEventKey,
EEventKeyUp or EEventKeyDown.
|
TModifiersChangedEvent* ModifiersChanged() const;
Gets modifier changed event.
This function can be used to get information about the modifier
changed event if Type() returns an event of type
EEventModifiersChanged.
|
TWsErrorMessage* ErrorMessage() const;
Gets an error event.
This function can be used to get information about the error
event if Type() returns an event of type
EEventErrorMessage.
|
TUint Handle() const;
Gets the window handle.
This is the handle that was passed to the window's
Construct() function: typically it will be a pointer to the
client-side object owning the window, providing access to its member functions.
|
TTime Time() const;
Gets the time when the event occurred.
|
void SetType(TInt aType);
Sets event type.
|
void SetHandle(TUint aHandle);
Sets the event handle.
This is the client handle of the window that is being sent the event.
|
TUint8* EventData() const;
Gets information about the event.
This function gives you direct access to the event data as a
whole. The event can be a keyboard or pen event or it could be a new special
event that only you and another application know about. You are limited to
EWsEventDataSize bytes worth of data.
|
Anonymous
Event data size.
|