diff options
author | crupest <crupest@outlook.com> | 2019-04-19 23:20:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-19 23:20:09 +0800 |
commit | ea87825d58ab5b58dd360c3f080518c07a865db0 (patch) | |
tree | 4b497ef3687d682368e0fde4b86293565583a63a /include/cru/win/graph | |
parent | 7351020a582d70a1495249fba87d342c8a1fb634 (diff) | |
download | cru-ea87825d58ab5b58dd360c3f080518c07a865db0.tar.gz cru-ea87825d58ab5b58dd360c3f080518c07a865db0.tar.bz2 cru-ea87825d58ab5b58dd360c3f080518c07a865db0.zip |
...
Diffstat (limited to 'include/cru/win/graph')
-rw-r--r-- | include/cru/win/graph/d2d_painter.hpp (renamed from include/cru/win/graph/win_painter.hpp) | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/cru/win/graph/win_painter.hpp b/include/cru/win/graph/d2d_painter.hpp index 8351cb7b..d33dced4 100644 --- a/include/cru/win/graph/win_painter.hpp +++ b/include/cru/win/graph/d2d_painter.hpp @@ -6,14 +6,14 @@ namespace cru::win::graph { class GraphManager; -class WinPainter : public Object, public virtual platform::graph::Painter { +class D2DPainter : public Object, public virtual platform::graph::Painter { public: - explicit WinPainter(ID2D1RenderTarget* render_target); - WinPainter(const WinPainter& other) = delete; - WinPainter(WinPainter&& other) = delete; - WinPainter& operator=(const WinPainter& other) = delete; - WinPainter& operator=(WinPainter&& other) = delete; - ~WinPainter() override; + explicit D2DPainter(ID2D1RenderTarget* render_target); + D2DPainter(const D2DPainter& other) = delete; + D2DPainter(D2DPainter&& other) = delete; + D2DPainter& operator=(const D2DPainter& other) = delete; + D2DPainter& operator=(D2DPainter&& other) = delete; + ~D2DPainter() override = default; platform::Matrix GetTransform() override; void SetTransform(const platform::Matrix& matrix) override; @@ -29,8 +29,8 @@ class WinPainter : public Object, public virtual platform::graph::Painter { void DrawText(const ui::Point& offset, platform::graph::TextLayout* text_layout, platform::graph::Brush* brush) override; - void EndDraw() override; - bool IsDisposed() override { return is_disposed_; } + void EndDraw() override final; + bool IsDisposed() override final { return is_disposed_; } void EndDrawAndDeleteThis() { EndDraw(); @@ -38,7 +38,7 @@ class WinPainter : public Object, public virtual platform::graph::Painter { } protected: - virtual void DoEndDraw(); + virtual void DoEndDraw() = 0; private: ID2D1RenderTarget* render_target_; |