aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/web_canvas/WebCanvasBrush.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-10-09 22:58:06 +0800
committercrupest <crupest@outlook.com>2023-10-09 22:58:06 +0800
commit6fc14693d01f2be98b45d70405b16883607d4666 (patch)
treed2c540e4188abbdb3cf0c28f93942272a7bcbed7 /include/cru/platform/graphics/web_canvas/WebCanvasBrush.h
parent78760fd8a5b310ca4e8de502e510b95c9b4c880c (diff)
downloadcru-6fc14693d01f2be98b45d70405b16883607d4666.tar.gz
cru-6fc14693d01f2be98b45d70405b16883607d4666.tar.bz2
cru-6fc14693d01f2be98b45d70405b16883607d4666.zip
...
Diffstat (limited to 'include/cru/platform/graphics/web_canvas/WebCanvasBrush.h')
-rw-r--r--include/cru/platform/graphics/web_canvas/WebCanvasBrush.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/web_canvas/WebCanvasBrush.h b/include/cru/platform/graphics/web_canvas/WebCanvasBrush.h
index 2f278fa6..72dd0723 100644
--- a/include/cru/platform/graphics/web_canvas/WebCanvasBrush.h
+++ b/include/cru/platform/graphics/web_canvas/WebCanvasBrush.h
@@ -2,12 +2,16 @@
#include "../Brush.h"
#include "WebCanvasResource.h"
+#include <emscripten/val.h>
+
namespace cru::platform::graphics::web_canvas {
class WebCanvasBrush : public WebCanvasResource, public virtual IBrush {
public:
explicit WebCanvasBrush(WebCanvasGraphicsFactory* factory);
~WebCanvasBrush() override;
+
+ virtual emscripten::val GetStyle() = 0;
};
class WebCanvasSolidColorBrush : public WebCanvasBrush,
@@ -24,6 +28,8 @@ class WebCanvasSolidColorBrush : public WebCanvasBrush,
String GetCssColor() const;
+ emscripten::val GetStyle() override;
+
private:
Color color_;
};