projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TextModel - Create paragraph info for a given range of characters inside a text.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
text-view-interface.h
diff --git
a/dali-toolkit/internal/text/text-view-interface.h
b/dali-toolkit/internal/text/text-view-interface.h
index
56439d2
..
c121f77
100644
(file)
--- 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;
/**
virtual const Vector2& GetControlSize() const = 0;
/**
+ * @brief Retrieves the text's layout size.
+ *
+ * @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& GetLayoutSize() const = 0;
+
+ /**
* Retrieves the number of glyphs.
*
* @return The number of glyphs.
* 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.
* @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.
*
* @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,
*/
virtual Length GetGlyphs( GlyphInfo* glyphs,
Vector2* glyphPositions,
+ Vector4* glyphColors,
GlyphIndex glyphIndex,
Length numberOfGlyphs ) const = 0;
GlyphIndex glyphIndex,
Length numberOfGlyphs ) const = 0;