/*
 * 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:23 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gdk/gdk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gint32 GdkRectangle_get_x (GdkRectangle * cptr) 
    {
        return cptr->x;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    getX
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Rectangle_getX (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        {
            jint result_j = (jint) (GdkRectangle_get_x (obj_g));
            return result_j;
        }
    }

    void GdkRectangle_set_x (GdkRectangle * cptr, gint32 x) 
    {
        cptr->x = x;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    setX
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Rectangle_setX (JNIEnv *env, jint obj, jint x) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        gint32 x_g = (gint32) x;
        {
            GdkRectangle_set_x (obj_g, x_g);
        }
    }

    gint32 GdkRectangle_get_y (GdkRectangle * cptr) 
    {
        return cptr->y;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    getY
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Rectangle_getY (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        {
            jint result_j = (jint) (GdkRectangle_get_y (obj_g));
            return result_j;
        }
    }

    void GdkRectangle_set_y (GdkRectangle * cptr, gint32 y) 
    {
        cptr->y = y;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    setY
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Rectangle_setY (JNIEnv *env, jint obj, jint y) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        gint32 y_g = (gint32) y;
        {
            GdkRectangle_set_y (obj_g, y_g);
        }
    }

    guint32 GdkRectangle_get_width (GdkRectangle * cptr) 
    {
        return cptr->width;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    getWidth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Rectangle_getWidth (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        {
            jint result_j = (jint) (GdkRectangle_get_width (obj_g));
            return result_j;
        }
    }

    void GdkRectangle_set_width (GdkRectangle * cptr, guint32 width) 
    {
        cptr->width = width;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    setWidth
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Rectangle_setWidth (JNIEnv *env, jint obj, jint width) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        guint32 width_g = (guint32) width;
        {
            GdkRectangle_set_width (obj_g, width_g);
        }
    }

    guint32 GdkRectangle_get_height (GdkRectangle * cptr) 
    {
        return cptr->height;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    getHeight
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Rectangle_getHeight (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        {
            jint result_j = (jint) (GdkRectangle_get_height (obj_g));
            return result_j;
        }
    }

    void GdkRectangle_set_height (GdkRectangle * cptr, guint32 height) 
    {
        cptr->height = height;
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    setHeight
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Rectangle_setHeight (JNIEnv *env, jint obj, jint height)
    {
        GdkRectangle *obj_g = (GdkRectangle *)obj;
        guint32 height_g = (guint32) height;
        {
            GdkRectangle_set_height (obj_g, height_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    gdk_rectangle_intersect
     * Signature: (III)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Rectangle_gdk_1rectangle_1intersect (JNIEnv *env, 
        jclass cls, jint src1, jint src2, jint dest) 
    {
        GdkRectangle *src1_g = (GdkRectangle *)src1;
        GdkRectangle *src2_g = (GdkRectangle *)src2;
        GdkRectangle *dest_g = (GdkRectangle *)dest;
        {
            jint result_j = (jint) (gdk_rectangle_intersect (src1_g, src2_g, dest_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.Rectangle
     * Method:    gdk_rectangle_union
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Rectangle_gdk_1rectangle_1union (JNIEnv *env, jclass 
        cls, jint src1, jint src2, jint dest) 
    {
        GdkRectangle *src1_g = (GdkRectangle *)src1;
        GdkRectangle *src2_g = (GdkRectangle *)src2;
        GdkRectangle *dest_g = (GdkRectangle *)dest;
        {
            gdk_rectangle_union (src1_g, src2_g, dest_g);
        }
    }

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

#endif
