X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fcustom-layout-impl.h;h=06c67e0ab46c5fbf76a88a644e9ff64b35ec21c9;hp=b2dcb9948dfaee12f28aceef35851a18616b0735;hb=f66c8a201b4ca45d2b65229bdae411b6e18633fa;hpb=428cb5932b23d06d1871c0935d2462cc362828ea diff --git a/automated-tests/src/dali-toolkit/custom-layout-impl.h b/automated-tests/src/dali-toolkit/custom-layout-impl.h index b2dcb99..06c67e0 100644 --- a/automated-tests/src/dali-toolkit/custom-layout-impl.h +++ b/automated-tests/src/dali-toolkit/custom-layout-impl.h @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include #include +#include // INTERNAL INCLUDES #include "custom-layout.h" @@ -57,12 +58,27 @@ public: CustomLayout( CustomLayout&& other ) = default; CustomLayout& operator=( CustomLayout&& other ) = default; + /** + * @copydoc CustomLayout::SetCustomBehaviourFlag + */ + void SetCustomBehaviourFlag( int flag ); + + /** + * @copydoc CustomLayout::GetCustomBehaviourFlags + */ + bool GetCustomBehaviourFlags( int flagToCheck ); + + /** + * @copydoc CustomLayout::ClearPrivateFlag + */ + void ClearPrivateFlag( int flag ); + private: /** * @brief Default Constructor */ - CustomLayout() = default; + CustomLayout(); /** * Virtual Destructor @@ -83,6 +99,20 @@ private: */ virtual void OnLayout( bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom ) override; + /** + * Measure children with parent's measure spec unless BehaviourFlag set to use an unconstrained width or height. + * @param[in] childLayout child to measure + * @param[in] widthMeasureSpec default layout width measure spec + * @param[in] heightMeasureSpec default layout height measure spec + * @param[out] resultingWidth resulting width of layout after children are measured + * @param[out] resultingHeight resulting height of layout after children are measured + */ + void MeasureChildren( Dali::Toolkit::Internal::LayoutItemPtr childLayout, MeasureSpec widthMeasureSpec, MeasureSpec heightMeasureSpec, LayoutLength resultingWidth, LayoutLength resultingHeight ); + + private: + + int mBehaviourFlags; // flags to alter behaviour of this custom layout + }; } // namespace Internal