X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Ffocus-manager%2Ffocus-finder.h;h=47f313d60e89e8efd8090406859f1eb760a1e01f;hp=80126752ae610b266aa35af5ffa67acf097ddb43;hb=9b2486f5998dccbc50c3da9c63953a80df15e762;hpb=7cc63d45025745524bb621647ea430197988ca07 diff --git a/dali-toolkit/devel-api/focus-manager/focus-finder.h b/dali-toolkit/devel-api/focus-manager/focus-finder.h index 8012675..47f313d 100644 --- a/dali-toolkit/devel-api/focus-manager/focus-finder.h +++ b/dali-toolkit/devel-api/focus-manager/focus-finder.h @@ -25,50 +25,17 @@ namespace Dali { namespace Toolkit { -namespace Internal DALI_INTERNAL +namespace FocusFinder { -class FocusFinder; -} - /** - * FocusFinder - * This class used for finding the next focusable actor in a given direction - * from a actor that currently has focus. + * Get the nearest focusable actor. + * @param [in] focusedActor The current focused actor. + * @param [in] direction The direction. + * @return The nearest focusable actor, or an empty handle if none exists. */ -class DALI_TOOLKIT_API FocusFinder : public BaseHandle -{ -public: - /** - * Create a FocusFinder handle; this can be initialised with FocusFinder::Get() - * Calling member functions with an uninitialised handle is not allowed. - */ - FocusFinder(); - - /** - * @brief Destructor - * - * This is non-virtual since derived Handle types must not contain data or virtual methods. - */ - ~FocusFinder(); - - /** - * @brief Get the singleton of FocusFinder object. - * @return A handle to the FocusFinder control. - */ - static FocusFinder Get(); - - /** - * Get the nearest focusable actor. - * @param [in] focusedActor The current focused actor. - * @param [in] direction The direction. - * @return The nearest focusable actor, or null if none exists. - */ - Actor GetNearestFocusableActor(Actor focusedActor, Toolkit::Control::KeyboardFocus::Direction direction); - -private: - explicit DALI_INTERNAL FocusFinder(Internal::FocusFinder* impl); +DALI_TOOLKIT_API Actor GetNearestFocusableActor(Actor focusedActor, Toolkit::Control::KeyboardFocus::Direction direction); -}; // class FocusFinder +} // namespace FocusFinder } // namespace Toolkit