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

 TouchPointIdEquals (unsigned int id)
 Constructor. More...
 
bool operator() (const KzuInputTouchPoint &touchPoint) const
 Compares the ID of given touch point against constructor argument. More...
 
bool operator() (const KzuInputTouchPoint *touchPoint) const
 Compares the ID of given touch point against constructor argument. 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

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

Constructor.

Parameters
idTouch point id to search for.

Member Function Documentation

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

Compares the ID of given touch point against constructor argument.

Parameters
touchPointTouch point to compare.
Returns
True, if IDs of touch point match, otherwise false.
bool kanzi::TouchPointIdEquals::operator() ( const KzuInputTouchPoint touchPoint) const
inline

Compares the ID of given touch point against constructor argument.

Parameters
touchPointPointer to touch point to compare.
Returns
True, if IDs of touch point match, otherwise false.

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