mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibWeb: Add CanvasRenderingContext2D scale() and translate() stubs
These don't do anything for now.
This commit is contained in:
parent
2db8716a6f
commit
9d099835f9
4 changed files with 48 additions and 0 deletions
|
@ -24,6 +24,8 @@ public:
|
|||
String fill_style() const;
|
||||
|
||||
void fill_rect(int x, int y, int width, int height);
|
||||
void scale(double sx, double sy);
|
||||
void translate(double x, double y);
|
||||
|
||||
private:
|
||||
explicit CanvasRenderingContext2D(HTMLCanvasElement&);
|
||||
|
@ -34,6 +36,10 @@ private:
|
|||
|
||||
WeakPtr<HTMLCanvasElement> m_element;
|
||||
|
||||
double m_scale_x { 1 };
|
||||
double m_scale_y { 1 };
|
||||
double m_translate_x { 0 };
|
||||
double m_translate_y { 0 };
|
||||
Gfx::Color m_fill_style;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue