/*
 * 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:24 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.Label
     * Method:    gtk_label_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_label_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_new
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1new (JNIEnv *env, jclass cls, 
        jstring str) 
    {
		const  char *str_g = (*env)->GetStringUTFChars(env, str, 0);
        jint result =  (jint) gtk_label_new (str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
		return result;
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_new_with_mnemonic
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1new_1with_1mnemonic (JNIEnv *env, 
        jclass cls, jstring str) 
    {
		const char *str_g = (*env)->GetStringUTFChars(env, str, NULL);
        jint result =  (jint)gtk_label_new_with_mnemonic (str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
		return result;
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_text
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1text (JNIEnv *env, jclass cls, 
        jint label, jstring str) 
    {
		GtkLabel *label_g = (GtkLabel *)label;
		const char *str_g = (*env)->GetStringUTFChars(env, str, NULL);
		gtk_label_set_text (label_g, str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_text
     * Signature: (I)[B
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1text (JNIEnv *env, jclass 
        cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            gchar *result_g = (gchar*)gtk_label_get_text (label_g);
			return (*env)->NewStringUTF(env, result_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_attributes
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1attributes (JNIEnv *env, jclass 
        cls, jint label, jint attrs) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        PangoAttrList *attrs_g = (PangoAttrList *)attrs;
        {
            gtk_label_set_attributes (label_g, attrs_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_attributes
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1attributes (JNIEnv *env, jclass 
        cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            return (jint)gtk_label_get_attributes (label_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_label
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1label (JNIEnv *env, jclass cls, 
        jint label, jstring str) 
    {
		GtkLabel *label_g = (GtkLabel *)label;
		const char *str_g = (*env)->GetStringUTFChars(env, str, NULL);
		gtk_label_set_label (label_g, str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_label
     * Signature: (I)[B
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1label (JNIEnv *env, jclass 
        cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
		gchar *result_g = (gchar*)gtk_label_get_label (label_g);
		return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_markup
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1markup (JNIEnv *env, jclass cls, 
        jint label, jstring str) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
		const char *str_g = (*env)->GetStringUTFChars(env, str, NULL);
		gtk_label_set_markup (label_g, str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_use_markup
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1use_1markup (JNIEnv *env, jclass 
        cls, jint label, jboolean setting) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_label_set_use_markup (label_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_use_markup
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1use_1markup (JNIEnv *env, 
        jclass cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            jboolean result_j = (jboolean) (gtk_label_get_use_markup (label_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_use_underline
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1use_1underline (JNIEnv *env, 
        jclass cls, jint label, jboolean setting) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_label_set_use_underline (label_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_use_underline
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1use_1underline (JNIEnv *env, 
        jclass cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            jboolean result_j = (jboolean) (gtk_label_get_use_underline (label_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_markup_with_mnemonic
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1markup_1with_1mnemonic (JNIEnv 
        *env, jclass cls, jint label, jstring str) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
		const char *str_g = (*env)->GetStringUTFChars(env, str, NULL);	
		gtk_label_set_markup_with_mnemonic (label_g, str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_mnemonic_keyval
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1mnemonic_1keyval (JNIEnv *env, 
        jclass cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            jint result_j = (jint) (gtk_label_get_mnemonic_keyval (label_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_mnemonic_widget
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1mnemonic_1widget (JNIEnv *env, 
        jclass cls, jint label, jint widget) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        GtkWidget *widget_g = (GtkWidget *)widget;
        {
            gtk_label_set_mnemonic_widget (label_g, widget_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_mnemonic_widget
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1mnemonic_1widget (JNIEnv *env, 
        jclass cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            return (jint)gtk_label_get_mnemonic_widget (label_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_text_with_mnemonic
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1text_1with_1mnemonic (JNIEnv 
        *env, jclass cls, jint label, jstring str) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
		const char *str_g = (*env)->GetStringUTFChars(env, str, NULL);
		gtk_label_set_text_with_mnemonic (label_g, str_g);
		(*env)->ReleaseStringUTFChars(env, str, str_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_justify
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1justify (JNIEnv *env, jclass 
        cls, jint label, jint jtype) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        GtkJustification jtype_g = (GtkJustification) jtype;
        {
            gtk_label_set_justify (label_g, jtype_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_justify
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1justify (JNIEnv *env, jclass 
        cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            jint result_j = (jint) (gtk_label_get_justify (label_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_pattern
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1pattern (JNIEnv *env, jclass 
        cls, jint label, jstring pattern) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
		const char *pattern_g = (*env)->GetStringUTFChars(env, pattern, NULL);
		gtk_label_set_pattern (label_g, pattern_g);
		(*env)->ReleaseStringUTFChars(env, pattern, pattern_g);
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_line_wrap
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1line_1wrap (JNIEnv *env, jclass 
        cls, jint label, jboolean wrap) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gboolean wrap_g = (gboolean) wrap;
        {
            gtk_label_set_line_wrap (label_g, wrap_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_line_wrap
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1line_1wrap (JNIEnv *env, 
        jclass cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            jboolean result_j = (jboolean) (gtk_label_get_line_wrap (label_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_set_selectable
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1set_1selectable (JNIEnv *env, jclass 
        cls, jint label, jboolean setting) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_label_set_selectable (label_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_selectable
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1selectable (JNIEnv *env, 
        jclass cls, jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            jboolean result_j = (jboolean) (gtk_label_get_selectable (label_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_select_region
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1select_1region (JNIEnv *env, jclass 
        cls, jint label, jint startOffset, jint endOffset) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gint32 startOffset_g = (gint32) startOffset;
        gint32 endOffset_g = (gint32) endOffset;
        {
            gtk_label_select_region (label_g, startOffset_g, endOffset_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_selection_bounds
     * Signature: (I[Lint ;[Lint ;)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1selection_1bounds (JNIEnv 
        *env, jclass cls, jint label, jintArray start, jintArray end) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gint *start_g = (gint *) (*env)->GetIntArrayElements (env, start, NULL);
        gint *end_g = (gint *) (*env)->GetIntArrayElements (env, end, NULL);
        {
            jboolean result_j = (jboolean) (gtk_label_get_selection_bounds (label_g, start_g, end_g));
            (*env)->ReleaseIntArrayElements (env, start, (jint *) start_g, 0);
            (*env)->ReleaseIntArrayElements (env, end, (jint *) end_g, 0);
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_layout
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1layout (JNIEnv *env, jclass cls, 
        jint label) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        {
            return (jint)gtk_label_get_layout (label_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Label
     * Method:    gtk_label_get_layout_offsets
     * Signature: (I[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Label_gtk_1label_1get_1layout_1offsets (JNIEnv *env, 
        jclass cls, jint label, jintArray x, jintArray y) 
    {
        GtkLabel *label_g = (GtkLabel *)label;
        gint *x_g = (gint *) (*env)->GetIntArrayElements (env, x, NULL);
        gint *y_g = (gint *) (*env)->GetIntArrayElements (env, y, NULL);
        {
            gtk_label_get_layout_offsets (label_g, x_g, y_g);
            (*env)->ReleaseIntArrayElements (env, x, (jint *) x_g, 0);
            (*env)->ReleaseIntArrayElements (env, y, (jint *) y_g, 0);
        }
    }

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

#endif
