X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.h;h=3fe443923c10f90ecc5b78c1dcf308c891263579;hb=451d7a012c895c2578a29ba929dc61a6d959209a;hp=8857203a4f27205483dbec647d81e79e24c48d9f;hpb=decd26d572cdb74f6a0ad60eff56533e3e0e00b9;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller.h b/dali-toolkit/internal/text/text-controller.h index 8857203..3fe4439 100644 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -63,19 +63,21 @@ private: */ enum OperationsMask { - NO_OPERATION = 0x0, - CONVERT_TO_UTF32 = 0x1, - GET_SCRIPTS = 0x2, - VALIDATE_FONTS = 0x4, - GET_LINE_BREAKS = 0x8, - GET_WORD_BREAKS = 0x10, - SHAPE_TEXT = 0x20, - GET_GLYPH_METRICS = 0x40, - LAYOUT = 0x80, - REORDER = 0x100, - ALIGNMENT = 0x200, - RENDER = 0x400, - ALL_OPERATIONS = 0xFFF + NO_OPERATION = 0x0000, + CONVERT_TO_UTF32 = 0x0001, + GET_SCRIPTS = 0x0002, + VALIDATE_FONTS = 0x0004, + GET_LINE_BREAKS = 0x0008, + GET_WORD_BREAKS = 0x0010, + SHAPE_TEXT = 0x0020, + GET_GLYPH_METRICS = 0x0040, + LAYOUT = 0x0080, + UPDATE_ACTUAL_SIZE = 0x0100, + UPDATE_POSITIONS = 0x0200, + REORDER = 0x0400, + ALIGNMENT = 0x0800, + RENDER = 0x1000, + ALL_OPERATIONS = 0xFFFF }; public: @@ -121,7 +123,12 @@ public: bool Relayout( const Vector2& size ); /** + * @brief Lays-out the text. * + * GetNaturalSize(), GetHeightForWidth() and Relayout() calls this method. + * + * @param[in] size A the size of a bounding box to layout text within. + * @param[in] operations The layout operations which need to be done. */ bool DoRelayout( const Vector2& size, OperationsMask operations );