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

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

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    getX1
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Segment_getX1 (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        {
            jint result_j = (jint) (GdkSegment_get_x1 (obj_g));
            return result_j;
        }
    }

    void GdkSegment_set_x1 (GdkSegment * cptr, gint32 x1) 
    {
        cptr->x1 = x1;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    setX1
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Segment_setX1 (JNIEnv *env, jint obj, jint x1) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        gint32 x1_g = (gint32) x1;
        {
            GdkSegment_set_x1 (obj_g, x1_g);
        }
    }

    gint32 GdkSegment_get_y1 (GdkSegment * cptr) 
    {
        return cptr->y1;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    getY1
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Segment_getY1 (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        {
            jint result_j = (jint) (GdkSegment_get_y1 (obj_g));
            return result_j;
        }
    }

    void GdkSegment_set_y1 (GdkSegment * cptr, gint32 y1) 
    {
        cptr->y1 = y1;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    setY1
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Segment_setY1 (JNIEnv *env, jint obj, jint y1) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        gint32 y1_g = (gint32) y1;
        {
            GdkSegment_set_y1 (obj_g, y1_g);
        }
    }

    gint32 GdkSegment_get_x2 (GdkSegment * cptr) 
    {
        return cptr->x2;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    getX2
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Segment_getX2 (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        {
            jint result_j = (jint) (GdkSegment_get_x2 (obj_g));
            return result_j;
        }
    }

    void GdkSegment_set_x2 (GdkSegment * cptr, gint32 x2) 
    {
        cptr->x2 = x2;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    setX2
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Segment_setX2 (JNIEnv *env, jint obj, jint x2) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        gint32 x2_g = (gint32) x2;
        {
            GdkSegment_set_x2 (obj_g, x2_g);
        }
    }

    gint32 GdkSegment_get_y2 (GdkSegment * cptr) 
    {
        return cptr->y2;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    getY2
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Segment_getY2 (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        {
            jint result_j = (jint) (GdkSegment_get_y2 (obj_g));
            return result_j;
        }
    }

    void GdkSegment_set_y2 (GdkSegment * cptr, gint32 y2) 
    {
        cptr->y2 = y2;
    }

    /*
     * Class:     org.gnu.gdk.Segment
     * Method:    setY2
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Segment_setY2 (JNIEnv *env, jint obj, jint y2) 
    {
        GdkSegment *obj_g = (GdkSegment *)obj;
        gint32 y2_g = (gint32) y2;
        {
            GdkSegment_set_y2 (obj_g, y2_g);
        }
    }

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

#endif
