[cairo-commit] rcairo/src rbcairo.h,NONE,1.1 shared.h,1.2,NONE

Evan Martin commit at pdx.freedesktop.org
Wed Nov 19 15:57:11 PST 2003


Committed by: martine

Update of /cvs/cairo/rcairo/src
In directory pdx:/tmp/cvs-serv3784/src

Added Files:
	rbcairo.h 
Removed Files:
	shared.h 
Log Message:
Rename shared.h -> rbcairo.h.


--- NEW FILE: rbcairo.h ---
/* ruby-cairo - Ruby bindings for Cairo.
 * Copyright (C) 2003 Evan Martin <martine at danga.com>
 *
 * vim: tabstop=4 shiftwidth=4 noexpandtab :
 */

#include <ruby.h>
#include <cairo.h>
#include <cairo-xlib.h>

void xlib_init();
void cairo_xlib_init(void);
void constants_init(void);

extern VALUE mCairo, cCairo, cCairoSurface, cCairoMatrix, cCairoImage;
extern VALUE cDisplay, eXlib;

typedef struct {
	char *data;
	cairo_format_t format;
	int width, height, stride;
} RCairoImage;

VALUE gen_Cairo(void);
VALUE gen_CairoMatrix(void);
VALUE gen_CairoSurface(void);

VALUE rcairo_display_new();
Display* rcairo_display_get_display(VALUE rdpy);

VALUE rcairo_new();
cairo_t* rcairo_get_cairo(VALUE rcairo);

void rcairo_image_init(void);
RCairoImage* rcairo_image_get_image(VALUE vimage);

VALUE rmatrix_new();
cairo_matrix_t* rmatrix_get_matrix(VALUE vmatrix);

VALUE rsurface_new_from();
cairo_surface_t* rsurface_get_surface(VALUE rcairo);

--- shared.h DELETED ---





More information about the cairo-commit mailing list