Browse Source

Started Context2d::FillText()

v1.x
Tj Holowaychuk 14 years ago
parent
commit
626a7b1e6d
  1. 11
      src/CanvasRenderingContext2d.cc
  2. 1
      src/CanvasRenderingContext2d.h

11
src/CanvasRenderingContext2d.cc

@ -88,6 +88,7 @@ Context2d::Initialize(Handle<Object> target) {
NODE_SET_PROTOTYPE_METHOD(t, "strokeRect", StrokeRect);
NODE_SET_PROTOTYPE_METHOD(t, "clearRect", ClearRect);
NODE_SET_PROTOTYPE_METHOD(t, "rect", Rect);
NODE_SET_PROTOTYPE_METHOD(t, "fillText", FillText);
NODE_SET_PROTOTYPE_METHOD(t, "moveTo", MoveTo);
NODE_SET_PROTOTYPE_METHOD(t, "lineTo", LineTo);
NODE_SET_PROTOTYPE_METHOD(t, "bezierCurveTo", BezierCurveTo);
@ -790,6 +791,16 @@ Context2d::MoveTo(const Arguments &args) {
return Undefined();
}
/*
* Fill text at x, y.
*/
Handle<Value>
Context2d::FillText(const Arguments &args) {
return Undefined();
}
/*
* Fill the rectangle defined by x, y, width and height.
*/

1
src/CanvasRenderingContext2d.h

@ -64,6 +64,7 @@ class Context2d: public node::ObjectWrap {
static Handle<Value> SetShadowRGBA(const Arguments &args);
static Handle<Value> SetFillPattern(const Arguments &args);
static Handle<Value> SetStrokePattern(const Arguments &args);
static Handle<Value> FillText(const Arguments &args);
static Handle<Value> BezierCurveTo(const Arguments &args);
static Handle<Value> QuadraticCurveTo(const Arguments &args);
static Handle<Value> LineTo(const Arguments &args);

Loading…
Cancel
Save