X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fdecorator%2Ftext-decorator.h;h=11f7062cc006b09befc394210c7435515d21c397;hb=d529fa16df49f5647f399854fff14f651dbbc835;hp=6e7c727fa4290bfdb306e7fd93667ec93d2ef1f2;hpb=3a727ff0ae4baf350511079f016aeaadd4b0faa9;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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.