Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes
Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor Struct Reference

Functor which checks whether the specified actor is attached to the gesture detector. More...

Collaboration diagram for Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor:
Collaboration graph
[legend]

Public Member Functions

 IsNotAttachedAndOutsideTouchesRangeFunctor (Actor *actor, unsigned int touches, GestureDetectorContainer &outsideRangeEmitters)
 Constructor. More...
 
bool operator() (GestureDetector *detector) const
 Returns true if not attached, false if it is still attached. More...
 

Public Attributes

ActoractorToCheck
 The actor to check whether it is attached or not. More...
 
unsigned int numberOfTouches
 The number of touches in the pan event. More...
 
GestureDetectorContaineroutsideTouchesRangeEmitters
 Emitters that are outside of the range of current pan. More...
 

Detailed Description

Functor which checks whether the specified actor is attached to the gesture detector.

If the actor is attached, it also checks whether the number of touches of the current pan event are within the range of that expected by the detector. It returns true if it is no longer attached or the touches are out of range. This can be used in remove_if functions.

Definition at line 54 of file pan-gesture-processor.cpp.

Constructor & Destructor Documentation

Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor::IsNotAttachedAndOutsideTouchesRangeFunctor ( Actor actor,
unsigned int  touches,
GestureDetectorContainer outsideRangeEmitters 
)
inline

Constructor.

Parameters
[in]actorThe actor to check whether it is attached.
[in]touchesThe number of touches in the current pan event.
[in]outsideRangeEmittersReference to container where emitters outside of the touches range should be added.

Definition at line 62 of file pan-gesture-processor.cpp.

Member Function Documentation

bool Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor::operator() ( GestureDetector detector) const
inline

Returns true if not attached, false if it is still attached.

Additionally, checks if the number of touches has changed and stops sending the pan to a particular detector if it exceeds the range of that detector.

Parameters
[in]detectorThe detector to check.
Returns
true, if not attached, false otherwise.

Definition at line 76 of file pan-gesture-processor.cpp.

References Dali::Internal::PanGestureDetector::GetMaximumTouchesRequired(), and Dali::Internal::GestureDetector::IsAttached().

Here is the call graph for this function:

Member Data Documentation

Actor* Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor::actorToCheck

The actor to check whether it is attached or not.

Definition at line 97 of file pan-gesture-processor.cpp.

unsigned int Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor::numberOfTouches

The number of touches in the pan event.

Definition at line 98 of file pan-gesture-processor.cpp.

GestureDetectorContainer& Dali::Internal::anonymous_namespace{pan-gesture-processor.cpp}::IsNotAttachedAndOutsideTouchesRangeFunctor::outsideTouchesRangeEmitters

Emitters that are outside of the range of current pan.

Definition at line 99 of file pan-gesture-processor.cpp.


The documentation for this struct was generated from the following file:
Dali Docs Home
Read more about Dali