/*
 * 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 12:41:17 EDT
 */

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

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_name
     * Signature: (I)java.lang.String
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1name (JNIEnv *env, 
        jclass cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        gchar *result_g = (gchar *)atk_object_get_name (accessible_g);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_description
     * Signature: (I)java.lang.String
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1description (JNIEnv 
        *env, jclass cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        gchar *result_g = (gchar *)atk_object_get_description (accessible_g);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_parent
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1parent (JNIEnv *env, jclass 
        cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            return (jint)atk_object_get_parent (accessible_g);
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_n_accessible_children
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1n_1accessible_1children (
        JNIEnv *env, jclass cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            jint result_j = (jint) (atk_object_get_n_accessible_children (accessible_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_ref_accessible_child
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1ref_1accessible_1child (JNIEnv 
        *env, jclass cls, jint accessible, jint i) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        gint32 i_g = (gint32) i;
        {
            return (jint)atk_object_ref_accessible_child (accessible_g, i_g);
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_ref_relation_set
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1ref_1relation_1set (JNIEnv *env, 
        jclass cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            return (jint)atk_object_ref_relation_set (accessible_g);
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_role
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1role (JNIEnv *env, jclass 
        cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            jint result_j = (jint) (atk_object_get_role (accessible_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_layer
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1layer (JNIEnv *env, jclass 
        cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            jint result_j = (jint) (atk_object_get_layer (accessible_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_mdi_zorder
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1mdi_1zorder (JNIEnv *env, 
        jclass cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            jint result_j = (jint) (atk_object_get_mdi_zorder (accessible_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_get_index_in_parent
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1get_1index_1in_1parent (JNIEnv 
        *env, jclass cls, jint accessible) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        {
            jint result_j = (jint) (atk_object_get_index_in_parent (accessible_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_set_name
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1set_1name (JNIEnv *env, jclass 
        cls, jint accessible, jstring name) 
    {
        gchar* name_g = (gchar*)(*env)->GetStringUTFChars(env, name, 0);
        atk_object_set_name ((AtkObject*)accessible, name_g);
        (*env)->ReleaseStringUTFChars(env, name, name_g);
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_set_description
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1set_1description (JNIEnv *env, 
        jclass cls, jint accessible, jstring description) 
    {
        gchar* description_g = (gchar*)(*env)->GetStringUTFChars(env, description, 0);
        atk_object_set_description ((AtkObject*)accessible, description_g);
        (*env)->ReleaseStringUTFChars(env, description, description_g);
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_set_parent
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1set_1parent (JNIEnv *env, jclass 
        cls, jint accessible, jint parent) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        AtkObject *parent_g = (AtkObject *)parent;
        {
            atk_object_set_parent (accessible_g, parent_g);
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_set_role
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1set_1role (JNIEnv *env, jclass 
        cls, jint accessible, jint role) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        AtkRole role_g = (AtkRole) role;
        {
            atk_object_set_role (accessible_g, role_g);
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_remove_property_change_handler
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_atk_AtkObject_atk_1object_1remove_1property_1change_1handler (JNIEnv *env, jclass 
        cls, jint accessible, jint handlerId) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        gint32 handlerId_g = (gint32) handlerId;
        {
            atk_object_remove_property_change_handler (accessible_g, handlerId_g);
        }
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_notify_state_change
     * Signature: (IIZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1notify_1state_1change (JNIEnv 
        *env, jclass cls, jint accessible, jint state, jboolean value) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        gboolean value_g = (gboolean) value;
	atk_object_notify_state_change (accessible_g, (AtkState)state, value_g);
    }

    /*
     * Class:     org.gnu.atk.AtkObject
     * Method:    atk_object_initialize
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_atk_AtkObject_atk_1object_1initialize (JNIEnv *env, jclass 
        cls, jint accessible, jint data) 
    {
        AtkObject *accessible_g = (AtkObject *)accessible;
        gpointer *data_g = (gpointer *)data;
        {
            atk_object_initialize (accessible_g, data_g);
        }
    }

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

#endif
