Dali 3D User Interface Engine
hit-test-algorithm.h
Go to the documentation of this file.
1 #ifndef __DALI_HIT_TEST_ALGORITHM_H__
2 #define __DALI_HIT_TEST_ALGORITHM_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
23 
24 
25 namespace Dali
26 {
27 
28 class RenderTask;
29 
102 namespace HitTestAlgorithm
103 {
104 
109 {
112 };
113 
117 struct Results
118 {
121 };
122 
128 typedef bool (*HitTestFunction)(Actor actor, TraverseType type);
129 
146 DALI_IMPORT_API bool HitTest( Stage stage, const Vector2& screenCoordinates, Results& results, HitTestFunction func );
147 
157 DALI_IMPORT_API bool HitTest( RenderTask& renderTask, const Vector2& screenCoordinates, Results& results, HitTestFunction func );
158 
159 } // namespace HitTestAlgorithm
160 
161 } // namespace Dali
162 
163 #endif // __DALI_HIT_TEST_ALGORITHM_H__
Dali Docs Home
Read more about Dali