mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibWeb: Add CanvasRenderingContext2D.canvas
This commit is contained in:
parent
abb33d425e
commit
a0f3e3c50e
3 changed files with 28 additions and 11 deletions
|
@ -77,6 +77,8 @@ public:
|
|||
RefPtr<ImageData> create_image_data(JS::GlobalObject&, int width, int height) const;
|
||||
void put_image_data(const ImageData&, float x, float y);
|
||||
|
||||
HTMLCanvasElement* element() { return m_element; }
|
||||
|
||||
private:
|
||||
explicit CanvasRenderingContext2D(HTMLCanvasElement&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue