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

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    gtk_requisition_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Requisition_gtk_1requisition_1new (JNIEnv *env, jclass cls)
    {
        GtkRequisition *requisition_g = (GtkRequisition *)g_malloc(sizeof(GtkRequisition));
        return (jint)requisition_g;
    }

    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gint32 GtkRequisition_get_width (GtkRequisition * cptr) 
    {
        return cptr->width;
    }

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    getWidth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Requisition_getWidth (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkRequisition *cptr_g = (GtkRequisition *)cptr;
        {
            jint result_j = (jint) (GtkRequisition_get_width (cptr_g));
            return result_j;
        }
    }

    void GtkRequisition_set_width (GtkRequisition * cptr, gint32 width) 
    {
        cptr->width = width;
    }

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    setWidth
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Requisition_setWidth (JNIEnv *env, jint cptr, jint 
        width) 
    {
        GtkRequisition *cptr_g = (GtkRequisition *)cptr;
        gint32 width_g = (gint32) width;
        {
            GtkRequisition_set_width (cptr_g, width_g);
        }
    }

    gint32 GtkRequisition_get_height (GtkRequisition * cptr) 
    {
        return cptr->height;
    }

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    getHeight
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Requisition_getHeight (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GtkRequisition *cptr_g = (GtkRequisition *)cptr;
        {
            jint result_j = (jint) (GtkRequisition_get_height (cptr_g));
            return result_j;
        }
    }

    void GtkRequisition_set_height (GtkRequisition * cptr, gint32 height) 
    {
        cptr->height = height;
    }

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    setHeight
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Requisition_setHeight (JNIEnv *env, jint cptr, jint 
        height) 
    {
        GtkRequisition *cptr_g = (GtkRequisition *)cptr;
        gint32 height_g = (gint32) height;
        {
            GtkRequisition_set_height (cptr_g, height_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    gtk_requisition_copy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Requisition_gtk_1requisition_1copy (JNIEnv *env, jclass 
        cls, jint requisition) 
    {
        GtkRequisition *requisition_g = (GtkRequisition *)requisition;
        {
            return (jint)gtk_requisition_copy (requisition_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Requisition
     * Method:    gtk_requisition_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Requisition_gtk_1requisition_1free (JNIEnv *env, jclass 
        cls, jint requisition) 
    {
        GtkRequisition *requisition_g = (GtkRequisition *)requisition;
        {
            gtk_requisition_free (requisition_g);
        }
    }

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

#endif
