Kanzi  3.9.7
Kanzi Engine API
kanzi::EventFilter Class Reference

EventFilter class. More...

#include <kanzi/core.ui/input/event_filter.hpp>

Public Member Functions

 EventFilter (const EventSourceProperties &properties)
 Constructor. More...
 
void process (EventQueue &queue)
 Filters events. More...
 
void setTransformation (const Matrix3x3 &transformation)
 Sets the transformation property. More...
 
 ~EventFilter ()
 Destructor. More...
 

Protected Attributes

bool m_discardPointerEvents
 Whether pointer events are discarded. More...
 
bool m_discardTouchEvents
 Whether touch events are discarded. More...
 
Matrix3x3 m_eventTransformation
 Input event area height. More...
 
InputTranslation m_eventTranslation
 Translation of input event coordinates. More...
 

Detailed Description

EventFilter class.

Translates, orients, transforms and coalesces events.

Constructor & Destructor Documentation

kanzi::EventFilter::EventFilter ( const EventSourceProperties properties)
explicit

Constructor.

kanzi::EventFilter::~EventFilter ( )

Destructor.

Member Function Documentation

void kanzi::EventFilter::process ( EventQueue queue)

Filters events.

The events in the given event queue are filtered based on the settings of the filter.

Note
The length of the event queue may be different after filtering.
void kanzi::EventFilter::setTransformation ( const Matrix3x3 transformation)

Sets the transformation property.

Member Data Documentation

InputTranslation kanzi::EventFilter::m_eventTranslation
protected

Translation of input event coordinates.

Matrix3x3 kanzi::EventFilter::m_eventTransformation
protected

Input event area height.

bool kanzi::EventFilter::m_discardPointerEvents
protected

Whether pointer events are discarded.

bool kanzi::EventFilter::m_discardTouchEvents
protected

Whether touch events are discarded.


The documentation for this class was generated from the following file: