/*
 * 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:30 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.Button
     * Method:    gtk_button_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Button_gtk_1button_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_button_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Button_gtk_1button_1new (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_button_new ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_new_with_label
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Button_gtk_1button_1new_1with_1label (JNIEnv *env, 
        jclass cls, jstring label) 
    {
        const gchar* label_g = (*env)->GetStringUTFChars( env, label, NULL);
        jint retval =  (jint)gtk_button_new_with_label (label_g);
		(*env)->ReleaseStringUTFChars(env, label, label_g);
		return retval;
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_new_from_stock
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Button_gtk_1button_1new_1from_1stock (JNIEnv *env, 
        jclass cls, jstring stock_id) 
    {
        const gchar* stock_id_g = (*env)->GetStringUTFChars(env, stock_id, NULL);
         jint retval = (jint)gtk_button_new_from_stock (stock_id_g);
		 (*env)->ReleaseStringUTFChars(env, stock_id, stock_id_g);
		 return retval;
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_new_with_mnemonic
     * Signature: ([B)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Button_gtk_1button_1new_1with_1mnemonic (JNIEnv *env, 
        jclass cls, jstring label) 
    {
        const gchar* label_g = (*env)->GetStringUTFChars(env, label, NULL);
		jint retval = (jint)gtk_button_new_with_mnemonic (label_g);
		(*env)->ReleaseStringUTFChars( env, label, label_g );
		return retval;
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_pressed
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1pressed (JNIEnv *env, jclass cls, 
        jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            gtk_button_pressed (button_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_released
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1released (JNIEnv *env, jclass cls, 
        jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            gtk_button_released (button_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_clicked
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1clicked (JNIEnv *env, jclass cls, 
        jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            gtk_button_clicked (button_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_enter
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1enter (JNIEnv *env, jclass cls, 
        jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            gtk_button_enter (button_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_leave
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1leave (JNIEnv *env, jclass cls, 
        jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            gtk_button_leave (button_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_set_relief
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1set_1relief (JNIEnv *env, jclass 
        cls, jint button, jint relief) 
    {
        GtkButton *button_g = (GtkButton *)button;
        GtkReliefStyle relief_g = (GtkReliefStyle) relief;
        {
            gtk_button_set_relief (button_g, relief_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_get_relief
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Button_gtk_1button_1get_1relief (JNIEnv *env, jclass 
        cls, jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            jint result_j = (jint) (gtk_button_get_relief (button_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_set_label
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1set_1label (JNIEnv *env, jclass 
        cls, jint button, jstring label) 
    {
        GtkButton *button_g = (GtkButton *)button;
        const gchar* label_g = (*env)->GetStringUTFChars( env, label, NULL);
		gtk_button_set_label (button_g, label_g);
		(*env)->ReleaseStringUTFChars( env, label, label_g );
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_get_label
     * Signature: (I)[B
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_Button_gtk_1button_1get_1label (JNIEnv *env, 
        jclass cls, jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
		return (*env)->NewStringUTF( env, gtk_button_get_label (button_g) );
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_set_use_underline
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1set_1use_1underline (JNIEnv *env, 
        jclass cls, jint button, jboolean useUnderline) 
    {
        GtkButton *button_g = (GtkButton *)button;
        gboolean useUnderline_g = (gboolean) useUnderline;
        {
            gtk_button_set_use_underline (button_g, useUnderline_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_get_use_underline
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Button_gtk_1button_1get_1use_1underline (JNIEnv 
        *env, jclass cls, jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            jboolean result_j = (jboolean) (gtk_button_get_use_underline (button_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_set_use_stock
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1set_1use_1stock (JNIEnv *env, 
        jclass cls, jint button, jboolean useStock) 
    {
        GtkButton *button_g = (GtkButton *)button;
        gboolean useStock_g = (gboolean) useStock;
        {
            gtk_button_set_use_stock (button_g, useStock_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Button
     * Method:    gtk_button_get_use_stock
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Button_gtk_1button_1get_1use_1stock (JNIEnv *env, 
        jclass cls, jint button) 
    {
        GtkButton *button_g = (GtkButton *)button;
        {
            jboolean result_j = (jboolean) (gtk_button_get_use_stock (button_g));
            return result_j;
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/

/*
 * Class:     org_gnu_gtk_Button
 * Method:    gtk_button_set_focus_on_click
 * Signature: (IZ)V
 */
JNIEXPORT void JNICALL Java_org_gnu_gtk_Button_gtk_1button_1set_1focus_1on_1click
  (JNIEnv *env, jclass cls, jint button, jboolean focus)
{
	gtk_button_set_focus_on_click((GtkButton*)button, (gboolean)focus);
}
                                                                                
/*
 * Class:     org_gnu_gtk_Button
 * Method:    gtk_button_get_focus_on_click
 * Signature: (I)Z
 */
JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Button_gtk_1button_1get_1focus_1on_1click
  (JNIEnv *env, jclass cls, jint button)
{
	return (jboolean)gtk_button_get_focus_on_click((GtkButton*)button);
}
                                                                                
#ifdef __cplusplus
}

#endif
