EventΒΆ

Inherited: None

DescriptionΒΆ

Objects processing events by their virtual Object::event() function called. This function can be reimplemented in subclasses to add additional event handling or change existing.

Base Event contain only event type parameter. Subclasses of Event may contain additional parameters to describe particular events.

Public MethodsΒΆ

Event (uint32_t type)

uint32_t

type () const

Public EnumsΒΆ

enum Event::Type

This enum type defines base event types and can be extended by the user defined types. User Defined type of Event should be bigger than Event::UserType.

Constant

Value

Description

Event::Invalid

0

Invalid event.

Event::MethodCall

1

Receiver object should invoke method (MethodCallEvent).

Event::TimerEvent

2

Timer event (TimerEvent).

Event::Destroy

3

Reseiver object must be deleted immediately.

Event::LanguageChange

4

The application translation changed.

Event::FileSystemWatcher

5

Some file or directory was chanded.

Event::MouseDown

6

A mouse button was pressed.

Event::MouseUp

7

A mouse button was released.

Event::MouseMove

8

The mouse cursor moved.

Event::MouseDoubleClick

9

A mouse button was double-clicked.

Event::MouseWheel

10

The mouse wheel was moved.

Event::KeyEvent

11

A keyboard key event occurred.

Event::UserType

100

User defined event.

Static MethodsΒΆ

None

Methods DescriptionΒΆ

Event::Event (uint32_t type)

Constructs an Event with type of event.


uint32_t Event::type () const

Returns type of event.