From b922e4271166c9edf034109a42d403a147f0720d Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 7 Jun 2022 20:12:46 +0800 Subject: ... --- include/cru/platform/graphics/cairo/PangoTextLayout.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/cru/platform/graphics') 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 @@ -35,8 +35,16 @@ class PangoTextLayout : public CairoResource, public virtual ITextLayout { Rect TextSinglePoint(Index position, bool trailing) override; 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 font_; PangoLayout* pango_layout_; -- cgit v1.2.3