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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    guint32 GtkAccelKey_get_accel_key (GtkAccelKey * cptr) 
    {
        return cptr->accel_key;
    }

    /*
     * Class:     org.gnu.gtk.AccelKey
     * Method:    getAccelKey
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_AccelKey_getAccelKey (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkAccelKey *cptr_g = (GtkAccelKey *)cptr;
        {
            jint result_j = (jint) (GtkAccelKey_get_accel_key (cptr_g));
            return result_j;
        }
    }

    void GtkAccelKey_set_accel_key (GtkAccelKey * cptr, guint32 accel_key) 
    {
        cptr->accel_key = accel_key;
    }

    /*
     * Class:     org.gnu.gtk.AccelKey
     * Method:    setAccelKey
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_AccelKey_setAccelKey (JNIEnv *env, jint cptr, jint 
        accel_key) 
    {
        GtkAccelKey *cptr_g = (GtkAccelKey *)cptr;
        guint32 accel_key_g = (guint32) accel_key;
        {
            GtkAccelKey_set_accel_key (cptr_g, accel_key_g);
        }
    }

    GdkModifierType GtkAccelKey_get_accel_mods (GtkAccelKey * cptr) 
    {
        return cptr->accel_mods;
    }

    /*
     * Class:     org.gnu.gtk.AccelKey
     * Method:    getAccelMods
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_AccelKey_getAccelMods (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkAccelKey *cptr_g = (GtkAccelKey *)cptr;
        {
            jint result_j = (jint) (GtkAccelKey_get_accel_mods (cptr_g));
            return result_j;
        }
    }

    void GtkAccelKey_set_accel_mods (GtkAccelKey * cptr, GdkModifierType accel_mods) 
    {
        cptr->accel_mods = accel_mods;
    }

    /*
     * Class:     org.gnu.gtk.AccelKey
     * Method:    setAccelMods
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_AccelKey_setAccelMods (JNIEnv *env, jint cptr, jint 
        accel_mods) 
    {
        GtkAccelKey *cptr_g = (GtkAccelKey *)cptr;
        GdkModifierType accel_mods_g = (GdkModifierType) accel_mods;
        {
            GtkAccelKey_set_accel_mods (cptr_g, accel_mods_g);
        }
    }

    guint32 GtkAccelKey_get_accel_flags (GtkAccelKey * cptr) 
    {
        return cptr->accel_flags;
    }

    /*
     * Class:     org.gnu.gtk.AccelKey
     * Method:    getAccelFlags
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_AccelKey_getAccelFlags (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkAccelKey *cptr_g = (GtkAccelKey *)cptr;
        {
            jint result_j = (jint) (GtkAccelKey_get_accel_flags (cptr_g));
            return result_j;
        }
    }

    void GtkAccelKey_set_accel_flags (GtkAccelKey * cptr, guint32 accel_flags) 
    {
        cptr->accel_flags = accel_flags;
    }

    /*
     * Class:     org.gnu.gtk.AccelKey
     * Method:    setAccelFlags
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_AccelKey_setAccelFlags (JNIEnv *env, jint cptr, jint 
        accel_flags) 
    {
        GtkAccelKey *cptr_g = (GtkAccelKey *)cptr;
        guint32 accel_flags_g = (guint32) accel_flags;
        {
            GtkAccelKey_set_accel_flags (cptr_g, accel_flags_g);
        }
    }

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

#endif
