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

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gchar * GnomeDruidPageEdge_get_title (GnomeDruidPageEdge * cptr) 
    {
        return cptr->title;
    }

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

    gchar * GnomeDruidPageEdge_get_text (GnomeDruidPageEdge * cptr) 
    {
        return cptr->text;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getText
     * Signature: (I)java.lang.String
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_DruidPageEdge_getText (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        gchar *result_g = (gchar*)GnomeDruidPageEdge_get_text ((GnomeDruidPageEdge*)cptr);
        return (*env)->NewStringUTF(env, result_g);
    }

    GdkPixbuf * GnomeDruidPageEdge_get_logo_image (GnomeDruidPageEdge * cptr) 
    {
        return cptr->logo_image;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getLogoImage
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getLogoImage (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_logo_image (cptr_g);
        }
    }

    GdkPixbuf * GnomeDruidPageEdge_get_watermark_image (GnomeDruidPageEdge * cptr) 
    {
        return cptr->watermark_image;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getWatermarkImage
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getWatermarkImage (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_watermark_image (cptr_g);
        }
    }

    GdkPixbuf * GnomeDruidPageEdge_get_top_watermark_image (GnomeDruidPageEdge * cptr) 
    {
        return cptr->top_watermark_image;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getTopWatermarkImage
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getTopWatermarkImage (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_top_watermark_image (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageEdge_get_background_color (GnomeDruidPageEdge * cptr) 
    {
        return (GdkColor *)&cptr->background_color;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getBackgroundColor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getBackgroundColor (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_background_color (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageEdge_get_textbox_color (GnomeDruidPageEdge * cptr) 
    {
        return (GdkColor *)&cptr->textbox_color;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getTextboxColor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getTextboxColor (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_textbox_color (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageEdge_get_logo_background_color (GnomeDruidPageEdge * cptr) 
    {
        return (GdkColor *)&cptr->logo_background_color;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getLogoBackgroundColor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getLogoBackgroundColor (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_logo_background_color (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageEdge_get_title_color (GnomeDruidPageEdge * cptr) 
    {
        return (GdkColor *)&cptr->title_color;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getTitleColor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getTitleColor (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_title_color (cptr_g);
        }
    }

    GdkColor * GnomeDruidPageEdge_get_text_color (GnomeDruidPageEdge * cptr) 
    {
        return (GdkColor *)&cptr->text_color;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getTextColor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getTextColor (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            return (jint)GnomeDruidPageEdge_get_text_color (cptr_g);
        }
    }

    GnomeEdgePosition GnomeDruidPageEdge_get_position (GnomeDruidPageEdge * cptr) 
    {
        return cptr->position;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    getPosition
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_getPosition (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeDruidPageEdge *cptr_g = (GnomeDruidPageEdge *)cptr;
        {
            jint result_j = (jint) (GnomeDruidPageEdge_get_position (cptr_g));
            return result_j;
        }
    }

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

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_new
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1new (JNIEnv 
        *env, jclass cls, jint position) 
    {
        GnomeEdgePosition position_g = (GnomeEdgePosition) position;
        {
            return (jint)gnome_druid_page_edge_new (position_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_new_with_vals
     * Signature: (IZjava.lang.String;java.lang.String;III)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1new_1with_1vals (JNIEnv *env, jclass 
        cls, jint position, jboolean antialiased, jstring title, jstring text, jint logo, 
        jint watermark, jint topWatermark) 
    {
        GnomeEdgePosition position_g = (GnomeEdgePosition) position;
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        GdkPixbuf *logo_g = (GdkPixbuf *)logo;
        GdkPixbuf *watermark_g = (GdkPixbuf *)watermark;
        GdkPixbuf *topWatermark_g = (GdkPixbuf *)topWatermark;
        jint result = (jint)gnome_druid_page_edge_new_with_vals (position_g, (gboolean)antialiased, title_g, 
                text_g, logo_g, watermark_g, topWatermark_g);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
        return result;
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_bg_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1bg_1color (JNIEnv *env, jclass 
        cls, jint dpe, jint color) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_edge_set_bg_color (dpe_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_textbox_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1textbox_1color (JNIEnv *env, 
        jclass cls, jint dpe, jint color) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_edge_set_textbox_color (dpe_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_logo_bg_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1logo_1bg_1color (JNIEnv *env, 
        jclass cls, jint dpe, jint color) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_edge_set_logo_bg_color (dpe_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_title_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1title_1color (JNIEnv *env, 
        jclass cls, jint dpe, jint color) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_edge_set_title_color (dpe_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_text_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1text_1color (JNIEnv *env, 
        jclass cls, jint dpe, jint color) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkColor *color_g = (GdkColor *)color;
        {
            gnome_druid_page_edge_set_text_color (dpe_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_text
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1text (
        JNIEnv *env, jclass cls, jint dpe, jstring text) 
    {
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gnome_druid_page_edge_set_text ((GnomeDruidPageEdge*)dpe, text_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_title
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1title (
        JNIEnv *env, jclass cls, jint dpe, jstring title) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        gnome_druid_page_edge_set_title ((GnomeDruidPageEdge*)dpe, title_g);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_logo
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1logo (
        JNIEnv *env, jclass cls, jint dpe, jint logoImage) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkPixbuf *logoImage_g = (GdkPixbuf *)logoImage;
        {
            gnome_druid_page_edge_set_logo (dpe_g, logoImage_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_watermark
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1watermark (JNIEnv *env, jclass 
        cls, jint dpe, jint watermark) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkPixbuf *watermark_g = (GdkPixbuf *)watermark;
        {
            gnome_druid_page_edge_set_watermark (dpe_g, watermark_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.DruidPageEdge
     * Method:    gnome_druid_page_edge_set_top_watermark
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_DruidPageEdge_gnome_1druid_1page_1edge_1set_1top_1watermark (JNIEnv *env, 
        jclass cls, jint dpe, jint topWatermark) 
    {
        GnomeDruidPageEdge *dpe_g = (GnomeDruidPageEdge *)dpe;
        GdkPixbuf *topWatermark_g = (GdkPixbuf *)topWatermark;
        {
            gnome_druid_page_edge_set_top_watermark (dpe_g, topWatermark_g);
        }
    }

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

#endif
