X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-view-interface.h;h=5f4f1b5c686e63dc1d60c31fe9202289ade2b116;hb=62bf58132aff475e1db6416fe72d74101c0a2934;hp=56439d22584c08da5aa00c6695181d7383a08824;hpb=f08e4b14661ae1b25d01f417f58310c44407ebf6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-view-interface.h b/dali-toolkit/internal/text/text-view-interface.h index 56439d2..5f4f1b5 100644 --- a/dali-toolkit/internal/text/text-view-interface.h +++ b/dali-toolkit/internal/text/text-view-interface.h @@ -65,6 +65,14 @@ public: virtual const Vector2& GetControlSize() const = 0; /** + * @brief Retrieves the text's actual size after it has been laid out. + * + * @return The text's size. Note that this may be larger than the control size, + * in the case where text is scrolling/clipped. + */ + virtual const Vector2& GetActualSize() const = 0; + + /** * Retrieves the number of glyphs. * * @return The number of glyphs. @@ -78,7 +86,8 @@ public: * @note The returned number of glyphs may be less than @p numberOfGlyphs if a line has ellipsis. * * @param[out] glyphs Pointer to a buffer where the glyphs are copied. - * @param[out] glyphPositions Pointer to a buffer where the glyph positions are copied. + * @param[out] glyphPositions Pointer to a buffer where the glyph's positions are copied. + * @param[out] colors Pointer to a buffer where the glyph's colors are copied. * @param[in] glyphIndex Index to the first glyph. * @param[in] numberOfGlyphs Number of glyphs to be copied. * @@ -86,6 +95,7 @@ public: */ virtual Length GetGlyphs( GlyphInfo* glyphs, Vector2* glyphPositions, + Vector4* glyphColors, GlyphIndex glyphIndex, Length numberOfGlyphs ) const = 0;