Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::TouchPointStateEquals Struct Reference

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

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

Public Member Functions

bool operator() (const TouchPoint &touchPoint) const
 Compares the state of given touch point against the constructor argument. More...
 
bool operator() (const TouchPoint *touchPoint) const
 Compares the state of given touch point against the constructor argument. More...
 
 TouchPointStateEquals (TouchPointState state)
 Constructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

kanzi::TouchPointStateEquals::TouchPointStateEquals ( TouchPointState  state)
inlineexplicit

Constructor.

Parameters
stateTouch point state to search for.

Member Function Documentation

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

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

Parameters
touchPointTouch point to compare.
Returns
If touch point states match, true, otherwise false.
bool kanzi::TouchPointStateEquals::operator() ( const TouchPoint touchPoint) const
inline

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

Parameters
touchPointPointer to a touch point to compare.
Returns
If touch point states match, true, otherwise false.

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