mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibWeb: Move HTML object model stuff into LibWeb/HTML/
Take a hint from SVG and more all the HTML classes into HTML instead of mixing them with the DOM classes.
This commit is contained in:
parent
fbc54a2dba
commit
a565121793
77 changed files with 159 additions and 152 deletions
29
Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
Normal file
29
Libraries/LibWeb/HTML/CanvasRenderingContext2D.idl
Normal file
|
@ -0,0 +1,29 @@
|
|||
interface CanvasRenderingContext2D {
|
||||
|
||||
void fillRect(double x, double y, double w, double h);
|
||||
void strokeRect(double x, double y, double w, double h);
|
||||
|
||||
void scale(double x, double y);
|
||||
void translate(double x, double y);
|
||||
void rotate(double radians);
|
||||
|
||||
void beginPath();
|
||||
void closePath();
|
||||
void fill(DOMString fillRule);
|
||||
void stroke();
|
||||
void moveTo(double x, double y);
|
||||
void lineTo(double x, double y);
|
||||
void quadraticCurveTo(double cpx, double cpy, double x, double y);
|
||||
|
||||
void drawImage(HTMLImageElement image, double dx, double dy);
|
||||
|
||||
attribute DOMString fillStyle;
|
||||
attribute DOMString strokeStyle;
|
||||
attribute double lineWidth;
|
||||
|
||||
ImageData createImageData(double sw, double sh);
|
||||
void putImageData(ImageData imagedata, double dx, double dy);
|
||||
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue