Browse Source

Namespaces

v1.x
Tj Holowaychuk 14 years ago
parent
commit
c2597935db
  1. 3
      src/Canvas.cc
  2. 1
      src/Canvas.h
  3. 2
      src/CanvasGradient.h
  4. 3
      src/CanvasRenderingContext2d.cc
  5. 2
      src/Image.h
  6. 4
      src/init.cc

3
src/Canvas.cc

@ -12,9 +12,6 @@
#include <node_buffer.h> #include <node_buffer.h>
#include <node_version.h> #include <node_version.h>
using namespace v8;
using namespace node;
/* /*
* Buffer data pointer access. * Buffer data pointer access.
*/ */

1
src/Canvas.h

@ -14,6 +14,7 @@
#include <cairo.h> #include <cairo.h>
using namespace v8; using namespace v8;
using namespace node;
/* /*
* Maxmimum states per context. * Maxmimum states per context.

2
src/CanvasGradient.h

@ -10,8 +10,6 @@
#include "Canvas.h" #include "Canvas.h"
using namespace v8;
class Gradient: public node::ObjectWrap { class Gradient: public node::ObjectWrap {
public: public:
static void Initialize(Handle<Object> target); static void Initialize(Handle<Object> target);

3
src/CanvasRenderingContext2d.cc

@ -13,9 +13,6 @@
#include "CanvasRenderingContext2d.h" #include "CanvasRenderingContext2d.h"
#include "CanvasGradient.h" #include "CanvasGradient.h"
using namespace v8;
using namespace node;
/* /*
* Set RGBA. * Set RGBA.
*/ */

2
src/Image.h

@ -10,8 +10,6 @@
#include "Canvas.h" #include "Canvas.h"
using namespace v8;
class Image: public node::ObjectWrap { class Image: public node::ObjectWrap {
public: public:
char *filename; char *filename;

4
src/init.cc

@ -7,6 +7,8 @@
#include "Canvas.h" #include "Canvas.h"
#include "Image.h" #include "Image.h"
#include "ImageData.h"
#include "PixelArray.h"
#include "CanvasGradient.h" #include "CanvasGradient.h"
#include "CanvasRenderingContext2d.h" #include "CanvasRenderingContext2d.h"
@ -15,6 +17,8 @@ init (Handle<Object> target) {
HandleScope scope; HandleScope scope;
Canvas::Initialize(target); Canvas::Initialize(target);
Image::Initialize(target); Image::Initialize(target);
ImageData::Initialize(target);
PixelArray::Initialize(target);
Context2d::Initialize(target); Context2d::Initialize(target);
Gradient::Initialize(target); Gradient::Initialize(target);
target->Set(String::New("cairoVersion"), String::New(cairo_version_string())); target->Set(String::New("cairoVersion"), String::New(cairo_version_string()));

Loading…
Cancel
Save