/*
 * 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.FontFamily
     * Method:    pango_font_family_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_FontFamily_pango_1font_1family_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)pango_font_family_get_type ();
        }
    }

    /*
     * Class:     org.gnu.pango.FontFamily
     * Method:    pango_font_family_list_faces
     * Signature: (I[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_FontFamily_pango_1font_1family_1list_1faces (JNIEnv 
        *env, jclass cls, jint family, jintArray faces, jintArray numFaces) 
    {
        PangoFontFamily *family_g = (PangoFontFamily *)family;
        gint *faces_g_g = (gint *) (*env)->GetIntArrayElements (env, faces, NULL);
        PangoFontFace ***faces_g = (PangoFontFace ***)faces_g_g;
        gint *numFaces_g = (gint *) (*env)->GetIntArrayElements (env, numFaces, NULL);
        {
            pango_font_family_list_faces (family_g, faces_g, numFaces_g);
            (*env)->ReleaseIntArrayElements (env, faces, (jint *)faces_g_g, 0);
            (*env)->ReleaseIntArrayElements (env, numFaces, (jint *) numFaces_g, 0);
        }
    }

    /*
     * Class:     org.gnu.pango.FontFamily
     * Method:    pango_font_family_get_name
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_pango_FontFamily_pango_1font_1family_1get_1name (
        JNIEnv *env, jclass cls, jint family) 
    {
        gchar *result_g = (gchar *)pango_font_family_get_name ((PangoFontFamily *)family);
        return (*env)->NewStringUTF(env, result_g);
    }

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

#endif
