X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Flayouting%2Flinear-layout.h;h=07924db1c295a937d593fc1a2a49ebfa656a1daa;hp=8c6e51bb898eac368ca14062ac5635dd884113a5;hb=f647b3f3e3523f09a34003e50aafc8453cbb0dc7;hpb=3638fc255ad784cecea605d0e942391b9051ccd4 diff --git a/dali-toolkit/devel-api/layouting/linear-layout.h b/dali-toolkit/devel-api/layouting/linear-layout.h index 8c6e51b..07924db 100644 --- a/dali-toolkit/devel-api/layouting/linear-layout.h +++ b/dali-toolkit/devel-api/layouting/linear-layout.h @@ -37,7 +37,7 @@ class LinearLayout; * This class implements a linear box layout, automatically handling * right to left or left to right direction change. */ -class DALI_IMPORT_API LinearLayout : public LayoutGroup +class DALI_TOOLKIT_API LinearLayout : public LayoutGroup { public: @@ -57,6 +57,22 @@ public: }; /** + * @brief Enumeration for the alignment of the linear layout items. + */ + struct Alignment + { + enum Type + { + BEGIN = 0x1, ///< At the left/right edge of the container (maps to LTR/RTL direction for horizontal orientation) + END = 0x2, ///< At the right/left edge of the container (maps to LTR/RTL direction for horizontal orientation) + CENTER_HORIZONTAL = 0x4, ///< At the horizontal center of the container + TOP = 0x8, ///< At the top edge of the container + BOTTOM = 0x10, ///< At the bottom edge of the container + CENTER_VERTICAL = 0x20 ///< At the vertical center of the container + }; + }; + + /** * @brief Creates an uninitialized LinearLayout handle. * * Initialize it using LinearLayout::New(). @@ -109,7 +125,7 @@ public: * * @return The padding between cells. */ - LayoutSize GetCellPadding(); + LayoutSize GetCellPadding() const; /** * @brief Set the orientation in the layout @@ -123,7 +139,21 @@ public: * * @return The orientation. */ - Orientation GetOrientation(); + 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; public: // Not intended for application developers