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=23f3184d9c02320fb5a0a2d927f8f46620cf167d;hp=d9fb90a0cf969788cb39d24c558abde2eb629296;hb=f647b3f3e3523f09a34003e50aafc8453cbb0dc7;hpb=3638fc255ad784cecea605d0e942391b9051ccd4;ds=sidebyside diff --git a/dali-toolkit/internal/layouting/linear-layout-impl.h b/dali-toolkit/internal/layouting/linear-layout-impl.h index d9fb90a..23f3184 100644 --- a/dali-toolkit/internal/layouting/linear-layout-impl.h +++ b/dali-toolkit/internal/layouting/linear-layout-impl.h @@ -35,16 +35,63 @@ 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(); /** @@ -94,6 +141,7 @@ private: private: LayoutSize mCellPadding; Dali::Toolkit::LinearLayout::Orientation mOrientation; + unsigned int mAlignment; LayoutLength mTotalLength; };