X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcolor-segmentation.h;h=dbf75d0cde96a0d951125425f557985b67f40329;hp=9e52de1aea34df417adb508477cde88d61b56051;hb=HEAD;hpb=213195730a51b211653cb6ad460b23a6e363b779 diff --git a/dali-toolkit/internal/text/color-segmentation.h b/dali-toolkit/internal/text/color-segmentation.h index 9e52de1..dbf75d0 100644 --- a/dali-toolkit/internal/text/color-segmentation.h +++ b/dali-toolkit/internal/text/color-segmentation.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_COLOR_SEGMENTATION_H__ -#define __DALI_TOOLKIT_TEXT_COLOR_SEGMENTATION_H__ +#ifndef DALI_TOOLKIT_TEXT_COLOR_SEGMENTATION_H +#define DALI_TOOLKIT_TEXT_COLOR_SEGMENTATION_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. @@ -26,27 +26,32 @@ namespace Dali { - namespace Toolkit { - namespace Text { - class LogicalModel; /** * @brief Creates color glyph runs. * - * @param[in] characterColorRuns The color runs in characters (set in the mark-up string). + * @param[in] colorRuns The color runs in characters (set in the mark-up string). * @param[in] charactersToGlyph Conversion table from characters to glyphs. * @param[in] glyphsPerCharacter Table with the number of glyphs for each character. - * @param[out] glyphColorRuns The color runs in glyphs. + * @param[in] startCharacterIndex The character from where the text is shaped. + * @param[in] startGlyphIndex The glyph from where the text is shaped. + * @param[in] numberOfCharacters The number of characters to be shaped. + * @param[out] colors The vector of colors. + * @param[out] colorIndices Indices to the vector of colors. */ -void SetColorSegmentationInfo( const Vector& characterColorRuns, - const Vector& charactersToGlyph, - const Vector& glyphsPerCharacter, - Vector& glyphColorRuns ); +void SetColorSegmentationInfo(const Vector& colorRuns, + const Vector& charactersToGlyph, + const Vector& glyphsPerCharacter, + CharacterIndex startCharacterIndex, + GlyphIndex startGlyphIndex, + Length numberOfCharacters, + Vector& colors, + Vector& colorIndices); } // namespace Text @@ -54,4 +59,4 @@ void SetColorSegmentationInfo( const Vector& characterColorRuns, } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_COLOR_SEGMENTATION_H__ +#endif // DALI_TOOLKIT_TEXT_COLOR_SEGMENTATION_H