diff options
author | crupest <crupest@outlook.com> | 2019-05-24 23:45:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-05-24 23:45:58 +0800 |
commit | b6db663269201fa14a6a4aa1b9042645a9e8f859 (patch) | |
tree | 1984e2c2784fb9623d4c20fbdd6fc650792e133c /include/cru/win/graph/win_brush.hpp | |
parent | b9df1bcaea0c19b2e29479cdb1ad5a39e23c4ee7 (diff) | |
download | cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.tar.gz cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.tar.bz2 cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.zip |
...
Diffstat (limited to 'include/cru/win/graph/win_brush.hpp')
-rw-r--r-- | include/cru/win/graph/win_brush.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/cru/win/graph/win_brush.hpp b/include/cru/win/graph/win_brush.hpp index 69cd952d..c81019c0 100644 --- a/include/cru/win/graph/win_brush.hpp +++ b/include/cru/win/graph/win_brush.hpp @@ -4,18 +4,17 @@ #include "cru/platform/graph/brush.hpp" namespace cru::win::graph { -class GraphManager; +struct IWinNativeFactory; -struct WinBrush : virtual platform::graph::Brush { +struct IWinBrush : virtual platform::graph::IBrush { virtual ID2D1Brush* GetD2DBrush() = 0; }; class WinSolidColorBrush : public Object, - public virtual platform::graph::SolidColorBrush, - public virtual WinBrush { + public virtual platform::graph::ISolidColorBrush, + public virtual IWinBrush { public: - explicit WinSolidColorBrush(GraphManager* graph_manager, - const ui::Color& color); + WinSolidColorBrush(IWinNativeFactory* factory, const ui::Color& color); WinSolidColorBrush(const WinSolidColorBrush& other) = delete; WinSolidColorBrush(WinSolidColorBrush&& other) = delete; WinSolidColorBrush& operator=(const WinSolidColorBrush& other) = delete; |