diff options
author | crupest <crupest@outlook.com> | 2022-01-30 22:23:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-30 22:23:59 +0800 |
commit | b9a553d4acc15ec981636b30db537be280d593e5 (patch) | |
tree | c909657f2bbd112abafc104db28034b67d895d45 /include/cru/platform/graphics/NullPainter.hpp | |
parent | 1909ee98b92ea993e6fbbdb628da0cf586db7d52 (diff) | |
download | cru-b9a553d4acc15ec981636b30db537be280d593e5.tar.gz cru-b9a553d4acc15ec981636b30db537be280d593e5.tar.bz2 cru-b9a553d4acc15ec981636b30db537be280d593e5.zip |
...
Diffstat (limited to 'include/cru/platform/graphics/NullPainter.hpp')
-rw-r--r-- | include/cru/platform/graphics/NullPainter.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/cru/platform/graphics/NullPainter.hpp b/include/cru/platform/graphics/NullPainter.hpp index b5c796d3..a47546b6 100644 --- a/include/cru/platform/graphics/NullPainter.hpp +++ b/include/cru/platform/graphics/NullPainter.hpp @@ -3,7 +3,8 @@ #include "cru/common/Base.hpp" namespace cru::platform::graphics { -class CRU_PLATFORM_GRAPHICS_API NullPainter : public Object, public virtual IPainter { +class CRU_PLATFORM_GRAPHICS_API NullPainter : public Object, + public virtual IPainter { public: NullPainter() = default; @@ -65,6 +66,11 @@ class CRU_PLATFORM_GRAPHICS_API NullPainter : public Object, public virtual IPai CRU_UNUSED(brush) } + void DrawImage(const Rect& rect, IImage* image) override { + CRU_UNUSED(rect) + CRU_UNUSED(image) + } + void PushLayer(const Rect& bounds) override { CRU_UNUSED(bounds) } void PopLayer() override {} |