/*
 * 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-01 07:00:25 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gdk/gdk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GdkVisual * GdkImage_get_visual (GdkImage * cptr) 
    {
        return cptr->visual;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getVisual
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getVisual (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            return (jint)GdkImage_get_visual (obj_g);
        }
    }

    GdkByteOrder GdkImage_get_byte_order (GdkImage * cptr) 
    {
        return cptr->byte_order;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getByteOrder
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getByteOrder (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_byte_order (obj_g));
            return result_j;
        }
    }

    guint32 GdkImage_get_width (GdkImage * cptr) 
    {
        return cptr->width;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getWidth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getWidth (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_width (obj_g));
            return result_j;
        }
    }

    guint32 GdkImage_get_height (GdkImage * cptr) 
    {
        return cptr->height;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getHeight
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getHeight (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_height (obj_g));
            return result_j;
        }
    }

    guint32 GdkImage_get_depth (GdkImage * cptr) 
    {
        return cptr->depth;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getDepth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getDepth (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_depth (obj_g));
            return result_j;
        }
    }

    guint32 GdkImage_get_bpp (GdkImage * cptr) 
    {
        return cptr->bpp;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getBpp
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getBpp (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_bpp (obj_g));
            return result_j;
        }
    }

    guint32 GdkImage_get_bpl (GdkImage * cptr) 
    {
        return cptr->bpl;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getBpl
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getBpl (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_bpl (obj_g));
            return result_j;
        }
    }

    guint32 GdkImage_get_bits_per_pixel (GdkImage * cptr) 
    {
        return cptr->bits_per_pixel;
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    getBitsPerPixel
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_getBitsPerPixel (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkImage *obj_g = (GdkImage *)obj;
        {
            jint result_j = (jint) (GdkImage_get_bits_per_pixel (obj_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    gdk_image_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_gdk_1image_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gdk_image_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    gdk_image_new
     * Signature: (IIII)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_gdk_1image_1new (JNIEnv *env, jclass cls, jint 
        type, jint visual, jint width, jint height) 
    {
        GdkImageType type_g = (GdkImageType) type;
        GdkVisual *visual_g = (GdkVisual *)visual;
        gint32 width_g = (gint32) width;
        gint32 height_g = (gint32) height;
        {
            return (jint)gdk_image_new (type_g, visual_g, width_g, height_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    gdk_image_put_pixel
     * Signature: (IIII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Image_gdk_1image_1put_1pixel (JNIEnv *env, jclass cls, 
        jint image, jint x, jint y, jint pixel) 
    {
        GdkImage *image_g = (GdkImage *)image;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        guint32 pixel_g = (guint32) pixel;
        {
            gdk_image_put_pixel (image_g, x_g, y_g, pixel_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    gdk_image_get_pixel
     * Signature: (III)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_gdk_1image_1get_1pixel (JNIEnv *env, jclass cls, 
        jint image, jint x, jint y) 
    {
        GdkImage *image_g = (GdkImage *)image;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            jint result_j = (jint) (gdk_image_get_pixel (image_g, x_g, y_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    gdk_image_set_colormap
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Image_gdk_1image_1set_1colormap (JNIEnv *env, jclass 
        cls, jint image, jint colormap) 
    {
        GdkImage *image_g = (GdkImage *)image;
        GdkColormap *colormap_g = (GdkColormap *)colormap;
        {
            gdk_image_set_colormap (image_g, colormap_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Image
     * Method:    gdk_image_get_colormap
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Image_gdk_1image_1get_1colormap (JNIEnv *env, jclass 
        cls, jint image) 
    {
        GdkImage *image_g = (GdkImage *)image;
        {
            return (jint)gdk_image_get_colormap (image_g);
        }
    }

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

#endif
