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

Functor to check whether an actor requires a particular gesture or not. More...

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

Public Member Functions

 GestureHitTestCheck (Gesture::Type type)
 
virtual bool IsActorHittable (Actor *actor)
 Called by the hit-test algorithm to determine whether the actor is hittable or not. More...
 
virtual bool DescendActorHierarchy (Actor *actor)
 Called by the hit-test algorithm to determine whether the algorithm should descend the actor's hierarchy (and hit-test its children as well). More...
 
virtual bool DoesLayerConsumeHit (Layer *layer)
 Called by the hit-test algorithm to determine whether the layer specified consumes the hit regardless of whether an actor in the layer requires it or not. More...
 

Public Attributes

Gesture::Type mType
 

Detailed Description

Functor to check whether an actor requires a particular gesture or not.

Definition at line 41 of file gesture-processor.cpp.

Constructor & Destructor Documentation

Dali::Internal::anonymous_namespace{gesture-processor.cpp}::GestureHitTestCheck::GestureHitTestCheck ( Gesture::Type  type)
inline

Definition at line 43 of file gesture-processor.cpp.

Member Function Documentation

virtual bool Dali::Internal::anonymous_namespace{gesture-processor.cpp}::GestureHitTestCheck::DescendActorHierarchy ( Actor actor)
inlinevirtual

Called by the hit-test algorithm to determine whether the algorithm should descend the actor's hierarchy (and hit-test its children as well).

Parameters
[in]actorRaw pointer to an Actor object.
Returns
true if we should descend the actor's hierarchy, false otherwise.

Implements Dali::Internal::HitTestAlgorithm::HitTestInterface.

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

References Dali::Internal::Actor::IsSensitive(), and Dali::Internal::Actor::IsVisible().

Here is the call graph for this function:

virtual bool Dali::Internal::anonymous_namespace{gesture-processor.cpp}::GestureHitTestCheck::DoesLayerConsumeHit ( Layer layer)
inlinevirtual

Called by the hit-test algorithm to determine whether the layer specified consumes the hit regardless of whether an actor in the layer requires it or not.

Note
If true is returned, then no layers behind this layer will be hit-test.
Parameters
[in]layerRaw pointer to a Layer object.
Returns
true if the layer should consume the hit, false otherwise.

Implements Dali::Internal::HitTestAlgorithm::HitTestInterface.

Definition at line 60 of file gesture-processor.cpp.

References Dali::Internal::Layer::IsTouchConsumed().

Here is the call graph for this function:

virtual bool Dali::Internal::anonymous_namespace{gesture-processor.cpp}::GestureHitTestCheck::IsActorHittable ( Actor actor)
inlinevirtual

Called by the hit-test algorithm to determine whether the actor is hittable or not.

Parameters
[in]actorRaw pointer to an Actor object.
Returns
true if actor is hittable, false otherwise.

Implements Dali::Internal::HitTestAlgorithm::HitTestInterface.

Definition at line 48 of file gesture-processor.cpp.

References Dali::Internal::Actor::IsGestureRequred(), Dali::Internal::Actor::IsHittable(), and Dali::Internal::anonymous_namespace{actor-impl.cpp}::mType.

Here is the call graph for this function:

Member Data Documentation

Gesture::Type Dali::Internal::anonymous_namespace{gesture-processor.cpp}::GestureHitTestCheck::mType

Definition at line 65 of file gesture-processor.cpp.


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