blob: 2e9791849ef3a56e5d6c4510422fd4382e5c9d89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "cru/common/base.hpp"
#include "cru/common/ui_base.hpp"
#include "matrix.hpp"
namespace cru::platform {
struct Brush;
struct Geometry;
struct Painter : virtual Interface {
virtual Matrix GetTransform() = 0;
virtual void SetTransform(const Matrix& matrix) = 0;
virtual void StrokeGeometry(Geometry* geometry, Brush* brush,
float width) = 0;
virtual void FillGeometry(Geometry* geometry, Brush* brush) = 0;
virtual void EndDraw() = 0;
virtual bool IsDisposed() = 0;
};
} // namespace cru::platform
|