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

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GtkWidget * GnomeDruidPageStandard_get_vbox (GnomeDruidPageStandard * cptr) 
    {
        return cptr->vbox;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getVbox
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getVbox (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_vbox (cptr_g);
        }
    }

    gchar * GnomeDruidPageStandard_get_title (GnomeDruidPageStandard * cptr) 
    {
        return cptr->title;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getTitle
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_DruidPageStandard_getTitle (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        gchar *result_g = (gchar*)GnomeDruidPageStandard_get_title ((GnomeDruidPageStandard*)cptr);
        return (*env)->NewStringUTF(env, result_g);
    }

    GdkPixbuf * GnomeDruidPageStandard_get_logo (GnomeDruidPageStandard * cptr) 
    {
        return cptr->logo;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getLogo
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getLogo (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_logo (cptr_g);
        }
    }

    GdkPixbuf * GnomeDruidPageStandard_get_top_watermark (GnomeDruidPageStandard * cptr) 
    {
        return cptr->top_watermark;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getTopWatermark
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getTopWatermark (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_top_watermark (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageStandard_get_title_foreground (GnomeDruidPageStandard * cptr) 
    {
        return (GdkColor*)&cptr->title_foreground;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getTitleForeground
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getTitleForeground (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_title_foreground (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageStandard_get_background (GnomeDruidPageStandard * cptr) 
    {
        return (GdkColor*)&cptr->background;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getBackground
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getBackground (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_background (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageStandard_get_logo_background (GnomeDruidPageStandard * cptr) 
    {
        return (GdkColor*)&cptr->logo_background;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getLogoBackground
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getLogoBackground (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_logo_background (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageStandard_get_contents_background (GnomeDruidPageStandard * cptr) 
    {
        return (GdkColor*)&cptr->contents_background;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    getContentsBackground
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageStandard_getContentsBackground (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GnomeDruidPageStandard *cptr_g = (GnomeDruidPageStandard *)cptr;
        {
            return (jint)GnomeDruidPageStandard_get_contents_background (cptr_g);
        }
    }

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

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

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_new_with_vals
     * Signature: (java.lang.String;II)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1new_1with_1vals (JNIEnv 
        *env, jclass cls, jstring title, jint logo, jint topWatermark) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        GdkPixbuf *logo_g = (GdkPixbuf *)logo;
        GdkPixbuf *topWatermark_g = (GdkPixbuf *)topWatermark;
        jint result = (jint)gnome_druid_page_standard_new_with_vals (title_g, logo_g, topWatermark_g);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
        return result;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_title
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1title (JNIEnv *env, 
        jclass cls, jint page, jstring title) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        gnome_druid_page_standard_set_title ((GnomeDruidPageStandard*)page, title_g);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_logo
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1logo (JNIEnv *env, 
        jclass cls, jint page, jint logoImage) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        GdkPixbuf *logoImage_g = (GdkPixbuf *)logoImage;
        {
            gnome_druid_page_standard_set_logo (page_g, logoImage_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_top_watermark
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1top_1watermark (JNIEnv 
        *env, jclass cls, jint page, jint topWatermarkImage) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        GdkPixbuf *topWatermarkImage_g = (GdkPixbuf *)topWatermarkImage;
        {
            gnome_druid_page_standard_set_top_watermark (page_g, topWatermarkImage_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_title_foreground
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1title_1foreground (
        JNIEnv *env, jclass cls, jint page, jint color) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_standard_set_title_foreground (page_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_background
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1background (JNIEnv 
        *env, jclass cls, jint page, jint color) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_standard_set_background (page_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_logo_background
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1logo_1background (
        JNIEnv *env, jclass cls, jint page, jint color) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_standard_set_logo_background (page_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_set_contents_background
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1set_1contents_1background (
        JNIEnv *env, jclass cls, jint page, jint color) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_standard_set_contents_background (page_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageStandard
     * Method:    gnome_druid_page_standard_append_item
     * Signature: (Ijava.lang.String;Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageStandard_gnome_1druid_1page_1standard_1append_1item (JNIEnv *env, 
        jclass cls, jint page, jstring questionMnemonic, jint item, jstring additionalInfoMarkup) 
    {
        GnomeDruidPageStandard *page_g = (GnomeDruidPageStandard *)page;
        gchar* questionMnemonic_g = (gchar*)(*env)->GetStringUTFChars(env, questionMnemonic, 0);
        GtkWidget *item_g = (GtkWidget *)item;
        gchar* additionalInfoMarkup_g = (gchar*)(*env)->GetStringUTFChars(env, additionalInfoMarkup, 0);
        gnome_druid_page_standard_append_item (page_g, questionMnemonic_g, item_g, 
                additionalInfoMarkup_g);
        if (questionMnemonic) (*env)->ReleaseStringUTFChars(env, questionMnemonic, questionMnemonic_g);
        if (additionalInfoMarkup) (*env)->ReleaseStringUTFChars(env, additionalInfoMarkup, additionalInfoMarkup_g);
    }

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

#endif
