/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2002 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome Team Members:
 *   Jean Van Wyk <jeanvanwyk@iname.com>
 *   Jeffrey S. Morgan <jeffrey.morgan@bristolwest.com>
 *   Dan Bornstein <danfuzz@milk.com>
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 *
 * This file was orriginally generated by the Java-GNOME Code Generator
 * Please do not modify the code that is identified as generated.  Also,
 * please insert your code above the generated code.
 *
 * Generation date: 2002-08-02 09:42:22 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_cell_renderer_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_get_size
     * Signature: (III[Lint ;[Lint ;[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1get_1size (JNIEnv 
        *env, jclass cls, jint cell, jint widget, jint cellArea, jintArray xOffset, jintArray 
        yOffset, jintArray width, jintArray height) 
    {
        GtkCellRenderer *cell_g = (GtkCellRenderer *)cell;
        GtkWidget *widget_g = (GtkWidget *)widget;
        GdkRectangle *cellArea_g = (GdkRectangle *)cellArea;
        gint *xOffset_g = (gint *) (*env)->GetIntArrayElements (env, xOffset, NULL);
        gint *yOffset_g = (gint *) (*env)->GetIntArrayElements (env, yOffset, NULL);
        gint *width_g = (gint *) (*env)->GetIntArrayElements (env, width, NULL);
        gint *height_g = (gint *) (*env)->GetIntArrayElements (env, height, NULL);
        {
            gtk_cell_renderer_get_size (cell_g, widget_g, cellArea_g, xOffset_g, yOffset_g, 
                width_g, height_g);
            (*env)->ReleaseIntArrayElements (env, xOffset, (jint *) xOffset_g, 0);
            (*env)->ReleaseIntArrayElements (env, yOffset, (jint *) yOffset_g, 0);
            (*env)->ReleaseIntArrayElements (env, width, (jint *) width_g, 0);
            (*env)->ReleaseIntArrayElements (env, height, (jint *) height_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_render
     * Signature: (IIIIIII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1render (JNIEnv *env, 
        jclass cls, jint cell, jint window, jint widget, jint backgroundArea, jint cellArea, jint 
        exposedArea, jint flags) 
    {
        GtkCellRenderer *cell_g = (GtkCellRenderer *)cell;
        GdkWindow *window_g = (GdkWindow *)window;
        GtkWidget *widget_g = (GtkWidget *)widget;
        GdkRectangle *backgroundArea_g = (GdkRectangle *)backgroundArea;
        GdkRectangle *cellArea_g = (GdkRectangle *)cellArea;
        GdkRectangle *exposedArea_g = (GdkRectangle *)exposedArea;
        GtkCellRendererState flags_g = (GtkCellRendererState) flags;
        {
            gtk_cell_renderer_render (cell_g, window_g, widget_g, backgroundArea_g, cellArea_g, 
                exposedArea_g, flags_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_activate
     * Signature: (III[BIII)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1activate (JNIEnv 
        *env, jclass cls, jint cell, jint event, jint widget, jstring path, jint backgroundArea, 
        jint cellArea, jint flags) 
    {
        GtkCellRenderer *cell_g = (GtkCellRenderer *)cell;
        GdkEvent *event_g = (GdkEvent *)event;
        GtkWidget *widget_g = (GtkWidget *)widget;
        GdkRectangle *backgroundArea_g = (GdkRectangle *)backgroundArea;
        GdkRectangle *cellArea_g = (GdkRectangle *)cellArea;
        GtkCellRendererState flags_g = (GtkCellRendererState) flags;
        const gchar* path_g = (*env)->GetStringUTFChars(env, path, NULL);
		jboolean result_j = (jboolean) (gtk_cell_renderer_activate (cell_g, event_g, widget_g, 
				path_g, backgroundArea_g, cellArea_g, flags_g));
		(*env)->ReleaseStringUTFChars(env, path, path_g);
		return result_j;
    }

    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_start_editing
     * Signature: (III[BIII)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1start_1editing (
        JNIEnv *env, jclass cls, jint cell, jint event, jint widget, jstring path, jint 
        backgroundArea, jint cellArea, jint flags) 
    {
        GtkCellRenderer *cell_g = (GtkCellRenderer *)cell;
        GdkEvent *event_g = (GdkEvent *)event;
        GtkWidget *widget_g = (GtkWidget *)widget;
        GdkRectangle *backgroundArea_g = (GdkRectangle *)backgroundArea;
        GdkRectangle *cellArea_g = (GdkRectangle *)cellArea;
        GtkCellRendererState flags_g = (GtkCellRendererState) flags;
        const gchar* path_g = (*env)->GetStringUTFChars(env, path, NULL);
		jint retval = (jint)gtk_cell_renderer_start_editing (cell_g, event_g, widget_g, path_g, 
			backgroundArea_g, cellArea_g, flags_g);
		(*env)->ReleaseStringUTFChars(env, path, path_g);
		return retval;
    }

    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_set_fixed_size
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1set_1fixed_1size (
        JNIEnv *env, jclass cls, jint cell, jint width, jint height) 
    {
        GtkCellRenderer *cell_g = (GtkCellRenderer *)cell;
        gint32 width_g = (gint32) width;
        gint32 height_g = (gint32) height;
        {
            gtk_cell_renderer_set_fixed_size (cell_g, width_g, height_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.CellRenderer
     * Method:    gtk_cell_renderer_get_fixed_size
     * Signature: (I[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_CellRenderer_gtk_1cell_1renderer_1get_1fixed_1size (
        JNIEnv *env, jclass cls, jint cell, jintArray width, jintArray height) 
    {
        GtkCellRenderer *cell_g = (GtkCellRenderer *)cell;
        gint *width_g = (gint *) (*env)->GetIntArrayElements (env, width, NULL);
        gint *height_g = (gint *) (*env)->GetIntArrayElements (env, height, NULL);
        {
            gtk_cell_renderer_get_fixed_size (cell_g, width_g, height_g);
            (*env)->ReleaseIntArrayElements (env, width, (jint *) width_g, 0);
            (*env)->ReleaseIntArrayElements (env, height, (jint *) height_g, 0);
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/
#ifdef __cplusplus
}

#endif
