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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GtkFontSelection * GtkFontSelectionDialog_get_fontsel (GtkFontSelectionDialog * cptr) 
    {
        return (GtkFontSelection*)cptr->fontsel;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getFontsel
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_getFontsel (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            return (jint)GtkFontSelectionDialog_get_fontsel (cptr_g);
        }
    }

    GtkWidget * GtkFontSelectionDialog_get_main_vbox (GtkFontSelectionDialog * cptr) 
    {
        return cptr->main_vbox;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getMainVbox
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_getMainVbox (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            return (jint)GtkFontSelectionDialog_get_main_vbox (cptr_g);
        }
    }

    GtkButton * GtkFontSelectionDialog_get_ok_button (GtkFontSelectionDialog * cptr) 
    {
        return (GtkButton*)cptr->ok_button;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getOkButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_getOkButton (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            return (jint)GtkFontSelectionDialog_get_ok_button (cptr_g);
        }
    }

    GtkButton * GtkFontSelectionDialog_get_apply_button (GtkFontSelectionDialog * cptr) 
    {
        return (GtkButton*)cptr->apply_button;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getApplyButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_getApplyButton (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            return (jint)GtkFontSelectionDialog_get_apply_button (cptr_g);
        }
    }

    GtkButton * GtkFontSelectionDialog_get_cancel_button (GtkFontSelectionDialog * cptr) 
    {
        return (GtkButton*)cptr->cancel_button;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getCancelButton
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_getCancelButton (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            return (jint)GtkFontSelectionDialog_get_cancel_button (cptr_g);
        }
    }

    gint32 GtkFontSelectionDialog_get_dialog_width (GtkFontSelectionDialog * cptr) 
    {
        return cptr->dialog_width;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getDialogWidth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_getDialogWidth (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            jint result_j = (jint) (GtkFontSelectionDialog_get_dialog_width (cptr_g));
            return result_j;
        }
    }

    gboolean GtkFontSelectionDialog_get_auto_resize (GtkFontSelectionDialog * cptr) 
    {
        return cptr->auto_resize;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    getAutoResize
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_FontSelectionDialog_getAutoResize (JNIEnv *env, 
        jclass cls, jint cptr) 
    {
        GtkFontSelectionDialog *cptr_g = (GtkFontSelectionDialog *)cptr;
        {
            jboolean result_j = (jboolean) (GtkFontSelectionDialog_get_auto_resize (cptr_g));
            return result_j;
        }
    }

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

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    gtk_font_selection_dialog_new
     * Signature: (java.lang.String;)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_FontSelectionDialog_gtk_1font_1selection_1dialog_1new (
        JNIEnv *env, jclass cls, jstring title) 
    {
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        jint result = (jint)gtk_font_selection_dialog_new (title_g);
        (*env)->ReleaseStringUTFChars(env, title, title_g);
        return result;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    gtk_font_selection_dialog_get_font_name
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL 
    Java_org_gnu_gtk_FontSelectionDialog_gtk_1font_1selection_1dialog_1get_1font_1name (JNIEnv 
        *env, jclass cls, jint fontsel) 
    {
        gchar *result_g = gtk_font_selection_dialog_get_font_name ((GtkFontSelectionDialog*)fontsel);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    gtk_font_selection_dialog_set_font_name
     * Signature: (Ijava.lang.String;)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_FontSelectionDialog_gtk_1font_1selection_1dialog_1set_1font_1name (JNIEnv 
        *env, jclass cls, jint fontsel, jstring fontname) 
    {
        gchar* fontname_g = (gchar*)(*env)->GetStringUTFChars(env, fontname, 0);
        jboolean result_j = (jboolean) (gtk_font_selection_dialog_set_font_name ((GtkFontSelectionDialog*)fontsel, 
                    fontname_g));
      	(*env)->ReleaseStringUTFChars(env, fontname, fontname_g);
        return result_j;
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    gtk_font_selection_dialog_get_preview_text
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL 
    Java_org_gnu_gtk_FontSelectionDialog_gtk_1font_1selection_1dialog_1get_1preview_1text (JNIEnv 
        *env, jclass cls, jint fontsel) 
    {
        gchar *result_g = (gchar*)gtk_font_selection_dialog_get_preview_text ((GtkFontSelectionDialog*)fontsel);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gtk.FontSelectionDialog
     * Method:    gtk_font_selection_dialog_set_preview_text
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_FontSelectionDialog_gtk_1font_1selection_1dialog_1set_1preview_1text (JNIEnv 
        *env, jclass cls, jint fontsel, jstring text) 
    {
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gtk_font_selection_dialog_set_preview_text ((GtkFontSelectionDialog*)fontsel, text_g);
        (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

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

#endif
