/*
 * 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-07-31 13:44:34 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <pango/pango.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1type (
        JNIEnv *env, jclass cls) 
    {
        {
            return (jint)pango_font_description_get_type ();
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1new (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)pango_font_description_new ();
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_copy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1copy (
        JNIEnv *env, jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            return (jint)pango_font_description_copy (desc_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_hash
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1hash (
        JNIEnv *env, jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_hash (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_equal
     * Signature: (II)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1equal (
        JNIEnv *env, jclass cls, jint desc1, jint desc2) 
    {
        PangoFontDescription *desc1_g = (PangoFontDescription *)desc1;
        PangoFontDescription *desc2_g = (PangoFontDescription *)desc2;
        {
            jboolean result_j = (jboolean) (pango_font_description_equal (desc1_g, desc2_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1free (
        JNIEnv *env, jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            pango_font_description_free (desc_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_set_family
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1set_1family (
        JNIEnv *env, jclass cls, jint desc, jstring family) 
    {
        gchar* family_g = (gchar*)(*env)->GetStringUTFChars(env, family, 0);
        pango_font_description_set_family ((PangoFontDescription*)desc, family_g);
        (*env)->ReleaseStringUTFChars(env, family, family_g);
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_family
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1family (JNIEnv *env, jclass 
        cls, jint desc) 
    {
        const gchar *result_g = pango_font_description_get_family((PangoFontDescription *)desc);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_set_style
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1set_1style (
        JNIEnv *env, jclass cls, jint desc, jint style) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoStyle style_g = (PangoStyle) style;
        {
            pango_font_description_set_style (desc_g, style_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_style
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1style (
        JNIEnv *env, jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_get_style (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_set_variant
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1set_1variant (JNIEnv *env, jclass 
        cls, jint desc, jint variant) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoVariant variant_g = (PangoVariant) variant;
        {
            pango_font_description_set_variant (desc_g, variant_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_variant
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1variant (JNIEnv *env, jclass 
        cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_get_variant (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_set_weight
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1set_1weight (
        JNIEnv *env, jclass cls, jint desc, jint weight) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoWeight weight_g = (PangoWeight) weight;
        {
            pango_font_description_set_weight (desc_g, weight_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_weight
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1weight (
        JNIEnv *env, jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_get_weight (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_set_stretch
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1set_1stretch (JNIEnv *env, jclass 
        cls, jint desc, jint stretch) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoStretch stretch_g = (PangoStretch) stretch;
        {
            pango_font_description_set_stretch (desc_g, stretch_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_stretch
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1stretch (JNIEnv *env, jclass 
        cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_get_stretch (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_set_size
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1set_1size (
        JNIEnv *env, jclass cls, jint desc, jint size) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        gint32 size_g = (gint32) size;
        {
            pango_font_description_set_size (desc_g, size_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_size
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1size (
        JNIEnv *env, jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_get_size (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_get_set_fields
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1get_1set_1fields (JNIEnv *env, 
        jclass cls, jint desc) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        {
            jint result_j = (jint) (pango_font_description_get_set_fields (desc_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_unset_fields
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1unset_1fields (JNIEnv *env, jclass 
        cls, jint desc, jint toUnset) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoFontMask toUnset_g = (PangoFontMask) toUnset;
        {
            pango_font_description_unset_fields (desc_g, toUnset_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_merge
     * Signature: (IIZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontDescription_pango_1font_1description_1merge (
        JNIEnv *env, jclass cls, jint desc, jint descToMerge, jboolean replaceExisting) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoFontDescription *descToMerge_g = (PangoFontDescription *)descToMerge;
        gboolean replaceExisting_g = (gboolean) replaceExisting;
        {
            pango_font_description_merge (desc_g, descToMerge_g, replaceExisting_g);
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_better_match
     * Signature: (III)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1better_1match (JNIEnv *env, jclass 
        cls, jint desc, jint oldMatch, jint newMatch) 
    {
        PangoFontDescription *desc_g = (PangoFontDescription *)desc;
        PangoFontDescription *oldMatch_g = (PangoFontDescription *)oldMatch;
        PangoFontDescription *newMatch_g = (PangoFontDescription *)newMatch;
        {
            jboolean result_j = (jboolean) (pango_font_description_better_match (desc_g, 
                    oldMatch_g, newMatch_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_from_string
     * Signature: (java.lang.String;)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1from_1string (JNIEnv *env, jclass 
        cls, jstring str) 
    {
        gchar* str_g = (gchar*)(*env)->GetStringUTFChars(env, str, 0);
        jint result = (jint)pango_font_description_from_string (str_g);
        (*env)->ReleaseStringUTFChars(env, str, str_g);
        return result;
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_to_string
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1to_1string (JNIEnv *env, jclass 
        cls, jint desc) 
    {
        gchar *result_g = pango_font_description_to_string((PangoFontDescription *)desc);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.pango.FontDescription
     * Method:    pango_font_description_to_filename
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL 
    Java_org_gnu_pango_FontDescription_pango_1font_1description_1to_1filename (JNIEnv *env, jclass 
        cls, jint desc) 
    {
        gchar *result_g = pango_font_description_to_filename((PangoFontDescription *)desc);
        return (*env)->NewStringUTF(env, result_g);
    }

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

#endif
