#include <w32std.h>
class TWsEvent |
Protected Attributes | |
---|---|
TUint8 | iEventData |
TUint | iHandle |
TTime | iTime |
TInt | iType |
Public Member Enumerations | |
---|---|
enum | anonymous { EWsEventDataSize } |
Public Member Functions | |
---|---|
TWsEvent() | |
TWsDisplayChangedEvent * | DisplayChanged() |
const TWsDisplayChangedEvent * | DisplayChanged() |
TWsErrorMessage * | ErrorMessage() |
TUint8 * | EventData() |
TUint | Handle() |
IMPORT_C void | InitAdvancedPointerEvent(TPointerEvent::TType, TUint, const TPoint3D &, TUint8) |
TInt * | Int() |
TKeyEvent * | Key() |
TModifiersChangedEvent * | ModifiersChanged() |
TAdvancedPointerEvent * | Pointer() |
void | SetHandle(TUint) |
IMPORT_C void | SetPointerNumber(TUint8) |
IMPORT_C void | SetPointerZ(TInt) |
void | SetTimeNow() |
void | SetType(TInt) |
TTime | Time() |
TInt | Type() |
TWsVisibilityChangedEvent * | VisibilityChanged() |
const TWsVisibilityChangedEvent * | VisibilityChanged() |
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.
TUint8 | iEventData | [protected] |
WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only.
TUint | iHandle | [protected] |
WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only.
TTime | iTime | [protected] |
WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only.
TInt | iType | [protected] |
WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only.
Event data size.
Enumerator | Value | Description |
---|---|---|
EWsEventDataSize | sizeof(TAdvancedPointerEvent) |
This is the maximum number of bytes of data that can be returned by EventData(). Note: this value is 32 bytes. |
TWsDisplayChangedEvent * | DisplayChanged | ( | ) | [inline] |
Gets information about the display changed event.
This function can be used to get information about the display changed event if Type() returns an event of type EEventDisplayChanged.
const TWsDisplayChangedEvent * | DisplayChanged | ( | ) | const [inline] |
Gets information about the display changed event.
This function can be used to get information about the display changed event if Type() returns an event of type EEventDisplayChanged.
TWsErrorMessage * | ErrorMessage | ( | ) | const [inline] |
Gets an error event.
This function can be used to get information about the error event if Type() returns an event of type EEventErrorMessage.
TUint8 * | EventData | ( | ) | const [inline] |
Gets information about the event.
This function gives you direct access to the event data as a whole. The event can be a key or pointer 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.
TUint | Handle | ( | ) | const [inline] |
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.
IMPORT_C void | InitAdvancedPointerEvent | ( | TPointerEvent::TType | aType, |
TUint | aModifiers, | |||
const TPoint3D & | aPoint3D, | |||
TUint8 | aPointerNumber | |||
) |
Initializes TAdvancedPointerEvent contained in this TWsEvent.
See also: TWsEvent::Pointer() TAdvancedPointerEvent::PositionAndPressure3D() TAdvancedPointerEvent::PointerNumber() To become publishedAll with WSERV NGA APIs To become released with WSERV NGA APIs
Parameters | |
---|---|
aType | type of TAdvancedPointerEvent |
aModifiers | the state of the modifier keys at the time when the event occured, defined in TEventModifier |
aPoint3D | x and y coordinates of the pointer plus z coordinate representing proximity of the pointer combined with its pressure, as returned by TAdvancedPointerEvent::PositionAndPressure3D() |
aPointerNumber | pointer number of the pointer whose state change is described by this event |
TInt * | Int | ( | ) | const [inline] |
Gets the event data as a TInt.
For TWsEvents of type EEventPointerEnter and EEventPointerExit this is the pointer number of the pointer that entered/exited the window. Please note that on platforms that use the older Symbian OS, without multipointer support, pointer number is not initialized for EEventPointerEnter and EEventPointerExit and thus it is random.
If the value of the attribute returned from HALData::EPointerNumberOfPointers is greater than 1, then the system has multipointer support.
See also: HALData::EPointerNumberOfPointers HAL::Get(TAttribute,TInt&)
TModifiersChangedEvent * | ModifiersChanged | ( | ) | const [inline] |
Gets information about the modifier changed event.
This function can be used to get information about the modifier changed event if Type() returns an event of type EEventModifiersChanged.
TAdvancedPointerEvent * | Pointer | ( | ) | const [inline] |
Gets the pointer event.
This method can be used to get information about the pointer event if Type() returns an event of type EEventPointer or EEventDragDrop.
If the event has been received by the window without advanced pointer events enabled, this method will return a pointer to TPointerEvent with additional fields of TAdvancedPointerEvent being cleared to 0.
See also: TPointerEvent::AdvancedPointerEvent() RWindowBase::EnableAdvancedPointers()
void | SetHandle | ( | TUint | aHandle | ) | [inline] |
Sets the event handle.
This is the client handle of the window that is being sent the event.
Parameters | |
---|---|
aHandle | The event handle. |
IMPORT_C void | SetPointerNumber | ( | TUint8 | aPointerNumber | ) |
Changes pointer number of TAdvancedPointerEvent contained in this TWsEvent.
See also: TWsEvent::Pointer() TAdvancedPointerEvent::PointerNumber() To become publishedAll with WSERV NGA APIs To become released with WSERV NGA APIs
Parameters | |
---|---|
aPointerNumber | new pointer number to set in TAdvancedPointerEvent contained in this TWsEvent |
IMPORT_C void | SetPointerZ | ( | TInt | aZ | ) |
Changes pressure and proximity of TAdvancedPointerEvent contained in this TWsEvent.
See also: TWsEvent::Pointer() TAdvancedPointerEvent::ProximityAndPressure() To become publishedAll with WSERV NGA APIs To become released with WSERV NGA APIs
Parameters | |
---|---|
aZ | new pressure and proximity to set, combined the same way as returned by TAdvancedPointerEvent::ProximityAndPressure() |
void | SetType | ( | TInt | aType | ) | [inline] |
Sets the event type.
Parameters | |
---|---|
aType | The event type. Event types are defined in TEventCode. |
TTime | Time | ( | ) | const [inline] |
Gets the time when the event occurred.
TInt | Type | ( | ) | const [inline] |
Gets the type of event that occurred.
TWsVisibilityChangedEvent * | VisibilityChanged | ( | ) | [inline] |
Gets information about the visibility changed event.
This function can be used to get information about the visibility changed event if Type() returns an event of type EEventWindowVisibilityChanged.
const TWsVisibilityChangedEvent * | VisibilityChanged | ( | ) | const [inline] |
Gets information about the visibility changed event.
This function can be used to get information about the visibility changed event if Type() returns an event of type EEventWindowVisibilityChanged.