/*
 * 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:25 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.Frame
     * Method:    gtk_frame_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_frame_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_set_label
     * Signature: (I[B)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1set_1label (JNIEnv *env, jclass cls, 
        jint frame, jstring label) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
		const char *label_g = (*env)->GetStringUTFChars(env, label, NULL);
        gtk_frame_set_label (frame_g, label_g);
		(*env)->ReleaseStringUTFChars(env, label, label_g);
    }

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_get_label
     * Signature: (I)[B
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1get_1label (JNIEnv *env, jclass 
        cls, jint frame) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
		return (*env)->NewStringUTF(env, (gchar*)gtk_frame_get_label (frame_g) );
    }

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_set_label_widget
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1set_1label_1widget (JNIEnv *env, 
        jclass cls, jint frame, jint labelWidget) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
        GtkWidget *labelWidget_g = (GtkWidget *)labelWidget;
        {
            gtk_frame_set_label_widget (frame_g, labelWidget_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_get_label_widget
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1get_1label_1widget (JNIEnv *env, 
        jclass cls, jint frame) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
        {
            return (jint)gtk_frame_get_label_widget (frame_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_set_label_align
     * Signature: (IDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1set_1label_1align (JNIEnv *env, 
        jclass cls, jint frame, jdouble xalign, jdouble yalign) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
        gdouble xalign_g = (gdouble) xalign;
        gdouble yalign_g = (gdouble) yalign;
        {
            gtk_frame_set_label_align (frame_g, xalign_g, yalign_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_get_label_align
     * Signature: (I[Ldouble ;[Ldouble ;)V
     */
/*    JNIEXPORT void JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1get_1label_1align (JNIEnv *env, 
        jclass cls, jint frame, jdoubleArray xalign, jdoubleArray yalign) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
        gdouble *xalign_g = (gdouble *) (*env)->GetDoubleArrayElements (env, xalign, NULL);
        gdouble *yalign_g = (gdouble *) (*env)->GetDoubleArrayElements (env, yalign, NULL);
        {
            gtk_frame_get_label_align (frame_g, xalign_g, yalign_g);
            (*env)->ReleaseDoubleArrayElements (env, xalign, (jdouble *) xalign_g, 0);
            (*env)->ReleaseDoubleArrayElements (env, yalign, (jdouble *) yalign_g, 0);
        }
    }
*/
    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_set_shadow_type
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1set_1shadow_1type (JNIEnv *env, 
        jclass cls, jint frame, jint type) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
        GtkShadowType type_g = (GtkShadowType) type;
        {
            gtk_frame_set_shadow_type (frame_g, type_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Frame
     * Method:    gtk_frame_get_shadow_type
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Frame_gtk_1frame_1get_1shadow_1type (JNIEnv *env, 
        jclass cls, jint frame) 
    {
        GtkFrame *frame_g = (GtkFrame *)frame;
        {
            jint result_j = (jint) (gtk_frame_get_shadow_type (frame_g));
            return result_j;
        }
    }

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

#endif
