Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <W32STD.H>

Struct TPointerEvent

struct TPointerEvent;

Description

Pointer event details.

The function TWsEvent::Pointer()const is used to get this structure for a pointer event.

Members

Defined in TPointerEvent:


Member enumerations


Enum TType

TType

Description

Pointer event types.

Note that the user actions that cause these events will vary according to the type of pointing device used.

EButton1Down

Button 1 or pen down.

EButton1Up

Button 1 or pen up.

EButton2Down

Button 2 down.

This is the middle button of a 3 button mouse.

EButton2Up

Button 2 up.

This is the middle button of a 3 button mouse.

EButton3Down

Button 3 down.

EButton3Up

Button 3 up.

EDrag

Drag event.

These events are only received when button 1 is down.

EMove

Move event.

These events are only received when button 1 is up and the XY input mode is not pen.

EButtonRepeat

Button repeat event.

ESwitchOn

Switch on event caused by a screen tap.

[Top]


Member data


iType

TType iType;

Description

The type of pointer event.


iModifiers

TUint iModifiers;

Description

The state of the modifier keys, defined in TEventModifier.


iPosition

TPoint iPosition;

Description

Co-ordinates of the pointer event relative to the origin of the window it occurred in.

Positive co-ordinates indicate a position to the right of and down from the window's origin, negative co-ordinates indicate a position to the left and up.


iParentPosition

TPoint iParentPosition;

Description

Co-ordinates of the pointer event relative to the parent window of the window it occurred in.

Positive co-ordinates indicate a position to the right of and down from the window's origin, negative co-ordinates indicate a position to the left and up.