11 #include <emscripten.h> 71 char *globalCompositeOperation;
86 char *(*getLineJoin)(CanvasRenderingContext2D *
this);
87 char *(*getFont)(CanvasRenderingContext2D *
this);
88 void (*setFont)(CanvasRenderingContext2D *
this,
char *value);
89 void (*setTextAlign)(CanvasRenderingContext2D *
this,
char *value);
90 char *(*getTextAlign)(CanvasRenderingContext2D *
this);
91 void (*setFillStyle)(CanvasRenderingContext2D *
this,
char *value);
92 char *(*getFillStyle)(CanvasRenderingContext2D *
this);
93 void (*setStrokeStyle)(CanvasRenderingContext2D *
this,
char *value);
94 char *(*getStrokeStyle)(CanvasRenderingContext2D *
this);
95 void (*beginPath)(CanvasRenderingContext2D *
this);
96 void (*closePath)(CanvasRenderingContext2D *
this);
97 void (*moveTo)(CanvasRenderingContext2D *
this,
double x,
double y);
98 void (*lineTo)(CanvasRenderingContext2D *
this,
double x,
double y);
99 void (*bezierCurveTo)(CanvasRenderingContext2D *
this,
double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y);
100 void (*quadraticCurveTo)(CanvasRenderingContext2D *
this,
double cpx,
double cpy,
double x,
double y);
101 void (*arc)(CanvasRenderingContext2D *
this,
double x,
double y,
double radius,
double startAngle,
double endAngle);
102 void (*arcTo)(CanvasRenderingContext2D *
this,
double x1,
double y1,
double x2,
double y2,
double radius);
103 void (*ellipse)(CanvasRenderingContext2D *
this,
double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle);
104 void (*rect)(CanvasRenderingContext2D *
this,
double x,
double y,
double width,
double height);
105 void (*fill)(CanvasRenderingContext2D *
this);
106 void (*stroke)(CanvasRenderingContext2D *
this);
107 void (*clip)(CanvasRenderingContext2D *
this);
108 int (*isPointInPath)(CanvasRenderingContext2D *
this,
double x,
double y);
109 int (*isPointInStroke)(CanvasRenderingContext2D *
this,
double x,
double y);
110 void (*rotate)(CanvasRenderingContext2D *
this,
double angle);
111 void (*scale)(CanvasRenderingContext2D *
this,
double x,
double y);
112 void (*translate)(CanvasRenderingContext2D *
this,
double x,
double y);
113 void (*transform)(CanvasRenderingContext2D *
this,
double a,
double b,
double c,
double d,
double e,
double f);
114 void (*setTransform)(CanvasRenderingContext2D *
this,
double a,
double b,
double c,
double d,
double e,
double f);
115 void (*resetTransform)(CanvasRenderingContext2D *
this);
116 void (*setGlobalAlpha)(CanvasRenderingContext2D *
this,
double value);
117 double (*getGlobalAlpha)(CanvasRenderingContext2D *
this);
118 void (*setGlobalCompositeOperation)(CanvasRenderingContext2D *
this,
char *value);
119 char *(*getGlobalCompositeOperation)(CanvasRenderingContext2D *
this);
120 void (*save)(CanvasRenderingContext2D *
this);
121 void (*restore)(CanvasRenderingContext2D *
this);
void(* fillText)(CanvasRenderingContext2D *this, char *text, double x, double y, double maxWidth)
Definition: canvas.h:77
HTMLCanvasElement * createCanvas(char *name)
Definition: canvas.c:49
void freeCanvas(HTMLCanvasElement *canvas)
Definition: canvas.c:535
void(* strokeText)(CanvasRenderingContext2D *this, char *text, double x, double y, double maxWidth)
Definition: canvas.h:79