/*
 * 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-01 07:00:22 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gdk/gdk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/

    GdkEventType GdkEventKey_get_type (GdkEventKey * cptr) 
    {
        return cptr->type;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getType
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getType (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result_j = (jint) (GdkEventKey_get_type (obj_g));
            return result_j;
        }
    }

    GdkWindow * GdkEventKey_get_window (GdkEventKey * cptr) 
    {
        return cptr->window;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getWindow
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getWindow (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            return (jint)GdkEventKey_get_window (obj_g);
        }
    }

    gboolean GdkEventKey_get_send_event (GdkEventKey * cptr) 
    {
        return cptr->send_event;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getSendEvent
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gdk_EventKey_getSendEvent (JNIEnv *env, jclass cls, 
        jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jboolean result_j = (jboolean) (GdkEventKey_get_send_event (obj_g));
            return result_j;
        }
    }

    time_t GdkEventKey_get_time (GdkEventKey * cptr) 
    {
        return cptr->time;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getTime
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getTime (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result = GdkEventKey_get_time (obj_g);
            return result;
        }
    }

    guint32 GdkEventKey_get_state (GdkEventKey * cptr) 
    {
        return cptr->state;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getState
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getState (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result_j = (jint) (GdkEventKey_get_state (obj_g));
            return result_j;
        }
    }

    guint32 GdkEventKey_get_keyval (GdkEventKey * cptr) 
    {
        return cptr->keyval;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getKeyval
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getKeyval (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result_j = (jint) (GdkEventKey_get_keyval (obj_g));
            return result_j;
        }
    }

    gint32 GdkEventKey_get_length (GdkEventKey * cptr) 
    {
        return cptr->length;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getLength
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getLength (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result_j = (jint) (GdkEventKey_get_length (obj_g));
            return result_j;
        }
    }

    gchar * GdkEventKey_get_string (GdkEventKey * cptr) 
    {
        return cptr->string;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getString
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gdk_EventKey_getString (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        gchar *result_g = GdkEventKey_get_string ((GdkEventKey*)obj);
        if (result_g) 
        	return (*env)->NewStringUTF(env, result_g);
        else
        	return (*env)->NewStringUTF(env, "");
    }

    gint32 GdkEventKey_get_hardware_keycode (GdkEventKey * cptr) 
    {
        return cptr->hardware_keycode;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getHardwareKeycode
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getHardwareKeycode (JNIEnv *env, jclass cls, 
        jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result_j = (jint) (GdkEventKey_get_hardware_keycode (obj_g));
            return result_j;
        }
    }

    gint32 GdkEventKey_get_group (GdkEventKey * cptr) 
    {
        return cptr->group;
    }

    /*
     * Class:     org.gnu.gdk.EventKey
     * Method:    getGroup
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_EventKey_getGroup (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkEventKey *obj_g = (GdkEventKey *)obj;
        {
            jint result_j = (jint) (GdkEventKey_get_group (obj_g));
            return result_j;
        }
    }

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

#endif
