[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Cairo.c, 1.18, NONE org_freedesktop_cairo_PsSurface.c, 1.4, NONE org_freedesktop_cairo_Context.c, NONE, 1.1

Jeffrey Morgan commit at pdx.freedesktop.org
Mon May 2 18:36:17 PDT 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/jni
In directory gabe:/tmp/cvs-serv8526/src/jni

Added Files:
	org_freedesktop_cairo_Context.c 
Removed Files:
	org_freedesktop_cairo_Cairo.c 
	org_freedesktop_cairo_PsSurface.c 
Log Message:
Renamed BoundingBox to Box, Cairo to Context, and removed PsSurface

--- org_freedesktop_cairo_Cairo.c DELETED ---

--- org_freedesktop_cairo_PsSurface.c DELETED ---

--- NEW FILE: org_freedesktop_cairo_Context.c ---
/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2005 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

#include <jni.h>
#include <cairo.h>
#include <jg_jnu.h>

#ifndef _Included_org_freedesktop_cairo_Context
#define _Included_org_freedesktop_cairo_Context
#ifdef __cplusplus
extern "C" {
#endif

[...1300 lines suppressed...]
	(*env)->ReleaseCharArrayElements(env, data, (jchar*)data_g, 0);
}

/*
 * Class:     org_freedesktop_cairo_Context
 * Method:    cairo_set_target_image_no_data
 * Signature: (Lorg/gnu/javagnome/Handle;III)V
 */
JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Context_cairo_1set_1target_1image_1no_1data
  (JNIEnv *env, jclass cls, jobject obj, jint format, jint width, jint height)
{
	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
	cairo_set_target_image_no_data(cr, (cairo_format_t)format, width, height);	
}


#ifdef __cplusplus
}
#endif
#endif




More information about the cairo-commit mailing list