diff options
author | crupest <crupest@outlook.com> | 2022-02-08 16:53:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-08 16:53:51 +0800 |
commit | 74bb9cd27242b9320f99ff4d2b50c3051576cc14 (patch) | |
tree | 744bac5799c593d1d6f81e7b09581bea626f2cde /include/cru/osx/graphics/quartz/Brush.hpp | |
parent | b90c398de829d1ba5329651d75bae82f5e4085fe (diff) | |
download | cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.gz cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.bz2 cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.zip |
...
Diffstat (limited to 'include/cru/osx/graphics/quartz/Brush.hpp')
-rw-r--r-- | include/cru/osx/graphics/quartz/Brush.hpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/include/cru/osx/graphics/quartz/Brush.hpp b/include/cru/osx/graphics/quartz/Brush.hpp deleted file mode 100644 index 1fa26794..00000000 --- a/include/cru/osx/graphics/quartz/Brush.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once -#include "Resource.hpp" -#include "cru/common/Base.hpp" -#include "cru/platform/graphics/Base.hpp" -#include "cru/platform/graphics/Brush.hpp" - -#include <CoreGraphics/CoreGraphics.h> - -#include <functional> - -namespace cru::platform::graphics::osx::quartz { -class QuartzBrush : public OsxQuartzResource, public virtual IBrush { - public: - QuartzBrush(IGraphicsFactory* graphics_factory) - : OsxQuartzResource(graphics_factory) {} - CRU_DELETE_COPY(QuartzBrush) - CRU_DELETE_MOVE(QuartzBrush) - ~QuartzBrush() override = default; - - public: - virtual void Select(CGContextRef context) = 0; -}; - -class QuartzSolidColorBrush : public QuartzBrush, - public virtual ISolidColorBrush { - public: - QuartzSolidColorBrush(IGraphicsFactory* graphics_factory, const Color& color); - - CRU_DELETE_COPY(QuartzSolidColorBrush) - CRU_DELETE_MOVE(QuartzSolidColorBrush) - - ~QuartzSolidColorBrush() override; - - Color GetColor() override { return color_; } - void SetColor(const Color& color) override; - - CGColorRef GetCGColorRef() const { return cg_color_; } - - void Select(CGContextRef context) override; - - String GetDebugString() override; - - private: - Color color_; - CGColorRef cg_color_; -}; -} // namespace cru::platform::graphics::osx::quartz |