aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_block.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-07 20:20:26 +0800
committercrupest <crupest@outlook.com>2018-11-07 20:20:26 +0800
commite2efeb22595b263f6eac5563b163a2574aa2f0dc (patch)
treee371ab858ce124c0d2070096e41314e44af87ca2 /src/ui/controls/text_block.cpp
parent2b5b89e9483063f3af05fb5485043868d447994b (diff)
downloadcru-e2efeb22595b263f6eac5563b163a2574aa2f0dc.tar.gz
cru-e2efeb22595b263f6eac5563b163a2574aa2f0dc.tar.bz2
cru-e2efeb22595b263f6eac5563b163a2574aa2f0dc.zip
Reformat codes.
Diffstat (limited to 'src/ui/controls/text_block.cpp')
-rw-r--r--src/ui/controls/text_block.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp
index 7c52684d..e6c7fd7e 100644
--- a/src/ui/controls/text_block.cpp
+++ b/src/ui/controls/text_block.cpp
@@ -2,22 +2,16 @@
#include "ui/window.h"
-namespace cru
+namespace cru::ui::controls
{
- namespace ui
+ TextBlock::TextBlock(const Microsoft::WRL::ComPtr<IDWriteTextFormat>& init_text_format,
+ const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush) : TextControl(init_text_format, init_brush)
{
- namespace controls
- {
- TextBlock::TextBlock(const Microsoft::WRL::ComPtr<IDWriteTextFormat>& init_text_format,
- const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush) : TextControl(init_text_format, init_brush)
- {
- }
+ }
- StringView TextBlock::GetControlType() const
- {
- return control_type;
- }
- }
+ StringView TextBlock::GetControlType() const
+ {
+ return control_type;
}
}