X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fline-run.h;h=f4d13e0955381ab2c8671036253232f1b91d5d4c;hb=d74d70d51ed70b00e29a2b6feac5419124fffc49;hp=fd5371dc4aff754fc8dd9b43319e31f81d68814c;hpb=0207e16930421216c5a22a0fd3ac409f3bd2a7b0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/line-run.h b/dali-toolkit/internal/text/line-run.h index fd5371d..f4d13e0 100644 --- a/dali-toolkit/internal/text/line-run.h +++ b/dali-toolkit/internal/text/line-run.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_LINE_RUN_H__ -#define __DALI_TOOLKIT_TEXT_LINE_RUN_H__ +#ifndef DALI_TOOLKIT_TEXT_LINE_RUN_H +#define DALI_TOOLKIT_TEXT_LINE_RUN_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,31 +18,31 @@ * */ -// EXTERNAL INCLUDES -#include - // INTERNAL INCLUDES #include +#include namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief LineRun */ struct LineRun { - GlyphIndex glyphIndex; ///< The initial glyph index. - Length numberOfGlyphs; ///< The number of glyphs of the run. - CharacterRun characterRun; ///< The initial character and the number of characters. - Size lineSize; ///< The size of the line. - float extraLength; ///< The length of the white spaces at the end of the line. + GlyphRun glyphRun; ///< The initial glyph index and the number of glyphs of the run. + CharacterRun characterRun; ///< The initial character index and the number of characters of the run. + float width; ///< The line's width. + float ascender; ///< The line's ascender. + float descender; ///< The line's descender. + float extraLength; ///< The length of the white spaces at the end of the line. + float alignmentOffset; ///< The horizontal alignment offset. + float lineSpacing; ///< The line's spacing + CharacterDirection direction : 1; ///< Direction of the first character of the paragraph. + bool ellipsis : 1; ///< Wheter ellipsis is added to the line. }; } // namespace Text @@ -51,4 +51,4 @@ struct LineRun } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_LINE_RUN_H__ +#endif // DALI_TOOLKIT_TEXT_LINE_RUN_H