diff options
| author | crupest <crupest@outlook.com> | 2021-03-24 19:14:19 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-03-24 19:14:19 +0800 |
| commit | 7f15a1ff9a2007e119798053083a0a87d042990a (patch) | |
| tree | cb35c01a7eaee867376d959b96c9bbd15df939e5 /src/win/graph/direct/Brush.cpp | |
| parent | 74956951ee663012df0c3fe4ebe29799cb2f7732 (diff) | |
| parent | 7703063a5816b089483e78ccd74bb9902ccfbea8 (diff) | |
| download | cru-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.cpp | 17 |
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 |
