ConsumeTrackpadEvent

Since: BlackBerry 10.3.1

#include <bb/cascades/ConsumeTrackpadEvent>

Represents different trackpad event types to be consumed.

Use this class to specify what types of trackpad events should be consumed by the TrackpadHandler.


Overview

Public Types Index

enum Type

None (0 << 0), Left (1 << 0), Right (1 << 1), Up (1 << 2), Down (1 << 3), Horizontal (Left | Right), Vertical (Up | Down), Press (1 << 4), Release (1 << 5), Any (Horizontal | Vertical | Press | Release)

Public Functions Index

Q_DECLARE_FLAGS (Types, Type)

Public Types

Type

The trackpad event types to be consumed.

Since:

BlackBerry 10.3.1

None (0 << 0)

Don't consume any event.

Left (1 << 0)

Consumes the events in the left direction.

Since:

BlackBerry 10.3.1

Right (1 << 1)

Consumes the events in the right direction.

Since:

BlackBerry 10.3.1

Up (1 << 2)

Consumes the events in the up direction.

Since:

BlackBerry 10.3.1

Down (1 << 3)

Consumes the events in the down direction.

Since:

BlackBerry 10.3.1

Horizontal (Left | Right)

Consumes the events in both left and right directions.

Since:

BlackBerry 10.3.1

Vertical (Up | Down)

Consumes the events in both up and down directions.

Since:

BlackBerry 10.3.1

Press (1 << 4)

Consumes the press events.

Since:

BlackBerry 10.3.1

Release (1 << 5)

Consumes the release events.

Since:

BlackBerry 10.3.1

Any (Horizontal | Vertical | Press | Release)

Consumes all the events.

Since:

BlackBerry 10.3.1

Public Functions

Q_DECLARE_FLAGS (

Defines the combinations of trackpad event types to be consumed.

This flag overrides the default ConsumeTrackpadEvent for a control.

Since:

BlackBerry 10.3.1

Last modified: 2015-01-22



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus