X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Flayouting%2Flayout-group-impl.h;h=ee73c889df06383768e2dca8c400c796a3bf5ab2;hb=7742c07e1fdc5d78bab7c2c9cc5d7803f04fb012;hp=36e0312c919614970c5acd863621d21201f3a073;hpb=48f47cc7a6cad034d14f571e8b5839d678cde799;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/layouting/layout-group-impl.h b/dali-toolkit/devel-api/layouting/layout-group-impl.h index 36e0312..ee73c88 100644 --- a/dali-toolkit/devel-api/layouting/layout-group-impl.h +++ b/dali-toolkit/devel-api/layouting/layout-group-impl.h @@ -65,6 +65,14 @@ public: */ LayoutGroup(); + /** + * @brief Construct + * + * @param[in] owner The owner (container view / child view / visual ) of this layout + * @return a new LayoutGroup object + */ + static LayoutGroupPtr New( Handle& owner ); + protected: /** * Virtual destructor may only be called by Unreference() @@ -96,6 +104,26 @@ public: void Remove( LayoutItem& child ) override; /** + * @brief Insert a child to the parent + * @param[in] target The target item + * @param[in] child The item to insert to this layout parent + */ + Toolkit::LayoutGroup::LayoutId Insert( LayoutItem& target, LayoutItem& child ) override; + + /** + * @brief Move a child to another position + * @param[in] target The target item + * @param[in] child The item to move + */ + Toolkit::LayoutGroup::LayoutId Move( LayoutItem& target, LayoutItem& child ) override; + + /** + * @brief Move a child to back + * @param[in] child The item to move + */ + Toolkit::LayoutGroup::LayoutId MoveBack( LayoutItem& child ) override; + + /** * @brief Remove all layout children. * * @note This will not unparent owner's children @@ -228,6 +256,15 @@ protected: LayoutLength widthUsed, MeasureSpec parentHeightMeasureSpec, LayoutLength heightUsed ); + /** + * @copydoc LayoutItem::OnMeasure + */ + virtual void OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeasureSpec ) override; + + /** + * @copydoc LayoutItem::OnLayout + */ + virtual void OnLayout( bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom ) override; private: /** @@ -264,7 +301,7 @@ private: /** * Callback when child order is changed */ - void ChildOrderChanged(); + void ChildOrderChanged( Actor child ); /** * Callback when an owner property is set. Triggers a relayout if it's a child property