/*
 * 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-26 07:25:22 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <glib.h>
#include <glib-object.h>
#include <gdk-pixbuf/gdk-pixbuf.h> // Added by destrius
#ifdef __cplusplus
extern "C" 
{
#endif

	/** Added by destrius **/
   JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1PIXBUF(JNIEnv *env, jclass cls) 
   {
     return (jint) GDK_TYPE_PIXBUF;
   }

	/*
	 * A type to allow us to create pointers to java objects. 
	 * This could get complicated...
	 */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1JAVA_1OBJECT(JNIEnv *env, jclass cls) 
    {
    	return (jint) G_TYPE_POINTER; /** We'll just have to hope that Gtk never uses that number of types. */
    }

	/*
	 */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1POINTER(JNIEnv *env, jclass cls) 
    {
    	return (jint) G_TYPE_POINTER;
    }

	
    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_INVALID
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1INVALID(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_INVALID;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_NONE
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1NONE(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_NONE;
    }


    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_INTERFACE
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1INTERFACE(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_INTERFACE;
    }


    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_CHAR
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1CHAR(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_CHAR;
    }


    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_BOOLEAN
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1BOOLEAN(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_BOOLEAN;
    }


    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_INT
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1INT(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_INT;
    }


    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_LONG
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1LONG(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_LONG;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_FLAGS
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1FLAGS(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_FLAGS;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_FLOAT
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1FLOAT(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_FLOAT;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_DOUBLE
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1DOUBLE(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_DOUBLE;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_STRING
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1STRING(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_STRING;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_BOXED
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1BOXED(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_BOXED;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_PARAM
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1PARAM(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_PARAM;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    get_OBJECT
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_get_1OBJECT(JNIEnv *env, jclass cls) 
    {
    	return (jint)G_TYPE_OBJECT;
    }




    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_init
     * Signature: ()V
     */
    JNIEXPORT void JNICALL Java_org_gnu_glib_Type_g_1type_1init (JNIEnv *env, jclass cls) 
    {
        {
            g_type_init ();
        }
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_name
     * Signature: (I)java.lang.String
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_glib_Type_g_1type_1name (JNIEnv *env, jclass cls, 
        jint type) 
    {
        GType type_g = (GType)&type;
        const gchar *result_g = g_type_name (type_g);
        jstring result = (*env)->NewStringUTF(env, result_g);
        return result;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_qname
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_g_1type_1qname (JNIEnv *env, jclass cls, jint 
        type) 
    {
        GType type_g = (GType)&type;
        {
            return (jint)g_type_qname (type_g);
        }
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_from_name
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_g_1type_1from_1name (JNIEnv *env, jclass cls, 
        jstring name) 
    {
        const gchar* name_g = (*env)->GetStringUTFChars(env, name, 0);
        jint result = (jint)g_type_from_name (name_g);
        (*env)->ReleaseStringUTFChars(env, name, name_g);
        return result;
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_parent
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_g_1type_1parent (JNIEnv *env, jclass cls, jint 
        type) 
    {
        GType type_g = (GType)&type;
        {
            return (jint)g_type_parent (type_g);
        }
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_depth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_glib_Type_g_1type_1depth (JNIEnv *env, jclass cls, jint 
        type) 
    {
        GType type_g = (GType)&type;
        {
            jint result_j = (jint) (g_type_depth (type_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.glib.Type
     * Method:    g_type_is_a
     * Signature: (II)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_glib_Type_g_1type_1is_1a (JNIEnv *env, jclass cls, jint 
        type, jint type_is_a) 
    {
        GType type_g = (GType)&type;
        GType type_is_a_g = (GType)&type_is_a;
        {
            jboolean result_j = (jboolean) (g_type_is_a (type_g, type_is_a_g));
            return result_j;
        }
    }

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

#endif
