X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fstyles%2Funderline-helper-functions.h;h=38471c85807c87e1c1247871cee6acf6640d3039;hb=645bdbb832026172a6868286e000769645062c2c;hp=825b05c3a14f5417c48587b42d3b86937d42b7a0;hpb=076f84a43592f26ff0aa2bced54583f712800fe3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/rendering/styles/underline-helper-functions.h b/dali-toolkit/internal/text/rendering/styles/underline-helper-functions.h index 825b05c..38471c8 100644 --- a/dali-toolkit/internal/text/rendering/styles/underline-helper-functions.h +++ b/dali-toolkit/internal/text/rendering/styles/underline-helper-functions.h @@ -46,21 +46,9 @@ bool IsGlyphUnderlined(GlyphIndex index, Vector::ConstIterator& currentUnderlinedGlyphRunIt); /** - * @brief Check the current underlined glyph run iterator if not empty and its height is defined then return ts height. Otherwise return the common underline height. - * - * @param[in] underlineRuns the underline runs. - * @param[in] currentUnderlinedGlyphRunIt the iterator of current underlined glyph run. - * @param[in] underlineHeight the common underline height. - * - * @return the determined underline height - */ -float GetCurrentUnderlineHeight(const Vector& underlineRuns, - Vector::ConstIterator currentUnderlinedGlyphRunIt, - const float underlineHeight); - -/** * @brief Check the current underlined glyph run iterator if not empty and isGlyphUnderlined is true then return its UnderlineProperties. Otherwise return the common underline properties. * + * @param[in] index the index of glyph. * @param[in] isGlyphUnderlined whether the glyph is underlined. * @param[in] underlineRuns the underline runs. * @param[in] currentUnderlinedGlyphRunIt the iterator of current underlined glyph run. @@ -68,10 +56,11 @@ float GetCurrentUnderlineHeight(const Vector& underl * * @return the determined underline properties */ -UnderlineStyleProperties GetCurrentUnderlineProperties(const bool& isGlyphUnderlined, - const Vector& underlineRuns, - Vector::ConstIterator currentUnderlinedGlyphRunIt, - const UnderlineStyleProperties& commonUnderlineProperties); +UnderlineStyleProperties GetCurrentUnderlineProperties(GlyphIndex index, + const bool& isGlyphUnderlined, + const Vector& underlineRuns, + Vector::ConstIterator& currentUnderlinedGlyphRunIt, + const UnderlineStyleProperties& commonUnderlineProperties); /** * @brief Fetch and calculate underline Position using font-metrics