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

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

    GdkDragProtocol GdkDragContext_get_protocol (GdkDragContext * cptr) 
    {
        return cptr->protocol;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getProtocol
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_getProtocol (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            jint result_j = (jint) (GdkDragContext_get_protocol (obj_g));
            return result_j;
        }
    }

    gboolean GdkDragContext_get_is_source (GdkDragContext * cptr) 
    {
        return cptr->is_source;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getIsSource
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gdk_DragContext_getIsSource (JNIEnv *env, jclass cls, 
        jint obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            jboolean result_j = (jboolean) (GdkDragContext_get_is_source (obj_g));
            return result_j;
        }
    }

    GdkWindow * GdkDragContext_get_source_window (GdkDragContext * cptr) 
    {
        return cptr->source_window;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getSourceWindow
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_getSourceWindow (JNIEnv *env, jclass cls, 
        jint obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            return (jint)GdkDragContext_get_source_window (obj_g);
        }
    }

    GdkWindow * GdkDragContext_get_dest_window (GdkDragContext * cptr) 
    {
        return cptr->dest_window;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getDestWindow
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_getDestWindow (JNIEnv *env, jclass cls, 
        jint obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            return (jint)GdkDragContext_get_dest_window (obj_g);
        }
    }

    GdkDragAction GdkDragContext_get_actions (GdkDragContext * cptr) 
    {
        return cptr->actions;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getActions
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_getActions (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            jint result_j = (jint) (GdkDragContext_get_actions (obj_g));
            return result_j;
        }
    }

    GdkDragAction GdkDragContext_get_suggested_action (GdkDragContext * cptr) 
    {
        return cptr->suggested_action;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getSuggestedAction
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_getSuggestedAction (JNIEnv *env, jclass 
        cls, jint obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            jint result_j = (jint) (GdkDragContext_get_suggested_action (obj_g));
            return result_j;
        }
    }

    GdkDragAction GdkDragContext_get_action (GdkDragContext * cptr) 
    {
        return cptr->action;
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    getAction
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_getAction (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkDragContext *obj_g = (GdkDragContext *)obj;
        {
            jint result_j = (jint) (GdkDragContext_get_action (obj_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    gdk_drag_context_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_gdk_1drag_1context_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gdk_drag_context_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gdk.DragContext
     * Method:    gdk_drag_context_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_DragContext_gdk_1drag_1context_1new (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gdk_drag_context_new ();
        }
    }

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

#endif
