/*
 * 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:28 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.AspectFrame
     * Method:    gtk_aspect_frame_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_AspectFrame_gtk_1aspect_1frame_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gtk_aspect_frame_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.AspectFrame
     * Method:    gtk_aspect_frame_new
     * Signature: ([BDDDZ)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_AspectFrame_gtk_1aspect_1frame_1new (JNIEnv *env, 
        jclass cls, jstring label, jdouble xalign, jdouble yalign, jdouble ratio, jboolean 
        obeyChild) 
    {
        gdouble xalign_g = (gdouble) xalign;
        gdouble yalign_g = (gdouble) yalign;
        gdouble ratio_g = (gdouble) ratio;
        gboolean obeyChild_g = (gboolean) obeyChild;
        const gchar* label_g = (*env)->GetStringUTFChars(env, label, NULL);
        jint retval =  (jint)gtk_aspect_frame_new (label_g, xalign_g, yalign_g, ratio_g, obeyChild_g);
		(*env)->ReleaseStringUTFChars( env, label, label_g);
		return retval;    
    }

    /*
     * Class:     org.gnu.gtk.AspectFrame
     * Method:    gtk_aspect_frame_set
     * Signature: (IDDDZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_AspectFrame_gtk_1aspect_1frame_1set (JNIEnv *env, 
        jclass cls, jint aspect_frame, jdouble xalign, jdouble yalign, jdouble ratio, jboolean 
        obeyChild) 
    {
        GtkAspectFrame *aspect_frame_g = (GtkAspectFrame *)aspect_frame;
        gdouble xalign_g = (gdouble) xalign;
        gdouble yalign_g = (gdouble) yalign;
        gdouble ratio_g = (gdouble) ratio;
        gboolean obeyChild_g = (gboolean) obeyChild;
        {
            gtk_aspect_frame_set (aspect_frame_g, xalign_g, yalign_g, ratio_g, obeyChild_g);
        }
    }

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

#endif
