{\r
namespace Toolkit\r
{\r
-namespace Internal DALI_INTERNAL\r
+namespace FocusFinder\r
{\r
-class FocusFinder;\r
-}\r
\r
/**\r
- * FocusFinder\r
- * This class used for finding the next focusable actor in a given direction\r
- * from a actor that currently has focus.\r
+ * Get the nearest focusable actor.\r
+ * @param [in] rootActor The root actor.\r
+ * @param [in] focusedActor The current focused actor.\r
+ * @param [in] direction The direction.\r
+ * @return The nearest focusable actor, or an empty handle if none exists.\r
*/\r
-class DALI_TOOLKIT_API FocusFinder : public BaseHandle\r
-{\r
-public:\r
- /**\r
- * Create a FocusFinder handle; this can be initialised with FocusFinder::Get()\r
- * Calling member functions with an uninitialised handle is not allowed.\r
- */\r
- FocusFinder();\r
-\r
- /**\r
- * @brief Destructor\r
- *\r
- * This is non-virtual since derived Handle types must not contain data or virtual methods.\r
- */\r
- ~FocusFinder();\r
-\r
- /**\r
- * @brief Get the singleton of FocusFinder object.\r
- * @return A handle to the FocusFinder control.\r
- */\r
- static FocusFinder Get();\r
-\r
- /**\r
- * Get the nearest focusable actor.\r
- * @param [in] focusedActor The current focused actor.\r
- * @param [in] direction The direction.\r
- * @return The nearest focusable actor, or null if none exists.\r
- */\r
- Actor GetNearestFocusableActor(Actor focusedActor, Toolkit::Control::KeyboardFocus::Direction direction);\r
-\r
-private:\r
- explicit DALI_INTERNAL FocusFinder(Internal::FocusFinder* impl);\r
+DALI_TOOLKIT_API Actor GetNearestFocusableActor(Actor rootActor, Actor focusedActor, Toolkit::Control::KeyboardFocus::Direction direction);\r
\r
-}; // class FocusFinder\r
+} // namespace FocusFinder\r
\r
} // namespace Toolkit\r
\r