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

    /*
     * Class:     org.gnu.gtk.Alignment
     * Method:    gtk_alignment_new
     * Signature: (DDDD)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Alignment_gtk_1alignment_1new (JNIEnv *env, jclass cls, 
        jdouble xalign, jdouble yalign, jdouble xscale, jdouble yscale) 
    {
        gdouble xalign_g = (gdouble) xalign;
        gdouble yalign_g = (gdouble) yalign;
        gdouble xscale_g = (gdouble) xscale;
        gdouble yscale_g = (gdouble) yscale;
        {
            return (jint)gtk_alignment_new (xalign_g, yalign_g, xscale_g, yscale_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Alignment
     * Method:    gtk_alignment_set
     * Signature: (IDDDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Alignment_gtk_1alignment_1set (JNIEnv *env, jclass cls, 
        jint alignment, jdouble xalign, jdouble yalign, jdouble xscale, jdouble yscale) 
    {
        GtkAlignment *alignment_g = (GtkAlignment *)alignment;
        gdouble xalign_g = (gdouble) xalign;
        gdouble yalign_g = (gdouble) yalign;
        gdouble xscale_g = (gdouble) xscale;
        gdouble yscale_g = (gdouble) yscale;
        {
            gtk_alignment_set (alignment_g, xalign_g, yalign_g, xscale_g, yscale_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Alignment
     * Method:    gtk_alignment_set_padding
     * Signature: (IDDDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Alignment_gtk_1alignment_1set_1padding (JNIEnv *env, jclass cls, 
        jint alignment, jint top, jint bottom, jint left, jint right) 
    {
        GtkAlignment *alignment_g = (GtkAlignment *)alignment;
        {
            gtk_alignment_set_padding (alignment_g, 
					(guint) top,
					(guint) bottom,
					(guint) left,
					(guint) right
					);
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/

/*
 * Class:     org_gnu_gtk_Alignment
 * Method:    gtk_alignment_get_padding
 * Signature: (I[I[I[I[I)V
 */
JNIEXPORT void JNICALL Java_org_gnu_gtk_Alignment_gtk_1alignment_1get_1padding
  (JNIEnv *env, jclass cls, jint align, jintArray top, jintArray bottom, jintArray left, jintArray right)
{
	int* t;
	int* b;
	int* l;
	int* r;
	
	t = (*env)->GetIntArrayElements(env, top, NULL);
	b = (*env)->GetIntArrayElements(env, bottom, NULL);
	l = (*env)->GetIntArrayElements(env, left, NULL);
	r = (*env)->GetIntArrayElements(env, right, NULL);
	gtk_alignment_get_padding((GtkAlignment*)align, t, b, l, r);
	(*env)->ReleaseIntArrayElements(env, top, (jint*)t, 0);
	(*env)->ReleaseIntArrayElements(env, bottom, (jint*)b, 0);
	(*env)->ReleaseIntArrayElements(env, left, (jint*)l, 0);
	(*env)->ReleaseIntArrayElements(env, right, (jint*)r, 0);
}
                                                                                
#
#ifdef __cplusplus
}

#endif
