Added the version macro and changed it to php 3.01
[phpCairo.git] / src / cairo / phpCairo_api.h
blobf8096b5c92c56a3024d56ccbe0c5b4655a02b92e
1 #include<php.h>
2 #include <cairo.h>
4 typedef struct _context_object {
5 zend_object std;
6 cairo_t *context;
7 } context_object;
9 typedef struct _surface_object {
10 zend_object std;
11 cairo_surface_t *surface;
12 } surface_object;
14 typedef struct _path_object {
15 zend_object std;
16 cairo_path_t *path;
17 } path_object;
19 typedef struct _fontoptions_object {
20 zend_object std;
21 cairo_font_options_t *fontoptions;
22 } fontoptions_object;
24 typedef struct _fontface_object {
25 zend_object std;
26 cairo_font_face_t *fontface;
27 } fontface_object;
29 typedef struct _matrix_object {
30 zend_object std;
31 cairo_matrix_t matrix;
32 } matrix_object;
34 typedef struct _pattern_object {
35 zend_object std;
36 cairo_pattern_t *pattern;
37 } pattern_object;
39 typedef struct _scaledfont_object {
40 zend_object std;
41 cairo_scaled_font_t *scaledfont;
42 } scaledfont_object;
45 extern zend_class_entry* get_CairoSurface_ce_ptr(cairo_surface_t *);
46 extern zend_class_entry* get_CairoContext_ce_ptr();