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

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_new
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1new (JNIEnv *env, jclass cls, jint 
        hadjustment, jint vadjustment) 
    {
        GtkAdjustment *hadjustment_g = (GtkAdjustment *)hadjustment;
        GtkAdjustment *vadjustment_g = (GtkAdjustment *)vadjustment;
        {
            return (jint)gtk_layout_new (hadjustment_g, vadjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_put
     * Signature: (IIII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1put (JNIEnv *env, jclass cls, jint 
        layout, jint childWidget, jint x, jint y) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        GtkWidget *childWidget_g = (GtkWidget *)childWidget;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            gtk_layout_put (layout_g, childWidget_g, x_g, y_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_move
     * Signature: (IIII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1move (JNIEnv *env, jclass cls, jint 
        layout, jint childWidget, jint x, jint y) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        GtkWidget *childWidget_g = (GtkWidget *)childWidget;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            gtk_layout_move (layout_g, childWidget_g, x_g, y_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_set_size
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1set_1size (JNIEnv *env, jclass cls, 
        jint layout, jint width, jint height) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        gint32 width_g = (gint32) width;
        gint32 height_g = (gint32) height;
        {
            gtk_layout_set_size (layout_g, width_g, height_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_get_size
     * Signature: (I[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1get_1size (JNIEnv *env, jclass cls, 
        jint layout, jintArray width, jintArray height) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        gint *width_g = (gint *) (*env)->GetIntArrayElements (env, width, NULL);
        gint *height_g = (gint *) (*env)->GetIntArrayElements (env, height, NULL);
        {
            gtk_layout_get_size (layout_g, width_g, height_g);
            (*env)->ReleaseIntArrayElements (env, width, (jint *) width_g, 0);
            (*env)->ReleaseIntArrayElements (env, height, (jint *) height_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_get_hadjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1get_1hadjustment (JNIEnv *env, 
        jclass cls, jint layout) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        {
            return (jint)gtk_layout_get_hadjustment (layout_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_get_vadjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1get_1vadjustment (JNIEnv *env, 
        jclass cls, jint layout) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        {
            return (jint)gtk_layout_get_vadjustment (layout_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_set_hadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1set_1hadjustment (JNIEnv *env, 
        jclass cls, jint layout, jint adjustment) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_layout_set_hadjustment (layout_g, adjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Layout
     * Method:    gtk_layout_set_vadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Layout_gtk_1layout_1set_1vadjustment (JNIEnv *env, 
        jclass cls, jint layout, jint adjustment) 
    {
        GtkLayout *layout_g = (GtkLayout *)layout;
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_layout_set_vadjustment (layout_g, adjustment_g);
        }
    }

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

#endif
