summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-21 00:09:31 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-21 01:24:36 +0200
commita0f3e3c50e6f9e2b69c902e49ab05f288712b17b (patch)
treeb309a276476007945cc7ccedb5abd81dace3b612 /Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h
parentabb33d425e177c200fbcf0ffe58bcf9215874010 (diff)
downloadserenity-a0f3e3c50e6f9e2b69c902e49ab05f288712b17b.zip
LibWeb: Add CanvasRenderingContext2D.canvas
Diffstat (limited to 'Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h')
-rw-r--r--Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h b/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h
index bd8fb1fafc..eed7cc1771 100644
--- a/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h
+++ b/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.h
@@ -47,12 +47,6 @@ private:
static JS::Value draw_image(JS::Interpreter&);
static JS::Value scale(JS::Interpreter&);
static JS::Value translate(JS::Interpreter&);
- static JS::Value fill_style_getter(JS::Interpreter&);
- static void fill_style_setter(JS::Interpreter&, JS::Value);
- static JS::Value stroke_style_getter(JS::Interpreter&);
- static void stroke_style_setter(JS::Interpreter&, JS::Value);
- static JS::Value line_width_getter(JS::Interpreter&);
- static void line_width_setter(JS::Interpreter&, JS::Value);
static JS::Value begin_path(JS::Interpreter&);
static JS::Value close_path(JS::Interpreter&);
static JS::Value stroke(JS::Interpreter&);
@@ -60,10 +54,20 @@ private:
static JS::Value move_to(JS::Interpreter&);
static JS::Value line_to(JS::Interpreter&);
static JS::Value quadratic_curve_to(JS::Interpreter&);
-
static JS::Value create_image_data(JS::Interpreter&);
static JS::Value put_image_data(JS::Interpreter&);
+ static JS::Value fill_style_getter(JS::Interpreter&);
+ static void fill_style_setter(JS::Interpreter&, JS::Value);
+
+ static JS::Value stroke_style_getter(JS::Interpreter&);
+ static void stroke_style_setter(JS::Interpreter&, JS::Value);
+
+ static void line_width_setter(JS::Interpreter&, JS::Value);
+ static JS::Value line_width_getter(JS::Interpreter&);
+
+ static JS::Value canvas_getter(JS::Interpreter&);
+
NonnullRefPtr<CanvasRenderingContext2D> m_impl;
};