X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcharacter-run.h;h=51a3ef750a32d16ce7481321514085759b417cd0;hb=d74d70d51ed70b00e29a2b6feac5419124fffc49;hp=221ecbdaa052be8c000e419579ed1d632cf21c4d;hpb=cc82bd9b187cda8fe2c8336b73fd1fa9376cfebd;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/character-run.h b/dali-toolkit/internal/text/character-run.h index 221ecbd..51a3ef7 100644 --- a/dali-toolkit/internal/text/character-run.h +++ b/dali-toolkit/internal/text/character-run.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_CHARACTER_RUN_H__ -#define __DALI_TOOLKIT_TEXT_CHARACTER_RUN_H__ +#ifndef DALI_TOOLKIT_TEXT_CHARACTER_RUN_H +#define DALI_TOOLKIT_TEXT_CHARACTER_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. @@ -23,18 +23,27 @@ namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief A run of consecutive characters. */ struct CharacterRun { + CharacterRun() + : characterIndex{0u}, + numberOfCharacters{0u} + { + } + + CharacterRun(CharacterIndex characterIndex, Length numberOfCharacters) + : characterIndex{characterIndex}, + numberOfCharacters{numberOfCharacters} + { + } + CharacterIndex characterIndex; ///< Index to the first character. Length numberOfCharacters; ///< Number of characters in the run. }; @@ -45,4 +54,4 @@ struct CharacterRun } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_CHARACTER_RUN_H__ +#endif // DALI_TOOLKIT_TEXT_CHARACTER_RUN_H