Kanzi  3.9.6
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

◆ EventFilter()

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

Constructor.

◆ ~EventFilter()

kanzi::EventFilter::~EventFilter ( )

Destructor.

Member Function Documentation

◆ process()

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.

◆ setTransformation()

void kanzi::EventFilter::setTransformation ( const Matrix3x3 transformation)

Sets the transformation property.

Member Data Documentation

◆ m_eventTranslation

InputTranslation kanzi::EventFilter::m_eventTranslation
protected

Translation of input event coordinates.

◆ m_eventTransformation

Matrix3x3 kanzi::EventFilter::m_eventTransformation
protected

Input event area height.

◆ m_discardPointerEvents

bool kanzi::EventFilter::m_discardPointerEvents
protected

Whether pointer events are discarded.

◆ m_discardTouchEvents

bool kanzi::EventFilter::m_discardTouchEvents
protected

Whether touch events are discarded.


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