Use modern construct 'using' instead of typedef.
[platform/core/uifw/dali-core.git] / dali / devel-api / events / hit-test-algorithm.h
index 02d8c3b..c3f1c5a 100644 (file)
@@ -2,7 +2,7 @@
 #define  __DALI_HIT_TEST_ALGORITHM_H__
 
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,7 +19,8 @@
  */
 
 #include <dali/public-api/actors/actor.h>
-#include <dali/public-api/common/stage.h>
+#include <dali/devel-api/common/stage.h>
+#include <dali/integration-api/scene.h>
 
 
 namespace Dali
@@ -125,7 +126,7 @@ struct Results
  *
  * @return true, if the actor is hittable, false otherwise.
  */
-typedef bool (*HitTestFunction)(Actor actor, TraverseType type);
+using HitTestFunction = bool ( * )( Actor, TraverseType );
 
 /**
  * @brief Given screen coordinates, this method returns the hit actor & the local coordinates relative to