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

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_pack_start
     * Signature: (IIZZI)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1pack_1start (JNIEnv *env, jclass cls, 
        jint box, jint child, jboolean expand, jboolean fill, jint padding) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        gboolean expand_g = (gboolean) expand;
        gboolean fill_g = (gboolean) fill;
        gint32 padding_g = (gint32) padding;
        {
            gtk_box_pack_start (box_g, child_g, expand_g, fill_g, padding_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_pack_end
     * Signature: (IIZZI)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1pack_1end (JNIEnv *env, jclass cls, jint 
        box, jint child, jboolean expand, jboolean fill, jint padding) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        gboolean expand_g = (gboolean) expand;
        gboolean fill_g = (gboolean) fill;
        gint32 padding_g = (gint32) padding;
        {
            gtk_box_pack_end (box_g, child_g, expand_g, fill_g, padding_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_pack_start_defaults
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1pack_1start_1defaults (JNIEnv *env, 
        jclass cls, jint box, jint child) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        {
            gtk_box_pack_start_defaults (box_g, child_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_pack_end_defaults
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1pack_1end_1defaults (JNIEnv *env, jclass 
        cls, jint box, jint child) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        {
            gtk_box_pack_end_defaults (box_g, child_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_set_homogeneous
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1set_1homogeneous (JNIEnv *env, jclass 
        cls, jint box, jboolean homogenous) 
    {
        GtkBox *box_g = (GtkBox *)box;
        gboolean homogenous_g = (gboolean) homogenous;
        {
            gtk_box_set_homogeneous (box_g, homogenous_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_get_homogeneous
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_Box_gtk_1box_1get_1homogeneous (JNIEnv *env, jclass 
        cls, jint box) 
    {
        GtkBox *box_g = (GtkBox *)box;
        {
            jboolean result_j = (jboolean) (gtk_box_get_homogeneous (box_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_set_spacing
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1set_1spacing (JNIEnv *env, jclass cls, 
        jint box, jint spacing) 
    {
        GtkBox *box_g = (GtkBox *)box;
        gint32 spacing_g = (gint32) spacing;
        {
            gtk_box_set_spacing (box_g, spacing_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_get_spacing
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Box_gtk_1box_1get_1spacing (JNIEnv *env, jclass cls, 
        jint box) 
    {
        GtkBox *box_g = (GtkBox *)box;
        {
            jint result_j = (jint) (gtk_box_get_spacing (box_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_reorder_child
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1reorder_1child (JNIEnv *env, jclass cls, 
        jint box, jint child, jint position) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        gint32 position_g = (gint32) position;
        {
            gtk_box_reorder_child (box_g, child_g, position_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_query_child_packing
     * Signature: (II[Z[Z[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1query_1child_1packing (JNIEnv *env, 
        jclass cls, jint box, jint child, jbooleanArray expand, jbooleanArray fill, jintArray 
        padding, jintArray packType) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        gboolean *expand_g = (gboolean *) (*env)->GetBooleanArrayElements(env, expand, NULL);
        gboolean *fill_g = (gboolean *) (*env)->GetBooleanArrayElements(env, fill, NULL);
        gint *padding_g = (gint *) (*env)->GetIntArrayElements (env, padding, NULL);
        gint *packType_g_g = (gint *) (*env)->GetIntArrayElements (env, packType, NULL);
        GtkPackType *packType_g = (GtkPackType *)packType_g_g;
        {
            gtk_box_query_child_packing (box_g, child_g, expand_g, fill_g, padding_g, packType_g);
            (*env)->ReleaseBooleanArrayElements(env, expand, (jboolean *)expand_g, 0);
            (*env)->ReleaseBooleanArrayElements(env, fill, (jboolean *)fill_g, 0);
            (*env)->ReleaseIntArrayElements (env, padding, (jint *) padding_g, 0);
            (*env)->ReleaseIntArrayElements (env, packType, packType_g_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.Box
     * Method:    gtk_box_set_child_packing
     * Signature: (IIZZII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Box_gtk_1box_1set_1child_1packing (JNIEnv *env, jclass 
        cls, jint box, jint child, jboolean expand, jboolean fill, jint padding, jint packType) 
    {
        GtkBox *box_g = (GtkBox *)box;
        GtkWidget *child_g = (GtkWidget *)child;
        gboolean expand_g = (gboolean) expand;
        gboolean fill_g = (gboolean) fill;
        gint32 padding_g = (gint32) padding;
        GtkPackType packType_g = (GtkPackType) packType;
        {
            gtk_box_set_child_packing (box_g, child_g, expand_g, fill_g, padding_g, packType_g);
        }
    }

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

#endif
