diff options
author | crupest <crupest@outlook.com> | 2019-06-27 00:18:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-06-27 00:18:48 +0800 |
commit | baa7cf141b8121473edceae16c1a20a6d47bd202 (patch) | |
tree | 9349633a9d0bc286fe29f480bd70e4c2ad1f3075 /include/cru/win/graph/win_painter.hpp | |
parent | f404a3b2eb7bb9865d0c6f938538899996a53d8c (diff) | |
download | cru-baa7cf141b8121473edceae16c1a20a6d47bd202.tar.gz cru-baa7cf141b8121473edceae16c1a20a6d47bd202.tar.bz2 cru-baa7cf141b8121473edceae16c1a20a6d47bd202.zip |
......
Diffstat (limited to 'include/cru/win/graph/win_painter.hpp')
-rw-r--r-- | include/cru/win/graph/win_painter.hpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/cru/win/graph/win_painter.hpp b/include/cru/win/graph/win_painter.hpp deleted file mode 100644 index f218488c..00000000 --- a/include/cru/win/graph/win_painter.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once -#include "../win_pre_config.hpp" - -#include "cru/platform/graph/painter.hpp" - -namespace cru::win::graph { -class GraphManager; - -class WinPainter : public Object, public virtual platform::graph::IPainter { - 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 = default; - - platform::Matrix GetTransform() override; - void SetTransform(const platform::Matrix& matrix) override; - void Clear(const ui::Color& color) override; - void StrokeRectangle(const ui::Rect& rectangle, platform::graph::IBrush* brush, - float width) override; - void FillRectangle(const ui::Rect& rectangle, - platform::graph::IBrush* brush) override; - void StrokeGeometry(platform::graph::IGeometry* geometry, - platform::graph::IBrush* brush, float width) override; - void FillGeometry(platform::graph::IGeometry* geometry, - platform::graph::IBrush* brush) override; - void DrawText(const ui::Point& offset, - platform::graph::ITextLayout* text_layout, - platform::graph::IBrush* brush) override; - void End() override final; - bool IsEnded() const override final { return is_draw_ended_; } - - protected: - virtual void DoEndDraw() = 0; - - private: - ID2D1RenderTarget* render_target_; - - bool is_draw_ended_ = false; -}; -} // namespace cru::win::graph |