aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graph/win_brush.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/win/graph/win_brush.hpp')
-rw-r--r--include/cru/win/graph/win_brush.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/cru/win/graph/win_brush.hpp b/include/cru/win/graph/win_brush.hpp
deleted file mode 100644
index c81019c0..00000000
--- a/include/cru/win/graph/win_brush.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-#include "../win_pre_config.hpp"
-
-#include "cru/platform/graph/brush.hpp"
-
-namespace cru::win::graph {
-struct IWinNativeFactory;
-
-struct IWinBrush : virtual platform::graph::IBrush {
- virtual ID2D1Brush* GetD2DBrush() = 0;
-};
-
-class WinSolidColorBrush : public Object,
- public virtual platform::graph::ISolidColorBrush,
- public virtual IWinBrush {
- public:
- WinSolidColorBrush(IWinNativeFactory* factory, const ui::Color& color);
- WinSolidColorBrush(const WinSolidColorBrush& other) = delete;
- WinSolidColorBrush(WinSolidColorBrush&& other) = delete;
- WinSolidColorBrush& operator=(const WinSolidColorBrush& other) = delete;
- WinSolidColorBrush& operator=(WinSolidColorBrush&& other) = delete;
- ~WinSolidColorBrush() override = default;
-
- ui::Color GetColor() override;
- void SetColor(const ui::Color& color) override;
-
- ID2D1Brush* GetD2DBrush() override { return brush_.Get(); }
-
- private:
- Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> brush_;
-};
-} // namespace cru::win::graph