diff options
author | crupest <crupest@outlook.com> | 2020-12-31 18:27:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-31 18:27:57 +0800 |
commit | 1e1170a89330881c5fad60988bc27c824dfcf454 (patch) | |
tree | 9abebbcff045edbea24ea25a377cf34374074907 /include/cru/platform/graphics | |
parent | 0026d1f9b50270cd96d8a2a44c55410bc9dc2f7a (diff) | |
download | cru-1e1170a89330881c5fad60988bc27c824dfcf454.tar.gz cru-1e1170a89330881c5fad60988bc27c824dfcf454.tar.bz2 cru-1e1170a89330881c5fad60988bc27c824dfcf454.zip |
...
Diffstat (limited to 'include/cru/platform/graphics')
-rw-r--r-- | include/cru/platform/graphics/TextLayout.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/platform/graphics/TextLayout.hpp b/include/cru/platform/graphics/TextLayout.hpp index efd017d6..b363fb77 100644 --- a/include/cru/platform/graphics/TextLayout.hpp +++ b/include/cru/platform/graphics/TextLayout.hpp @@ -16,9 +16,9 @@ struct ITextLayout : virtual IGraphResource { virtual void SetMaxWidth(float max_width) = 0; virtual void SetMaxHeight(float max_height) = 0; - virtual Rect GetTextBounds() = 0; + virtual Rect GetTextBounds(bool includingTrailingSpace = false) = 0; virtual std::vector<Rect> TextRangeRect(const TextRange& text_range) = 0; virtual Point TextSinglePoint(Index position, bool trailing) = 0; virtual TextHitTestResult HitTest(const Point& point) = 0; }; -} // namespace cru::platform::graph +} // namespace cru::platform::graphics |