diff options
author | crupest <crupest@outlook.com> | 2022-06-08 17:23:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-06-08 17:23:56 +0800 |
commit | f1c8931181ab1a911ab2383520a3b9628235db83 (patch) | |
tree | 303a9a0f51caf04a910bf9c9fc2c78b78245401c /include/cru/platform/graphics/cairo/PangoTextLayout.h | |
parent | 0888ee514af093bcfa17de6efc4d3693a34de52d (diff) | |
download | cru-f1c8931181ab1a911ab2383520a3b9628235db83.tar.gz cru-f1c8931181ab1a911ab2383520a3b9628235db83.tar.bz2 cru-f1c8931181ab1a911ab2383520a3b9628235db83.zip |
...
Diffstat (limited to 'include/cru/platform/graphics/cairo/PangoTextLayout.h')
-rw-r--r-- | include/cru/platform/graphics/cairo/PangoTextLayout.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/cairo/PangoTextLayout.h b/include/cru/platform/graphics/cairo/PangoTextLayout.h index 7e2bb2a9..9b6d4791 100644 --- a/include/cru/platform/graphics/cairo/PangoTextLayout.h +++ b/include/cru/platform/graphics/cairo/PangoTextLayout.h @@ -35,6 +35,8 @@ class PangoTextLayout : public CairoResource, public virtual ITextLayout { Rect TextSinglePoint(Index position, bool trailing) override; TextHitTestResult HitTest(const Point& point) override; + PangoLayout* GetPangoLayout() { return pango_layout_; } + private: Index FromUtf8IndexToUtf16Index(Index index); Index FromUtf16IndexToUtf8Index(Index index); |