Kanzi  3.9.4
Kanzi Engine API
kanzi::TouchPointIdEquals Struct Reference

Helper predicate functor which you can use to search for a touch point within a touch point container using the identifier of a touch point. More...

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

Public Member Functions

bool operator() (const TouchPoint &touchPoint) const
 Compares the ID of given touch point against the constructor argument. More...
 
bool operator() (const TouchPoint *touchPoint) const
 Compares the ID of given touch point against the constructor argument. More...
 
 TouchPointIdEquals (unsigned int id)
 Constructor. More...
 

Detailed Description

Helper predicate functor which you can use to search for a touch point within a touch point container using the identifier of a touch point.

Constructor & Destructor Documentation

◆ TouchPointIdEquals()

kanzi::TouchPointIdEquals::TouchPointIdEquals ( unsigned int  id)
inlineexplicit

Constructor.

Parameters
idTouch point ID to search for.

Member Function Documentation

◆ operator()() [1/2]

bool kanzi::TouchPointIdEquals::operator() ( const TouchPoint touchPoint) const
inline

Compares the ID of given touch point against the constructor argument.

Parameters
touchPointTouch point to compare.
Returns
If IDs of touch point match, true, otherwise false.

◆ operator()() [2/2]

bool kanzi::TouchPointIdEquals::operator() ( const TouchPoint touchPoint) const
inline

Compares the ID of given touch point against the constructor argument.

Parameters
touchPointPointer to touch point to compare.
Returns
If IDs of touch point match, true, otherwise false.

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