diff options
| author | crupest <crupest@outlook.com> | 2021-11-21 20:42:54 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-11-21 20:42:54 +0800 |
| commit | 3f8e493423b7cfe96ab53531078b803da7beccbe (patch) | |
| tree | a0a998c6b2b696eaf4f58870224fef31e65e3dbd /include/cru/platform/graphics/TextLayout.hpp | |
| parent | 73b90d4fe6c93a288ca6514432fe1e83ddcf4928 (diff) | |
| download | cru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.gz cru-3f8e493423b7cfe96ab53531078b803da7beccbe.tar.bz2 cru-3f8e493423b7cfe96ab53531078b803da7beccbe.zip | |
...
Diffstat (limited to 'include/cru/platform/graphics/TextLayout.hpp')
| -rw-r--r-- | include/cru/platform/graphics/TextLayout.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/TextLayout.hpp b/include/cru/platform/graphics/TextLayout.hpp index d10c9f22..a040ec3b 100644 --- a/include/cru/platform/graphics/TextLayout.hpp +++ b/include/cru/platform/graphics/TextLayout.hpp @@ -20,6 +20,10 @@ struct ITextLayout : virtual IGraphicsResource { virtual bool IsEditMode() = 0; virtual void SetEditMode(bool enable) = 0; + virtual Index GetLineIndexFromCharIndex(Index char_index) = 0; + virtual Index GetLineCount() = 0; + virtual float GetLineHeight(Index line_index) = 0; + virtual Rect GetTextBounds(bool includingTrailingSpace = false) = 0; virtual std::vector<Rect> TextRangeRect(const TextRange& text_range) = 0; // Width is always 0, height is line height. |
