/*
 * 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:25 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.Curve
     * Method:    gtk_curve_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_curve_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1new (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_curve_new ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_reset
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1reset (JNIEnv *env, jclass cls, jint 
        curve) 
    {
        GtkCurve *curve_g = (GtkCurve *)curve;
        {
            gtk_curve_reset (curve_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_set_gamma
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1set_1gamma (JNIEnv *env, jclass cls, 
        jint curve, jdouble gamma) 
    {
        GtkCurve *curve_g = (GtkCurve *)curve;
        gdouble gamma_g = (gdouble) gamma;
        {
            gtk_curve_set_gamma (curve_g, gamma_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_set_range
     * Signature: (IDDDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1set_1range (JNIEnv *env, jclass cls, 
        jint curve, jdouble minX, jdouble maxX, jdouble minY, jdouble maxY) 
    {
        GtkCurve *curve_g = (GtkCurve *)curve;
        gdouble minX_g = (gdouble) minX;
        gdouble maxX_g = (gdouble) maxX;
        gdouble minY_g = (gdouble) minY;
        gdouble maxY_g = (gdouble) maxY;
        {
            gtk_curve_set_range (curve_g, minX_g, maxX_g, minY_g, maxY_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_get_vector
     * Signature: (II[Ldouble ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1get_1vector (JNIEnv *env, jclass cls, 
        jint curve, jint veclen, jdoubleArray vector) 
    {
        GtkCurve *curve_g = (GtkCurve *)curve;
        gint32 veclen_g = (gint32) veclen;
        gdouble *vector_g = (gdouble *) (*env)->GetDoubleArrayElements (env, vector, NULL);
        {
            gtk_curve_get_vector (curve_g, veclen_g, (gfloat*)vector_g);
            (*env)->ReleaseDoubleArrayElements (env, vector, (jdouble *) vector_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_set_vector
     * Signature: (II[Ldouble ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1set_1vector (JNIEnv *env, jclass cls, 
        jint curve, jint veclen, jdoubleArray vector) 
    {
        GtkCurve *curve_g = (GtkCurve *)curve;
        gint32 veclen_g = (gint32) veclen;
        gdouble *vector_g = (gdouble *) (*env)->GetDoubleArrayElements (env, vector, NULL);
        {
            gtk_curve_set_vector (curve_g, veclen_g, (gfloat*)vector_g);
            (*env)->ReleaseDoubleArrayElements (env, vector, (jdouble *) vector_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.Curve
     * Method:    gtk_curve_set_curve_type
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Curve_gtk_1curve_1set_1curve_1type (JNIEnv *env, jclass 
        cls, jint curve, jint type) 
    {
        GtkCurve *curve_g = (GtkCurve *)curve;
        GtkCurveType type_g = (GtkCurveType) type;
        {
            gtk_curve_set_curve_type (curve_g, type_g);
        }
    }

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

#endif
