Kanzi  3.9.8
Kanzi Engine C++ API
kanzi::android_ws::AndroidWSInputDevice Class Reference

Class representing an input device for the default Android window surface EGL graphics output. More...

#include <kanzi/core.ui/platform/input_ng/android_ws/android_ws_input_device.hpp>

Public Member Functions

 AndroidWSInputDevice (unsigned int width, unsigned int height, const EventSourceProperties &properties)
 Constructor. More...
 
void gatherData (EventQueue &queue)
 Amends the given event queue with the events received so far. More...
 
KZ_NO_DISCARD NativeEventHandle getNativeEventHandle () const noexcept
 Gets the associated underlying native event handle. More...
 
KZ_NO_DISCARD KzsInputDeviceNativegetNativeHandle () const noexcept
 Gets the associated native handle. More...
 
 ~AndroidWSInputDevice ()
 Destructor. More...
 

Detailed Description

Class representing an input device for the default Android window surface EGL graphics output.

Since
Kanzi 3.9.8

Constructor & Destructor Documentation

kanzi::android_ws::AndroidWSInputDevice::AndroidWSInputDevice ( unsigned int  width,
unsigned int  height,
const EventSourceProperties properties 
)
explicit

Constructor.

Parameters
widthTouch screen width in pixels.
heightTouch screen height in pixels.
propertiesProperties to request for the input device.
kanzi::android_ws::AndroidWSInputDevice::~AndroidWSInputDevice ( )

Destructor.

Member Function Documentation

void kanzi::android_ws::AndroidWSInputDevice::gatherData ( EventQueue queue)

Amends the given event queue with the events received so far.

Parameters
queueEvent queue to amend. Do not clear nor assume to be empty.
KZ_NO_DISCARD NativeEventHandle kanzi::android_ws::AndroidWSInputDevice::getNativeEventHandle ( ) const
noexcept

Gets the associated underlying native event handle.

Returns
The native event handle.
KZ_NO_DISCARD KzsInputDeviceNative* kanzi::android_ws::AndroidWSInputDevice::getNativeHandle ( ) const
noexcept

Gets the associated native handle.

Returns
The native handle.

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