diff options
Diffstat (limited to 'include/cru/platform/win/win_painter.hpp')
| -rw-r--r-- | include/cru/platform/win/win_painter.hpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/cru/platform/win/win_painter.hpp b/include/cru/platform/win/win_painter.hpp deleted file mode 100644 index 3c37ccb2..00000000 --- a/include/cru/platform/win/win_painter.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -#include "win_pre_config.hpp" - -#include "../painter.hpp" - -namespace cru::platform::win { -class WinNativeWindow; - -class WinPainter : public Object, public virtual Painter { - public: - explicit WinPainter(WinNativeWindow* window); - WinPainter(const WinPainter& other) = delete; - WinPainter(WinPainter&& other) = delete; - WinPainter& operator=(const WinPainter& other) = delete; - WinPainter& operator=(WinPainter&& other) = delete; - ~WinPainter() override; - - Matrix GetTransform() override; - void SetTransform(const Matrix& matrix) override; - void Clear(const ui::Color& color) override; - void StrokeRectangle(const ui::Rect& rectangle, Brush* brush, - float width) override; - void FillRectangle(const ui::Rect& rectangle, Brush* brush) override; - void StrokeGeometry(Geometry* geometry, Brush* brush, float width) override; - void FillGeometry(Geometry* geometry, Brush* brush) override; - void DrawText(const ui::Point& offset, TextLayout* text_layout, - Brush* brush) override; - void EndDraw() override; - bool IsDisposed() override { return is_disposed; } - - void EndDrawAndDeleteThis() { - EndDraw(); - delete this; - } - - private: - WinNativeWindow* window_; - ID2D1RenderTarget* render_target_; - - bool is_disposed = false; -}; -} // namespace cru::platform::win |
