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

 TouchPointStateEquals (KzuInputTouchPointState state)
 Constructor. More...
 
bool operator() (const KzuInputTouchPoint &touchPoint) const
 Compares state of given touch point against constructor argument. More...
 
bool operator() (const KzuInputTouchPoint *touchPoint) const
 Compares state of given touch point against constructor argument. 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 ( KzuInputTouchPointState  state)
inlineexplicit

Constructor.

Parameters
stateTouch point state to search for.

Member Function Documentation

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

Compares state of given touch point against constructor argument.

Parameters
touchPointTouch point to compare.
Returns
True, if touch point states match.
bool kanzi::TouchPointStateEquals::operator() ( const KzuInputTouchPoint touchPoint) const
inline

Compares state of given touch point against constructor argument.

Parameters
touchPointPointer to touch point to compare.
Returns
True, if touch point states match.

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