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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gdouble GtkAdjustment_get_lower (GtkAdjustment * cptr) 
    {
        return cptr->lower;
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    getLower
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Adjustment_getLower (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkAdjustment *cptr_g = (GtkAdjustment *)cptr;
        {
            jdouble result_j = (jdouble) (GtkAdjustment_get_lower (cptr_g));
            return result_j;
        }
    }

    gdouble GtkAdjustment_get_upper (GtkAdjustment * cptr) 
    {
        return cptr->upper;
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    getUpper
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Adjustment_getUpper (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkAdjustment *cptr_g = (GtkAdjustment *)cptr;
        {
            jdouble result_j = (jdouble) (GtkAdjustment_get_upper (cptr_g));
            return result_j;
        }
    }

    gdouble GtkAdjustment_get_step_increment (GtkAdjustment * cptr) 
    {
        return cptr->step_increment;
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    getStepIncrement
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Adjustment_getStepIncrement (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkAdjustment *cptr_g = (GtkAdjustment *)cptr;
        {
            jdouble result_j = (jdouble) (GtkAdjustment_get_step_increment (cptr_g));
            return result_j;
        }
    }

    gdouble GtkAdjustment_get_page_increment (GtkAdjustment * cptr) 
    {
        return cptr->page_increment;
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    getPageIncrement
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Adjustment_getPageIncrement (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkAdjustment *cptr_g = (GtkAdjustment *)cptr;
        {
            jdouble result_j = (jdouble) (GtkAdjustment_get_page_increment (cptr_g));
            return result_j;
        }
    }

    gdouble GtkAdjustment_get_page_size (GtkAdjustment * cptr) 
    {
        return cptr->page_size;
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    getPageSize
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Adjustment_getPageSize (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GtkAdjustment *cptr_g = (GtkAdjustment *)cptr;
        {
            jdouble result_j = (jdouble) (GtkAdjustment_get_page_size (cptr_g));
            return result_j;
        }
    }

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

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    gtk_adjustment_new
     * Signature: (DDDDDD)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Adjustment_gtk_1adjustment_1new (JNIEnv *env, jclass 
        cls, jdouble value, jdouble lower, jdouble upper, jdouble stepIncrement, jdouble 
        pageIncrement, jdouble pageSize) 
    {
        gdouble value_g = (gdouble) value;
        gdouble lower_g = (gdouble) lower;
        gdouble upper_g = (gdouble) upper;
        gdouble stepIncrement_g = (gdouble) stepIncrement;
        gdouble pageIncrement_g = (gdouble) pageIncrement;
        gdouble pageSize_g = (gdouble) pageSize;
        {
            return (jint)gtk_adjustment_new (value_g, lower_g, upper_g, stepIncrement_g, 
                pageIncrement_g, pageSize_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    gtk_adjustment_changed
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Adjustment_gtk_1adjustment_1changed (JNIEnv *env, 
        jclass cls, jint adjustment) 
    {
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_adjustment_changed (adjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    gtk_adjustment_value_changed
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Adjustment_gtk_1adjustment_1value_1changed (JNIEnv 
        *env, jclass cls, jint adjustment) 
    {
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_adjustment_value_changed (adjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    gtk_adjustment_clamp_page
     * Signature: (IDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Adjustment_gtk_1adjustment_1clamp_1page (JNIEnv *env, 
        jclass cls, jint adjustment, jdouble lower, jdouble upper) 
    {
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        gdouble lower_g = (gdouble) lower;
        gdouble upper_g = (gdouble) upper;
        {
            gtk_adjustment_clamp_page (adjustment_g, lower_g, upper_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    gtk_adjustment_get_value
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Adjustment_gtk_1adjustment_1get_1value (JNIEnv *env, 
        jclass cls, jint adjustment) 
    {
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            jdouble result_j = (jdouble) (gtk_adjustment_get_value (adjustment_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Adjustment
     * Method:    gtk_adjustment_set_value
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Adjustment_gtk_1adjustment_1set_1value (JNIEnv *env, 
        jclass cls, jint adjustment, jdouble value) 
    {
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        gdouble value_g = (gdouble) value;
        {
            gtk_adjustment_set_value (adjustment_g, value_g);
        }
    }

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

#endif
