/*
 * 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-08 10:21:58 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GtkButton * GnomeDruid_get_help (GnomeDruid * cptr) 
    {
        return (GtkButton*)cptr->help;
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    getHelp
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_getHelp (JNIEnv *env, jclass cls, jint cptr) 
    {
        GnomeDruid *cptr_g = (GnomeDruid *)cptr;
        {
            return (jint)GnomeDruid_get_help (cptr_g);
        }
    }

    GtkButton * GnomeDruid_get_back (GnomeDruid * cptr) 
    {
        return (GtkButton*)cptr->back;
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    getBack
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_getBack (JNIEnv *env, jclass cls, jint cptr) 
    {
        GnomeDruid *cptr_g = (GnomeDruid *)cptr;
        {
            return (jint)GnomeDruid_get_back (cptr_g);
        }
    }

    GtkButton * GnomeDruid_get_next (GnomeDruid * cptr) 
    {
        return (GtkButton*)cptr->next;
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    getNext
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_getNext (JNIEnv *env, jclass cls, jint cptr) 
    {
        GnomeDruid *cptr_g = (GnomeDruid *)cptr;
        {
            return (jint)GnomeDruid_get_next (cptr_g);
        }
    }

    GtkButton * GnomeDruid_get_cancel (GnomeDruid * cptr) 
    {
        return (GtkButton*)cptr->cancel;
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    getCancel
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_getCancel (JNIEnv *env, jclass cls, jint cptr) 
    {
        GnomeDruid *cptr_g = (GnomeDruid *)cptr;
        {
            return (jint)GnomeDruid_get_cancel (cptr_g);
        }
    }

    GtkButton * GnomeDruid_get_finish (GnomeDruid * cptr) 
    {
        return (GtkButton*)cptr->finish;
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    getFinish
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_getFinish (JNIEnv *env, jclass cls, jint cptr) 
    {
        GnomeDruid *cptr_g = (GnomeDruid *)cptr;
        {
            return (jint)GnomeDruid_get_finish (cptr_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1get_1type (JNIEnv *env, jclass 
        cls) 
    {
        {
            return (jint)gnome_druid_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1new (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gnome_druid_new ();
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_set_buttons_sensitive
     * Signature: (IZZZZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1set_1buttons_1sensitive (JNIEnv 
        *env, jclass cls, jint druid, jboolean backSensitive, jboolean nextSensitive, jboolean 
        cancelSensitive, jboolean helpSensitive) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        gboolean backSensitive_g = (gboolean) backSensitive;
        gboolean nextSensitive_g = (gboolean) nextSensitive;
        gboolean cancelSensitive_g = (gboolean) cancelSensitive;
        gboolean helpSensitive_g = (gboolean) helpSensitive;
        {
            gnome_druid_set_buttons_sensitive (druid_g, backSensitive_g, nextSensitive_g, 
                cancelSensitive_g, helpSensitive_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_set_show_finish
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1set_1show_1finish (JNIEnv *env, 
        jclass cls, jint druid, jboolean showFinish) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        gboolean showFinish_g = (gboolean) showFinish;
        {
            gnome_druid_set_show_finish (druid_g, showFinish_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_set_show_help
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1set_1show_1help (JNIEnv *env, 
        jclass cls, jint druid, jboolean showHelp) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        gboolean showHelp_g = (gboolean) showHelp;
        {
            gnome_druid_set_show_help (druid_g, showHelp_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_prepend_page
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1prepend_1page (JNIEnv *env, 
        jclass cls, jint druid, jint page) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        GnomeDruidPage *page_g = (GnomeDruidPage *)page;
        {
            gnome_druid_prepend_page (druid_g, page_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_insert_page
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1insert_1page (JNIEnv *env, jclass 
        cls, jint druid, jint backPage, jint page) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        GnomeDruidPage *backPage_g = (GnomeDruidPage *)backPage;
        GnomeDruidPage *page_g = (GnomeDruidPage *)page;
        {
            gnome_druid_insert_page (druid_g, backPage_g, page_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_append_page
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1append_1page (JNIEnv *env, jclass 
        cls, jint druid, jint page) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        GnomeDruidPage *page_g = (GnomeDruidPage *)page;
        {
            gnome_druid_append_page (druid_g, page_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_set_page
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1set_1page (JNIEnv *env, jclass 
        cls, jint druid, jint page) 
    {
        GnomeDruid *druid_g = (GnomeDruid *)druid;
        GnomeDruidPage *page_g = (GnomeDruidPage *)page;
        {
            gnome_druid_set_page (druid_g, page_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.Druid
     * Method:    gnome_druid_new_with_window
     * Signature: (java.lang.String;IZI)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_Druid_gnome_1druid_1new_1with_1window (JNIEnv *env, 
        jclass cls, jstring title, jint parent, jboolean closeOnCancel, jint window) 
    {
        const gchar* title_g = (*env)->GetStringUTFChars(env, title, 0);
        jint result = (jint)gnome_druid_new_with_window (title_g, (GtkWindow*)parent, (gboolean)closeOnCancel, (GtkWidget**)window);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
        return result;
    }

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

#endif
