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

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

    GdkCursorType GdkCursor_get_type (GdkCursor * cptr) 
    {
        return cptr->type;
    }

    /*
     * Class:     org.gnu.gdk.Cursor
     * Method:    getType
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Cursor_getType (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkCursor *obj_g = (GdkCursor *)obj;
        {
            jint result_j = (jint) (GdkCursor_get_type (obj_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.Cursor
     * Method:    gdk_cursor_new
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Cursor_gdk_1cursor_1new (JNIEnv *env, jclass cls, jint 
        cursorType) 
    {
        GdkCursorType cursorType_g = (GdkCursorType) cursorType;
        {
            return (jint)gdk_cursor_new (cursorType_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Cursor
     * Method:    gdk_cursor_new_from_pixmap
     * Signature: (IIIIII)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Cursor_gdk_1cursor_1new_1from_1pixmap (JNIEnv *env, 
        jclass cls, jint source, jint mask, jint fg, jint bg, jint x, jint y) 
    {
        GdkPixmap *source_g = (GdkPixmap *)source;
        GdkPixmap *mask_g = (GdkPixmap *)mask;
        GdkColor *fg_g = (GdkColor *)fg;
        GdkColor *bg_g = (GdkColor *)bg;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            return (jint)gdk_cursor_new_from_pixmap (source_g, mask_g, fg_g, bg_g, x_g, y_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Cursor
     * Method:    gdk_cursor_ref
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Cursor_gdk_1cursor_1ref (JNIEnv *env, jclass cls, jint 
        cursor) 
    {
        GdkCursor *cursor_g = (GdkCursor *)cursor;
        {
            return (jint)gdk_cursor_ref (cursor_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Cursor
     * Method:    gdk_cursor_unref
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_Cursor_gdk_1cursor_1unref (JNIEnv *env, jclass cls, 
        jint cursor) 
    {
        GdkCursor *cursor_g = (GdkCursor *)cursor;
        {
            gdk_cursor_unref (cursor_g);
        }
    }

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

#endif
