kanzi::EventFilter Class Reference

EventFilter class. More...

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

Public Member Functions

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

Protected Member Functions

void processDiscardFilter (const struct KzsEventQueue &queueIn, struct KzsEventQueue &queueOut)
 Discards events as specified by the constructor arguments. More...
 

Protected Attributes

enum KzsInputTranslation m_eventTranslation
 Translation of input event coordinates. More...
 
enum KzsInputOrientation m_eventOrientation
 Orientation of input event coordinates. More...
 
unsigned int m_eventAreaWidth
 Input event area width. More...
 
unsigned int m_eventAreaHeight
 Input event area height. More...
 
Matrix3x3 m_eventTransformation
 Input event area height. More...
 
struct KzsEventQueue * m_eventQueueBuffer
 Buffer used during calculations. More...
 
bool m_discardPointerEvents
 Whether pointer events are discarded. More...
 
bool m_discardTouchEvents
 Whether touch events are discarded. 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 ( struct KzsEventQueue &  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.

void kanzi::EventFilter::processDiscardFilter ( const struct KzsEventQueue &  queueIn,
struct KzsEventQueue &  queueOut 
)
protected

Discards events as specified by the constructor arguments.

Member Data Documentation

enum KzsInputTranslation kanzi::EventFilter::m_eventTranslation
protected

Translation of input event coordinates.

enum KzsInputOrientation kanzi::EventFilter::m_eventOrientation
protected

Orientation of input event coordinates.

unsigned int kanzi::EventFilter::m_eventAreaWidth
protected

Input event area width.

unsigned int kanzi::EventFilter::m_eventAreaHeight
protected

Input event area height.

Matrix3x3 kanzi::EventFilter::m_eventTransformation
protected

Input event area height.

struct KzsEventQueue* kanzi::EventFilter::m_eventQueueBuffer
protected

Buffer used during calculations.

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: