Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes
Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper Struct Reference

Creates an Actor handle so that a HitTestFunction provided via the public API can be called. More...

Inheritance diagram for Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper:
Collaboration graph
[legend]

Public Member Functions

 HitTestFunctionWrapper (Dali::HitTestAlgorithm::HitTestFunction func)
 Constructor. More...
 
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

Dali::HitTestAlgorithm::HitTestFunction mFunc
 

Detailed Description

Creates an Actor handle so that a HitTestFunction provided via the public API can be called.

Definition at line 73 of file hit-test-algorithm-impl.cpp.

Constructor & Destructor Documentation

Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper::HitTestFunctionWrapper ( Dali::HitTestAlgorithm::HitTestFunction  func)
inline

Constructor.

Parameters
[in]funcHitTestFunction to call with an Actor handle.

Definition at line 80 of file hit-test-algorithm-impl.cpp.

Member Function Documentation

virtual bool Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper::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 90 of file hit-test-algorithm-impl.cpp.

References Dali::HitTestAlgorithm::DESCEND_ACTOR_TREE.

virtual bool Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper::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 95 of file hit-test-algorithm-impl.cpp.

virtual bool Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper::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 85 of file hit-test-algorithm-impl.cpp.

References Dali::HitTestAlgorithm::CHECK_ACTOR.

Member Data Documentation

Dali::HitTestAlgorithm::HitTestFunction Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::HitTestFunctionWrapper::mFunc

Definition at line 103 of file hit-test-algorithm-impl.cpp.


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