aboutsummaryrefslogtreecommitdiff
path: root/src/win/graph/win_brush.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/graph/win_brush.cpp')
-rw-r--r--src/win/graph/win_brush.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/win/graph/win_brush.cpp b/src/win/graph/win_brush.cpp
deleted file mode 100644
index 0c783366..00000000
--- a/src/win/graph/win_brush.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "cru/win/graph/win_brush.hpp"
-
-#include "cru/win/exception.hpp"
-#include "cru/win/graph/win_native_factory.hpp"
-#include "cru/win/graph/util/convert_util.hpp"
-
-#include <cassert>
-
-namespace cru::win::graph {
-WinSolidColorBrush::WinSolidColorBrush(IWinNativeFactory* factory,
- const ui::Color& color) {
- assert(factory);
- ThrowIfFailed(factory->GetD2D1DeviceContext()->CreateSolidColorBrush(
- util::Convert(color), &brush_));
-}
-
-ui::Color WinSolidColorBrush::GetColor() {
- return util::Convert(brush_->GetColor());
-}
-void WinSolidColorBrush::SetColor(const ui::Color& color) {
- brush_->SetColor(util::Convert(color));
-}
-} // namespace cru::win::graph