X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fcontrol-devel.h;h=aa478095f9c79d720d026c9fc51022bce4d2f93b;hb=refs%2Fheads%2Fdevel%2Flayout-fw;hp=817efd03bd93958b6ca65fea5dba15ad5a633d61;hpb=ecf31ea6865a0ebd5b668166427def6499b3ddc1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/control-devel.h b/dali-toolkit/devel-api/controls/control-devel.h old mode 100644 new mode 100755 index 817efd0..aa47809 --- a/dali-toolkit/devel-api/controls/control-devel.h +++ b/dali-toolkit/devel-api/controls/control-devel.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_CONTROL_DEVEL_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -17,10 +17,13 @@ * limitations under the License. * */ +// EXTERNAL INCLUDES +#include // INTERNAL INCLUDES #include #include +#include namespace Dali { @@ -214,14 +217,22 @@ DALI_IMPORT_API void EnableVisual( Internal::Control& control, Dali::Property::I */ DALI_IMPORT_API bool IsVisualEnabled( const Internal::Control& control, Dali::Property::Index index ); + /** - * @brief Get the loading state of the visual resource. + * @brief Add a transition effect on the control to the given animation + * + * Only generates an animator if the properties described in the transition + * data are staged (e.g. the visual is Enabled and the control is on stage). + * Otherwise the target values are stored, and will get set onto the properties + * when the visual is next staged. * * @param[in] control The control - * @param[in] index The Property index of the visual - * @return Return the loading status (PREPARING, READY and FAILED) of visual resource + * @param[in] animation The Animation to add valid transitions to + * @param[in] transitionData The transition data describing the effect to create */ -DALI_IMPORT_API Toolkit::Visual::ResourceStatus GetVisualResourceStatus( const Internal::Control& control, Dali::Property::Index index ); +DALI_IMPORT_API void AddTransitions( Internal::Control& control, + Dali::Animation animation, + const Toolkit::TransitionData& transitionData ); /** * @brief Create a transition effect on the control. @@ -236,7 +247,58 @@ DALI_IMPORT_API Toolkit::Visual::ResourceStatus GetVisualResourceStatus( const I * @return A handle to an animation defined with the given effect, or an empty * handle if no properties match. */ -DALI_IMPORT_API Dali::Animation CreateTransition( Internal::Control& control, const Toolkit::TransitionData& transitionData ); +DALI_IMPORT_API Dali::Animation CreateTransition( Internal::Control& control, + const Toolkit::TransitionData& transitionData ); + +/** + * @brief Perform an action on a visual registered to this control. + * + * Visuals will have actions, this API is used to perform one of these actions with the given attributes. + * + * @param[in] control The control. + * @param[in] visualIndex The Property index of the visual. + * @param[in] actionId The action to perform. See Visual to find supported actions. + * @param[in] attributes Optional attributes for the action. + */ +DALI_IMPORT_API void DoAction( Control& control, Dali::Property::Index visualIndex, Dali::Property::Index actionId, const Dali::Property::Value attributes ); + +/** + * @brief Set input method context. + * + * @param[in] control The control. + * @param[in] inputMethodContext The input method context. + */ +DALI_IMPORT_API void SetInputMethodContext( Internal::Control& control, InputMethodContext& inputMethodContext ); + +/* + * @brief Get the layout associated with this control, if any. + * + * @return A handle to the layout, or empty. + */ +DALI_IMPORT_API Toolkit::LayoutBase GetLayout( Internal::Control& control ); + +/* + * @brief Get the layout associated with a control, if any. + * + * @return A handle to the layout, or empty. + */ +DALI_IMPORT_API Toolkit::LayoutBase GetLayout( Control control ); + +/** + * @brief Set the layout on this control. + * + * @param[in] control The internal Control to set the layout on + * @param[in] layout Pointer to the layout + */ +DALI_IMPORT_API void SetLayout( Internal::Control& control, Toolkit::LayoutBase layout ); + +/** + * @brief Set the layout on a control. + * + * @param[in] control The Control to set the layout on + * @param[in] layout Pointer to the layout + */ +DALI_IMPORT_API void SetLayout( Control control, Toolkit::LayoutBase layout ); } // namespace DevelControl