X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Flayouting%2Flayout-item-impl.h;h=3850e5f6dabb4c668236dafcb28917bff20f0b1b;hp=5f4c4a551c6421cf09d4f685da2facfdef41dc6e;hb=a6df5a1084f5784b49e20b4bb3298ca0a953bc35;hpb=e4235b523a775fbbee334dea6cd929a6f3ccbc80 diff --git a/dali-toolkit/devel-api/layouting/layout-item-impl.h b/dali-toolkit/devel-api/layouting/layout-item-impl.h index 5f4c4a5..3850e5f 100644 --- a/dali-toolkit/devel-api/layouting/layout-item-impl.h +++ b/dali-toolkit/devel-api/layouting/layout-item-impl.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include @@ -45,7 +45,7 @@ using LayoutItemPtr = IntrusivePtr; * Base class for layouts. */ class DALI_TOOLKIT_API LayoutItem : public BaseObject, - public LayoutParent + public LayoutChild { public: /** @@ -94,7 +94,8 @@ public: Handle GetOwner() const; /** - * @brief Unparent this layout from it's owner, and remove any layout children in derived types + * @brief Unparent this layout from it's parent, remove it from it's owner + * and remove any layout children in derived types. */ void Unparent(); @@ -113,16 +114,6 @@ public: bool IsLayoutAnimated() const; /** - * @brief Register child properties of layout with owner type. - * - * The Actor hierarchy uses these registered properties in the type - * system to ensure child custom properties are properly initialized. - * - * @param[in] containerType The type of the containing view (owner) - */ - void RegisterChildProperties( const std::string& containerType ); - - /** * @brief This is called to find out how big a layout should be. * * The parent supplies constraint information in the width and height parameters. @@ -168,14 +159,14 @@ public: static LayoutLength GetDefaultSize( LayoutLength size, MeasureSpec measureSpec ); /** - * @copydoc LayoutParent::SetParent + * @copydoc LayoutChild::SetParent */ - virtual void SetParent( LayoutParent* parent ) override; + void SetParent( LayoutParent* parent ) override; /** - * @copydoc LayoutParent::GetParent + * @copydoc LayoutChild::GetParent */ - virtual LayoutParent* GetParent() override; + LayoutParent* GetParent() override; /** * @brief Request that this layout is re-laid out. @@ -197,6 +188,18 @@ public: void SetLayoutRequested(); /** + * @brief Checks if the Resize policy is being used for this LayoutItem + * @return true is ResizePolicy is used + */ + bool IsResizePolicyRequired() const; + + /** + * @brief Sets if the ResizePolicy is needed or not for this LayoutItem + * @param[in] resizeRequired true or false flag + */ + void SetResizePolicyRequired( bool resizeRequired ); + + /** * @brief Get the measured width (without any measurement flags). * * This method should be used only during measurement and layout calculations. @@ -429,6 +432,11 @@ protected: */ virtual void OnInitialize(); + /** + * @brief Called when a layer animation state is changed. + */ + virtual void OnAnimationStateChanged( bool animateLayout ) {} + private: /** * @brief Called to change the size of the layout. @@ -445,6 +453,16 @@ private: */ void OnLayoutAnimationFinished( Animation& animation ); + /** + * @brief Register child properties of layout with owner type. + * + * The Actor hierarchy uses these registered properties in the type + * system to ensure child custom properties are properly initialized. + * + * @param[in] containerType The type of the containing view (owner) + */ + void RegisterChildProperties( const std::string& containerType ); + public: class Impl; // Class declaration is public so we can add devel API's in the future