diff options
author | crupest <crupest@outlook.com> | 2022-06-07 20:12:46 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-06-07 20:12:46 +0800 |
commit | b922e4271166c9edf034109a42d403a147f0720d (patch) | |
tree | 43ff48592c6057daec3b01bb95e513d0579c0ace /include/cru/platform/graphics/cairo/PangoTextLayout.h | |
parent | 3035bafa40f0814c4a780e38ef37256e3506838a (diff) | |
download | cru-b922e4271166c9edf034109a42d403a147f0720d.tar.gz cru-b922e4271166c9edf034109a42d403a147f0720d.tar.bz2 cru-b922e4271166c9edf034109a42d403a147f0720d.zip |
...
Diffstat (limited to 'include/cru/platform/graphics/cairo/PangoTextLayout.h')
-rw-r--r-- | include/cru/platform/graphics/cairo/PangoTextLayout.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/cairo/PangoTextLayout.h b/include/cru/platform/graphics/cairo/PangoTextLayout.h index 3f3a67b5..7e2bb2a9 100644 --- a/include/cru/platform/graphics/cairo/PangoTextLayout.h +++ b/include/cru/platform/graphics/cairo/PangoTextLayout.h @@ -36,7 +36,15 @@ class PangoTextLayout : public CairoResource, public virtual ITextLayout { TextHitTestResult HitTest(const Point& point) override; private: + Index FromUtf8IndexToUtf16Index(Index index); + Index FromUtf16IndexToUtf8Index(Index index); + + private: String text_; + std::string utf8_text_; + + bool edit_mode_ = false; + std::shared_ptr<PangoFont> font_; PangoLayout* pango_layout_; |