diff options
author | crupest <crupest@outlook.com> | 2019-04-01 15:28:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-01 15:28:07 +0800 |
commit | 3e89aa733587043645f5fda72596e4ff3cd21d2a (patch) | |
tree | 7daadddf1073f537bb580a0cdf77208cf26e6271 /include/cru/platform/painter.hpp | |
parent | 8ca0873597eb05a2f120d3ea107660abcff4533c (diff) | |
download | cru-3e89aa733587043645f5fda72596e4ff3cd21d2a.tar.gz cru-3e89aa733587043645f5fda72596e4ff3cd21d2a.tar.bz2 cru-3e89aa733587043645f5fda72596e4ff3cd21d2a.zip |
...
Diffstat (limited to 'include/cru/platform/painter.hpp')
-rw-r--r-- | include/cru/platform/painter.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/cru/platform/painter.hpp b/include/cru/platform/painter.hpp new file mode 100644 index 00000000..4ad09247 --- /dev/null +++ b/include/cru/platform/painter.hpp @@ -0,0 +1,15 @@ +#pragma once +#include "cru/common/base.hpp" + +#include "cru/common/ui_base.hpp" + +namespace cru::platform { +struct Brush; +struct Geometry; + +struct Painter : virtual Interface { + virtual void StrokeGeometry(Geometry* geometry, Brush* brush, float width) = 0; + virtual void FillGeometry(Geometry* geometry, Brush* brush) = 0; + virtual void EndDraw() = 0; +}; +} // namespace cru::platform |