Kanzi Connect 3.9.10
kanzi::connect::InputEventForwarder Class Reference

Input manipulator for kanzi connect which forwards input touch events to input service. More...

#include <input_event_forwarder.hpp>

Inheritance diagram for kanzi::connect::InputEventForwarder:

Public Member Functions

 InputEventForwarder (Domain *domain, InputServiceClientSharedPtr service, ManipulatorType type=ManipulatorType::TouchInputHandler)
 Constructor.
 
virtual bool notifyKeyInput (const KeyEvent &event) override
 Handle the key events within the node.
 
virtual void notifyTouchInside (const TouchInfo &touchInfo) override
 Handle the touch events within the area.
 
void setGeometry (const Vector2 &topLeft, const Vector2 &size)
 Set active area for capture start point.
 
void setInputStreamId (string streamId, bool clearStreamIdHash)
 
void setInputStreamIdHash (int streamIdHash)
 
virtual ~InputEventForwarder () override=default
 dtor
 

Detailed Description

Input manipulator for kanzi connect which forwards input touch events to input service.

Constructor & Destructor Documentation

◆ InputEventForwarder()

kanzi::connect::InputEventForwarder::InputEventForwarder ( Domain * domain,
InputServiceClientSharedPtr service,
ManipulatorType type = ManipulatorType::TouchInputHandler )
explicit

Constructor.

Parameters
domainThe UI domain
serviceThe input service instance which is used to pass events to server

◆ ~InputEventForwarder()

virtual kanzi::connect::InputEventForwarder::~InputEventForwarder ( )
overridevirtualdefault

dtor

Member Function Documentation

◆ notifyKeyInput()

virtual bool kanzi::connect::InputEventForwarder::notifyKeyInput ( const KeyEvent & event)
overridevirtual

Handle the key events within the node.

◆ notifyTouchInside()

virtual void kanzi::connect::InputEventForwarder::notifyTouchInside ( const TouchInfo & touchInfo)
overridevirtual

Handle the touch events within the area.

◆ setGeometry()

void kanzi::connect::InputEventForwarder::setGeometry ( const Vector2 & topLeft,
const Vector2 & size )

Set active area for capture start point.

In node coordinates

Parameters
topLeftThe coordinates of top left corner
sizeThe width and length of the area

◆ setInputStreamId()

void kanzi::connect::InputEventForwarder::setInputStreamId ( string streamId,
bool clearStreamIdHash )
inline

◆ setInputStreamIdHash()

void kanzi::connect::InputEventForwarder::setInputStreamIdHash ( int streamIdHash)
inline

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