X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fdecorator%2Ftext-decorator.h;h=11f7062cc006b09befc394210c7435515d21c397;hp=6e7c727fa4290bfdb306e7fd93667ec93d2ef1f2;hb=3ba79f37caada41a4ef3f381b107228ef8eb29d8;hpb=76d52c0538511866d2f7d6889ba86e66b43fde12 diff --git a/dali-toolkit/internal/text/decorator/text-decorator.h b/dali-toolkit/internal/text/decorator/text-decorator.h index 6e7c727..11f7062 100644 --- a/dali-toolkit/internal/text/decorator/text-decorator.h +++ b/dali-toolkit/internal/text/decorator/text-decorator.h @@ -243,6 +243,24 @@ public: */ const Vector2& GetPosition( Cursor cursor ) const; + + /** + * @brief Sets the glyph offset of a cursor. + * + * @param[in] cursor The cursor to set. + * @param[in] glyphoffset The difference of line ascender and glyph ascender. + */ + void SetGlyphOffset( Cursor cursor, float glyphOffset ); + + /** + * @brief Retrieves the glyph offset of a cursor. + * + * @param[in] cursor The cursor to get. + * + * @return The glyph offset. glyph offset means difference of line ascender and glyph ascender. + */ + const float GetGlyphOffset( Cursor cursor ) const; + /** * @brief Sets the color for a cursor. * @@ -450,9 +468,11 @@ public: * * @param[in] position The position of the highlighted text in decorator's coords. * @param[in] size The size of the highlighted text. + * @param[in] outlineOffset The outline's offset. */ void SetHighLightBox( const Vector2& position, - const Size& size ); + const Size& size, + float outlineOffset ); /** * @brief Removes all of the previously added highlights.