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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_get
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1get (JNIEnv *env, jclass cls, 
        jint selection) 
    {
        GdkAtom selection_g = (GdkAtom)selection;
        {
            return (jint)gtk_clipboard_get (selection_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_get_display
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1get_1display(JNIEnv *env, jclass cls, 
        jint clipboard) 
    {
        return (jint)gtk_clipboard_get_display((GtkClipboard*)clipboard);
    }

    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_get_owner
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1get_1owner (JNIEnv *env, 
        jclass cls, jint clipboard) 
    {
        GtkClipboard *clipboard_g = (GtkClipboard *)clipboard;
        {
            return (jint)gtk_clipboard_get_owner (clipboard_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_clear
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1clear (JNIEnv *env, jclass 
        cls, jint clipboard) 
    {
        GtkClipboard *clipboard_g = (GtkClipboard *)clipboard;
        {
            gtk_clipboard_clear (clipboard_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_set_text
     * Signature: (I[BI)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1set_1text (JNIEnv *env, 
        jclass cls, jint clipboard, jstring text, jint len) 
    {
        GtkClipboard *clipboard_g = (GtkClipboard *)clipboard;
        gint32 len_g = (gint32) len;
        const gchar* text_g = (*env)->GetStringUTFChars(env, text, NULL);
		gtk_clipboard_set_text (clipboard_g, text_g, len_g);
		(*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_wait_for_text
     * Signature: (I)[B
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1wait_1for_1text (JNIEnv 
        *env, jclass cls, jint clipboard) 
    {
        GtkClipboard *clipboard_g = (GtkClipboard *)clipboard;
		return (*env)->NewStringUTF(env,gtk_clipboard_wait_for_text (clipboard_g));
    }

    /*
     * Class:     org.gnu.gtk.Clipboard
     * Method:    gtk_clipboard_wait_is_text_available
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Clipboard_gtk_1clipboard_1wait_1is_1text_1available (
        JNIEnv *env, jclass cls, jint clipboard) 
    {
        GtkClipboard *clipboard_g = (GtkClipboard *)clipboard;
        {
            jboolean result_j = (jboolean) (gtk_clipboard_wait_is_text_available (clipboard_g));
            return result_j;
        }
    }

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

#endif
