diff options
Diffstat (limited to 'src/win/graph/direct')
-rw-r--r-- | src/win/graph/direct/TextLayout.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/win/graph/direct/TextLayout.cpp b/src/win/graph/direct/TextLayout.cpp index 7b5b230f..0d4a6392 100644 --- a/src/win/graph/direct/TextLayout.cpp +++ b/src/win/graph/direct/TextLayout.cpp @@ -26,6 +26,8 @@ DWriteTextLayout::~DWriteTextLayout() = default; std::u16string DWriteTextLayout::GetText() { return text_; } +std::u16string_view DWriteTextLayout::GetTextView() { return text_; } + void DWriteTextLayout::SetText(std::u16string new_text) { text_.swap(new_text); ThrowIfFailed(GetDirectFactory()->GetDWriteFactory()->CreateTextLayout( |