diff options
Diffstat (limited to 'src/ui/render')
-rw-r--r-- | src/ui/render/TextRenderObject.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp index e1036072..0e65da92 100644 --- a/src/ui/render/TextRenderObject.cpp +++ b/src/ui/render/TextRenderObject.cpp @@ -64,6 +64,16 @@ void TextRenderObject::SetEditMode(bool enable) { text_layout_->SetEditMode(enable); } +Index TextRenderObject::GetLineCount() { return text_layout_->GetLineCount(); } + +Index TextRenderObject::GetLineIndexFromCharIndex(Index char_index) { + return text_layout_->GetLineIndexFromCharIndex(char_index); +} + +float TextRenderObject::GetLineHeight(Index line_index) { + return text_layout_->GetLineHeight(line_index); +} + std::vector<Rect> TextRenderObject::TextRangeRect(const TextRange& text_range) { return text_layout_->TextRangeRect(text_range); } |