aboutsummaryrefslogtreecommitdiff
path: root/src/platform/graphics/web_canvas/Brush.cpp
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 /src/platform/graphics/web_canvas/Brush.cpp
parent78760fd8a5b310ca4e8de502e510b95c9b4c880c (diff)
downloadcru-6fc14693d01f2be98b45d70405b16883607d4666.tar.gz
cru-6fc14693d01f2be98b45d70405b16883607d4666.tar.bz2
cru-6fc14693d01f2be98b45d70405b16883607d4666.zip
...
Diffstat (limited to 'src/platform/graphics/web_canvas/Brush.cpp')
-rw-r--r--src/platform/graphics/web_canvas/Brush.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platform/graphics/web_canvas/Brush.cpp b/src/platform/graphics/web_canvas/Brush.cpp
index 1c192b75..b86eb6a5 100644
--- a/src/platform/graphics/web_canvas/Brush.cpp
+++ b/src/platform/graphics/web_canvas/Brush.cpp
@@ -20,4 +20,8 @@ String WebCanvasSolidColorBrush::GetCssColor() const {
return color_.ToString();
}
+emscripten::val WebCanvasSolidColorBrush::GetStyle() {
+ return emscripten::val::u16string(color_.ToString().c_str());
+}
+
} // namespace cru::platform::graphics::web_canvas