kanzi::TouchPointStateEquals Struct Reference

Helper predicate functor for searching within touch point containers. 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...
 

Public Attributes

KzuInputTouchPointState touchPointState
 Touch point state argument. More...
 

Detailed Description

Helper predicate functor for searching within touch point containers.

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.

Member Data Documentation

KzuInputTouchPointState kanzi::TouchPointStateEquals::touchPointState

Touch point state argument.


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