aboutsummaryrefslogtreecommitdiff
path: root/src/win/graph/direct/TextLayout.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-09-11 11:17:56 +0800
committercrupest <crupest@outlook.com>2020-09-11 11:17:56 +0800
commit93b8a62d28f9427f0979d62b71f12fb2858064ee (patch)
tree8f77e88a2a48db2a4e9fe72e5c85088f8d659a7f /src/win/graph/direct/TextLayout.cpp
parent65ca046989cd641da65b754bfa1c99f5e54b219a (diff)
downloadcru-93b8a62d28f9427f0979d62b71f12fb2858064ee.tar.gz
cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.tar.bz2
cru-93b8a62d28f9427f0979d62b71f12fb2858064ee.zip
...
Diffstat (limited to 'src/win/graph/direct/TextLayout.cpp')
-rw-r--r--src/win/graph/direct/TextLayout.cpp2
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(