/*
 * 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:18 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.Range
     * Method:    gtk_range_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Range_gtk_1range_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_range_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_set_update_policy
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Range_gtk_1range_1set_1update_1policy (JNIEnv *env, 
        jclass cls, jint range, jint policy) 
    {
        GtkRange *range_g = (GtkRange *)range;
        GtkUpdateType policy_g = (GtkUpdateType) policy;
        {
            gtk_range_set_update_policy (range_g, policy_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_get_update_policy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Range_gtk_1range_1get_1update_1policy (JNIEnv *env, 
        jclass cls, jint range) 
    {
        GtkRange *range_g = (GtkRange *)range;
        {
            jint result_j = (jint) (gtk_range_get_update_policy (range_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_set_adjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Range_gtk_1range_1set_1adjustment (JNIEnv *env, jclass 
        cls, jint range, jint adjustment) 
    {
        GtkRange *range_g = (GtkRange *)range;
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_range_set_adjustment (range_g, adjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_get_adjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Range_gtk_1range_1get_1adjustment (JNIEnv *env, jclass 
        cls, jint range) 
    {
        GtkRange *range_g = (GtkRange *)range;
        {
            return (jint)gtk_range_get_adjustment (range_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_set_inverted
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Range_gtk_1range_1set_1inverted (JNIEnv *env, jclass 
        cls, jint range, jboolean setting) 
    {
        GtkRange *range_g = (GtkRange *)range;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_range_set_inverted (range_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_get_inverted
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Range_gtk_1range_1get_1inverted (JNIEnv *env, 
        jclass cls, jint range) 
    {
        GtkRange *range_g = (GtkRange *)range;
        {
            jboolean result_j = (jboolean) (gtk_range_get_inverted (range_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_set_increments
     * Signature: (IDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Range_gtk_1range_1set_1increments (JNIEnv *env, jclass 
        cls, jint range, jdouble step, jdouble page) 
    {
        GtkRange *range_g = (GtkRange *)range;
        gdouble step_g = (gdouble) step;
        gdouble page_g = (gdouble) page;
        {
            gtk_range_set_increments (range_g, step_g, page_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_set_range
     * Signature: (IDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Range_gtk_1range_1set_1range (JNIEnv *env, jclass cls, 
        jint range, jdouble min, jdouble max) 
    {
        GtkRange *range_g = (GtkRange *)range;
        gdouble min_g = (gdouble) min;
        gdouble max_g = (gdouble) max;
        {
            gtk_range_set_range (range_g, min_g, max_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_set_value
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Range_gtk_1range_1set_1value (JNIEnv *env, jclass cls, 
        jint range, jdouble value) 
    {
        GtkRange *range_g = (GtkRange *)range;
        gdouble value_g = (gdouble) value;
        {
            gtk_range_set_value (range_g, value_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Range
     * Method:    gtk_range_get_value
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_Range_gtk_1range_1get_1value (JNIEnv *env, jclass 
        cls, jint range) 
    {
        GtkRange *range_g = (GtkRange *)range;
        {
            jdouble result_j = (jdouble) (gtk_range_get_value (range_g));
            return result_j;
        }
    }

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

#endif
