X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Flayouting%2Flinear-layout-impl.h;h=5f39ad2393e6d881a0c93f81b92b5ddf77e36c95;hp=d9fb90a0cf969788cb39d24c558abde2eb629296;hb=267bed869a0b35414526b5c393fc2586603ee173;hpb=037105035b2a204701fedde9fd7dcaa8e95d658b diff --git a/dali-toolkit/internal/layouting/linear-layout-impl.h b/dali-toolkit/internal/layouting/linear-layout-impl.h index d9fb90a..5f39ad2 100644 --- a/dali-toolkit/internal/layouting/linear-layout-impl.h +++ b/dali-toolkit/internal/layouting/linear-layout-impl.h @@ -35,19 +35,76 @@ using LinearLayoutPtr = IntrusivePtr; class LinearLayout final : public LayoutGroup { public: + /** + * Creates a pointer to a LinearLayout implementation. + */ static LinearLayoutPtr New(); public: + /** + * @brief Set the padding between cells in the layout + * + * @param[in] size The padding between cells. + */ void SetCellPadding( LayoutSize size ); - LayoutSize GetCellPadding(); + + /** + * @brief Get the padding between cells in the layout + * + * @return The padding between cells. + */ + LayoutSize GetCellPadding() const; + + /** + * @brief Set the orientation in the layout + * + * @param[in] orientation The orientation. + */ void SetOrientation( Dali::Toolkit::LinearLayout::Orientation orientation ); - Dali::Toolkit::LinearLayout::Orientation GetOrientation(); + + /** + * @brief Get the orientation in the layout + * + * @return The orientation. + */ + Dali::Toolkit::LinearLayout::Orientation GetOrientation() const; + + /** + * @brief Set the alignment in the layout + * + * @param[in] alignment The alignment. + */ + void SetAlignment( unsigned int alignment ); + + /** + * @brief Get the alignment in the layout + * + * @return The alignment. + */ + unsigned int GetAlignment() const; protected: + /** + * Default Constructor + */ LinearLayout(); + + /** + * Destructor + */ virtual ~LinearLayout(); /** + * @copydoc LayoutItem::DoRegisterChildProperties() + */ + virtual void DoRegisterChildProperties( const std::string& containerType ) override; + + /** + * @copydoc LayoutItem::OnChildAdd + */ + virtual void OnChildAdd( LayoutItem& child ) override; + + /** * @copydoc LayoutItem::OnMeasure */ virtual void OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeasureSpec ) override; @@ -94,6 +151,7 @@ private: private: LayoutSize mCellPadding; Dali::Toolkit::LinearLayout::Orientation mOrientation; + unsigned int mAlignment; LayoutLength mTotalLength; };