Tizen Native API
Dali::WheelEvent Struct Reference

The wheel event structure is used to store a wheel rolling, it facilitates processing of the wheel rolling and passing to other libraries like Toolkit. More...

Public Types

enum  Type
 Specifies the type of the wheel event. More...

Public Member Functions

 WheelEvent ()
 Default constructor.
 WheelEvent (Type type, int direction, unsigned int modifiers, Vector2 point, int z, unsigned int timeStamp)
 Constructor.
 ~WheelEvent ()
 Destructor.
bool IsShiftModifier () const
 Check to see if Shift key modifier has been supplied.
bool IsCtrlModifier () const
 Check to see if Ctrl (control) key modifier has been supplied.
bool IsAltModifier () const
 Check to see if Alt key modifier has been supplied.

Public Attributes

Type type
 Type of the event.
int direction
 The direction in which the wheel is being rolled.
unsigned int modifiers
 Modifier keys pressed during the event (such as shift, alt and control).
Vector2 point
 The co-ordinates of the cursor relative to the top-left of the screen when the wheel is being rolled.
int z
 The offset of the wheel rolling, where positive value means rolling down or clockwise and negative value means rolling up or counter-clockwise.
unsigned int timeStamp
 The time when the wheel is being rolled.

Detailed Description

The wheel event structure is used to store a wheel rolling, it facilitates processing of the wheel rolling and passing to other libraries like Toolkit.

There is a key modifier which relates to keys like alt, shift and control functions are supplied to check if they have been pressed when the wheel is being rolled.

We support a mouse device and there may be another custom device that support the wheel event. The device type is specified as type. The mouse wheel event can be sent to the specific actor but the custom wheel event will be sent to the stage.

Since :
2.4

Member Enumeration Documentation

Specifies the type of the wheel event.

Since :
2.4
Enumerator:
MOUSE_WHEEL 

Mouse wheel event.

Since :
2.4
CUSTOM_WHEEL 

Custom wheel event.

Since :
2.4

Constructor & Destructor Documentation

Default constructor.

Since :
2.4
Dali::WheelEvent::WheelEvent ( Type  type,
int  direction,
unsigned int  modifiers,
Vector2  point,
int  z,
unsigned int  timeStamp 
)

Constructor.

Since :
2.4
Parameters:
[in]typeThe type of the wheel event
[in]directionThe direction of wheel rolling (0 = default vertical wheel, 1 = horizontal wheel)
[in]modifiersModifier keys pressed during the event (such as shift, alt and control)
[in]pointThe co-ordinates of the cursor relative to the top-left of the screen.
[in]zThe offset of rolling (positive value means roll down or clockwise, and negative value means roll up or counter-clockwise)
[in]timeStampThe time the wheel is being rolled.

Destructor.

Since :
2.4

Member Function Documentation

Check to see if Alt key modifier has been supplied.

Since :
2.4
Returns:
True if alt modifier

Check to see if Ctrl (control) key modifier has been supplied.

Since :
2.4
Returns:
True if ctrl modifier

Check to see if Shift key modifier has been supplied.

Since :
2.4
Returns:
True if shift modifier

Member Data Documentation

The direction in which the wheel is being rolled.

0 means the default vertical wheel, and 1 means horizontal wheel

Type of the event.

See also:
Type