/*
 * 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
     ****************************************/
    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gnome_font_picker_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_set_title
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1set_1title (JNIEnv 
        *env, jclass cls, jint gfp, jstring title) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        gnome_font_picker_set_title ((GnomeFontPicker*)gfp, title_g);
        if (title) (*env)->ReleaseStringUTFChars(env, title, title_g);
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_get_title
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1get_1title (
        JNIEnv *env, jclass cls, jint gfp) 
    {
        gchar *result_g = (gchar*)gnome_font_picker_get_title ((GnomeFontPicker*)gfp);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_get_mode
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1get_1mode (JNIEnv 
        *env, jclass cls, jint gfp) 
    {
        GnomeFontPicker *gfp_g = (GnomeFontPicker *)gfp;
        {
            jint result_j = (jint) (gnome_font_picker_get_mode (gfp_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_set_mode
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1set_1mode (JNIEnv 
        *env, jclass cls, jint gfp, jint mode) 
    {
        GnomeFontPicker *gfp_g = (GnomeFontPicker *)gfp;
        GnomeFontPickerMode mode_g = (GnomeFontPickerMode) mode;
        {
            gnome_font_picker_set_mode (gfp_g, mode_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_fi_set_use_font_in_label
     * Signature: (IZI)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1fi_1set_1use_1font_1in_1label (JNIEnv *env, 
        jclass cls, jint gfp, jboolean use_font_in_label, jint size) 
    {
        GnomeFontPicker *gfp_g = (GnomeFontPicker *)gfp;
        gboolean use_font_in_label_g = (gboolean) use_font_in_label;
        gint32 size_g = (gint32) size;
        {
            gnome_font_picker_fi_set_use_font_in_label (gfp_g, use_font_in_label_g, size_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_fi_set_show_size
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1fi_1set_1show_1size (
        JNIEnv *env, jclass cls, jint gfp, jboolean showSize) 
    {
        GnomeFontPicker *gfp_g = (GnomeFontPicker *)gfp;
        gboolean showSize_g = (gboolean) showSize;
        {
            gnome_font_picker_fi_set_show_size (gfp_g, showSize_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_uw_set_widget
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1uw_1set_1widget (
        JNIEnv *env, jclass cls, jint gfp, jint widget) 
    {
        GnomeFontPicker *gfp_g = (GnomeFontPicker *)gfp;
        GtkWidget *widget_g = (GtkWidget *)widget;
        {
            gnome_font_picker_uw_set_widget (gfp_g, widget_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_uw_get_widget
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1uw_1get_1widget (
        JNIEnv *env, jclass cls, jint gfp) 
    {
        GnomeFontPicker *gfp_g = (GnomeFontPicker *)gfp;
        {
            return (jint)gnome_font_picker_uw_get_widget (gfp_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_get_font_name
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1get_1font_1name (
        JNIEnv *env, jclass cls, jint gfp) 
    {
        gchar *result_g = (gchar*)gnome_font_picker_get_font_name ((GnomeFontPicker*)gfp);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_set_font_name
     * Signature: (Ijava.lang.String;)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1set_1font_1name (
        JNIEnv *env, jclass cls, jint gfp, jstring fontname) 
    {
        gchar* fontname_g = (gchar*)(*env)->GetStringUTFChars(env, fontname, 0);
        jboolean result_j = (jboolean) (gnome_font_picker_set_font_name ((GnomeFontPicker*)gfp, fontname_g));
        if (fontname) (*env)->ReleaseStringUTFChars(env, fontname, fontname_g);
        return result_j;
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_get_preview_text
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL 
    Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1get_1preview_1text (JNIEnv *env, jclass cls, 
        jint gfp) 
    {
        gchar *result_g = (gchar*)gnome_font_picker_get_preview_text ((GnomeFontPicker*)gfp);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.FontPicker
     * Method:    gnome_font_picker_set_preview_text
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_FontPicker_gnome_1font_1picker_1set_1preview_1text (
        JNIEnv *env, jclass cls, jint gfp, jstring text) 
    {
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gnome_font_picker_set_preview_text ((GnomeFontPicker*)gfp, text_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

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

#endif
