X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flayouts%2Flayout-engine.h;h=e48de907a30b7f4d4bd1ba1011d6184c07860666;hb=a7646628bf0d87a7f9e02d8f4db52dea881579c7;hp=093399b523ddd18c2e50aa914b38d8b3b9bf01ca;hpb=10d2080e1d25b75347daa2f8c2dcee494fbcb175;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/layouts/layout-engine.h b/dali-toolkit/internal/text/layouts/layout-engine.h index 093399b..e48de90 100644 --- a/dali-toolkit/internal/text/layouts/layout-engine.h +++ b/dali-toolkit/internal/text/layouts/layout-engine.h @@ -51,11 +51,18 @@ public: MULTI_LINE_BOX }; - enum Alignment + enum HorizontalAlignment { - ALIGN_BEGIN, - ALIGN_CENTER, - ALIGN_END + HORIZONTAL_ALIGN_BEGIN, + HORIZONTAL_ALIGN_CENTER, + HORIZONTAL_ALIGN_END + }; + + enum VerticalAlignment + { + VERTICAL_ALIGN_TOP, + VERTICAL_ALIGN_CENTER, + VERTICAL_ALIGN_BOTTOM }; /** @@ -83,18 +90,44 @@ public: unsigned int GetLayout() const; /** - * @brief Choose the required line alignment. + * @brief Enable or disable the text ellipsis. + * + * @param[in] enabled Whether to enable the text ellipsis. + */ + void SetTextEllipsisEnabled( bool enabled ); + + /** + * @return Whether the text ellipsis is enabled. + */ + bool GetTextEllipsisEnabled() const; + + /** + * @brief Choose the required text horizontal alignment. + * + * @param[in] alignment The required alignment. + */ + void SetHorizontalAlignment( HorizontalAlignment alignment ); + + /** + * @brief Query the required text horizontal alignment. + * + * @return The required alignment. + */ + HorizontalAlignment GetHorizontalAlignment() const; + + /** + * @brief Choose the required text vertical alignment. * * @param[in] alignment The required alignment. */ - void SetAlignment( Alignment alignment ); + void SetVerticalAlignment( VerticalAlignment alignment ); /** - * @brief Query the required line alignment. + * @brief Query the required text vertical alignment. * * @return The required alignment. */ - Alignment GetAlignment() const; + VerticalAlignment GetVerticalAlignment() const; /** * @brief Store the visual position of glyphs in the VisualModel. @@ -125,13 +158,11 @@ public: /** * @brief Aligns the laid out lines. * - * @param[in] layoutParameters The parameters needed to layout the text. - * @param[in] lines The laid-out lines. - * @param[in,out] glyphPositions The positions of all the glyphs. + * @param[in] layoutSize The size of the laid out the text. + * @param[in,out] lines The laid-out lines. */ - void Align( const LayoutParameters& layoutParameters, - const Vector& lines, - Vector& glyphPositions ); + void Align( const Size& layoutSize, + Vector& lines ); private: