aboutsummaryrefslogtreecommitdiff
path: root/src/win/graph/direct/Brush.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-03-24 19:14:19 +0800
committercrupest <crupest@outlook.com>2021-03-24 19:14:19 +0800
commit7f15a1ff9a2007e119798053083a0a87d042990a (patch)
treecb35c01a7eaee867376d959b96c9bbd15df939e5 /src/win/graph/direct/Brush.cpp
parent74956951ee663012df0c3fe4ebe29799cb2f7732 (diff)
parent7703063a5816b089483e78ccd74bb9902ccfbea8 (diff)
downloadcru-7f15a1ff9a2007e119798053083a0a87d042990a.tar.gz
cru-7f15a1ff9a2007e119798053083a0a87d042990a.tar.bz2
cru-7f15a1ff9a2007e119798053083a0a87d042990a.zip
Merge branch 'master' of https://github.com/crupest/CruUI
Diffstat (limited to 'src/win/graph/direct/Brush.cpp')
-rw-r--r--src/win/graph/direct/Brush.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/win/graph/direct/Brush.cpp b/src/win/graph/direct/Brush.cpp
deleted file mode 100644
index 2b9d4ac3..00000000
--- a/src/win/graph/direct/Brush.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "cru/win/graph/direct/Brush.hpp"
-
-#include "cru/win/graph/direct/ConvertUtil.hpp"
-#include "cru/win/graph/direct/Exception.hpp"
-#include "cru/win/graph/direct/Factory.hpp"
-
-namespace cru::platform::graph::win::direct {
-D2DSolidColorBrush::D2DSolidColorBrush(DirectGraphFactory* factory)
- : DirectGraphResource(factory) {
- ThrowIfFailed(factory->GetDefaultD2D1DeviceContext()->CreateSolidColorBrush(
- Convert(color_), &brush_));
-}
-
-void D2DSolidColorBrush::SetColor(const Color& color) {
- brush_->SetColor(Convert(color));
-}
-} // namespace cru::platform::graph::win::direct