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/platform/graphics/NullPainter.hpp | |
| parent | b90c398de829d1ba5329651d75bae82f5e4085fe (diff) | |
| download | cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.gz cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.bz2 cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.zip | |
...
Diffstat (limited to 'include/cru/platform/graphics/NullPainter.hpp')
| -rw-r--r-- | include/cru/platform/graphics/NullPainter.hpp | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/include/cru/platform/graphics/NullPainter.hpp b/include/cru/platform/graphics/NullPainter.hpp deleted file mode 100644 index 54c610c1..00000000 --- a/include/cru/platform/graphics/NullPainter.hpp +++ /dev/null @@ -1,84 +0,0 @@ -#pragma once -#include "Painter.hpp" -#include "cru/common/Base.hpp" - -namespace cru::platform::graphics { -class CRU_PLATFORM_GRAPHICS_API NullPainter : public Object, - public virtual IPainter { - public: - NullPainter() = default; - - CRU_DELETE_COPY(NullPainter) - CRU_DELETE_MOVE(NullPainter) - - ~NullPainter() override = default; - - public: - String GetPlatformId() const override { return u"NULL"; } - - String GetDebugString() override { return u"NullPainter"; } - - Matrix GetTransform() override { return Matrix(); } - void SetTransform(const Matrix& matrix) override { CRU_UNUSED(matrix) } - - void ConcatTransform(const Matrix& matrix) override { CRU_UNUSED(matrix) } - - void Clear(const Color& color) override { CRU_UNUSED(color) } - - void DrawLine(const Point& start, const Point& end, IBrush* brush, - float width) override { - CRU_UNUSED(start) CRU_UNUSED(end) CRU_UNUSED(brush) CRU_UNUSED(width) - } - void StrokeRectangle(const Rect& rectangle, IBrush* brush, - float width) override { - CRU_UNUSED(rectangle) CRU_UNUSED(brush) CRU_UNUSED(width) - } - void FillRectangle(const Rect& rectangle, IBrush* brush) override { - CRU_UNUSED(rectangle) - CRU_UNUSED(brush) - } - void StrokeEllipse(const Rect& outline_rect, IBrush* brush, - float width) override { - CRU_UNUSED(outline_rect) - CRU_UNUSED(brush) - CRU_UNUSED(width) - } - void FillEllipse(const Rect& outline_rect, IBrush* brush) override { - CRU_UNUSED(outline_rect) - CRU_UNUSED(brush) - } - - void StrokeGeometry(IGeometry* geometry, IBrush* brush, - float width) override { - CRU_UNUSED(geometry) - CRU_UNUSED(brush) - CRU_UNUSED(width) - } - void FillGeometry(IGeometry* geometry, IBrush* brush) override { - CRU_UNUSED(geometry) - CRU_UNUSED(brush) - } - - void DrawText(const Point& offset, ITextLayout* text_layout, - IBrush* brush) override { - CRU_UNUSED(offset) - CRU_UNUSED(text_layout) - CRU_UNUSED(brush) - } - - void DrawImage(const Point& offset, IImage* image) override { - CRU_UNUSED(offset) - CRU_UNUSED(image) - } - - void PushLayer(const Rect& bounds) override { CRU_UNUSED(bounds) } - - void PopLayer() override {} - - void PushState() override {} - - void PopState() override {} - - void EndDraw() override {} -}; -} // namespace cru::platform::graphics |
