/*
 * 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:23 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.ProgressBar
     * Method:    gtk_progress_bar_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gtk_progress_bar_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_pulse
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1pulse (JNIEnv *env, 
        jclass cls, jint pbar) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        {
            gtk_progress_bar_pulse (pbar_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_set_text
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1set_1text (JNIEnv *env, 
        jclass cls, jint pbar, jstring text) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        const gchar* text_g = (*env)->GetStringUTFChars(env, text, NULL);
		gtk_progress_bar_set_text (pbar_g, text_g);
		(*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_set_fraction
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1set_1fraction (JNIEnv 
        *env, jclass cls, jint pbar, jdouble fraction) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        gdouble fraction_g = (gdouble) fraction;
        {
            gtk_progress_bar_set_fraction (pbar_g, fraction_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_set_pulse_step
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1set_1pulse_1step (
        JNIEnv *env, jclass cls, jint pbar, jdouble fraction) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        gdouble fraction_g = (gdouble) fraction;
        {
            gtk_progress_bar_set_pulse_step (pbar_g, fraction_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_set_orientation
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1set_1orientation (
        JNIEnv *env, jclass cls, jint pbar, jint orientation) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        GtkProgressBarOrientation orientation_g = (GtkProgressBarOrientation) orientation;
        {
            gtk_progress_bar_set_orientation (pbar_g, orientation_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_get_text
     * Signature: (I)[B
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1get_1text (JNIEnv 
        *env, jclass cls, jint pbar) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
		return (*env)->NewStringUTF(env,  (gchar*)gtk_progress_bar_get_text (pbar_g)) ;
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_get_fraction
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1get_1fraction (
        JNIEnv *env, jclass cls, jint pbar) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        {
            jdouble result_j = (jdouble) (gtk_progress_bar_get_fraction (pbar_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_get_pulse_step
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1get_1pulse_1step (
        JNIEnv *env, jclass cls, jint pbar) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        {
            jdouble result_j = (jdouble) (gtk_progress_bar_get_pulse_step (pbar_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.ProgressBar
     * Method:    gtk_progress_bar_get_orientation
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ProgressBar_gtk_1progress_1bar_1get_1orientation (
        JNIEnv *env, jclass cls, jint pbar) 
    {
        GtkProgressBar *pbar_g = (GtkProgressBar *)pbar;
        {
            jint result_j = (jint) (gtk_progress_bar_get_orientation (pbar_g));
            return result_j;
        }
    }

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

#endif
