Dali 3D User Interface Engine
Classes | Namespaces | Typedefs | Enumerations | Functions
hit-test-algorithm.h File Reference
#include <dali/public-api/actors/actor.h>
#include <dali/public-api/common/stage.h>
Include dependency graph for hit-test-algorithm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Dali::HitTestAlgorithm::Results
 Results structure containing the hit actor and where it was hit. More...
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::HitTestAlgorithm
 This namespace is provided for application developers to do hit-test for the actors.
 

Typedefs

typedef bool(* Dali::HitTestAlgorithm::HitTestFunction )(Actor actor, TraverseType type)
 Definition of a hit-test function to use in HitTest() method to check if the actor is hittable (e.g. More...
 

Enumerations

enum  Dali::HitTestAlgorithm::TraverseType { Dali::HitTestAlgorithm::CHECK_ACTOR, Dali::HitTestAlgorithm::DESCEND_ACTOR_TREE }
 How the actor tree should be traversed. More...
 

Functions

bool Dali::HitTestAlgorithm::HitTest (Stage stage, const Vector2 &screenCoordinates, Results &results, HitTestFunction func)
 Given screen coordinates, this method returns the hit actor & the local coordinates relative to the top-left (0.0f, 0.0f, 0.5f) of the actor. More...
 
bool Dali::HitTestAlgorithm::HitTest (RenderTask &renderTask, const Vector2 &screenCoordinates, Results &results, HitTestFunction func)
 Hit test specific to a given RenderTask. More...
 
Dali Docs Home
Read more about Dali