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

    /*
     * Class:     org.gnu.gtk.Misc
     * Method:    gtk_misc_set_alignment
     * Signature: (IDD)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Misc_gtk_1misc_1set_1alignment (JNIEnv *env, jclass 
        cls, jint misc, jdouble xalign, jdouble yalign) 
    {
        GtkMisc *misc_g = (GtkMisc *)misc;
        gdouble xalign_g = (gdouble) xalign;
        gdouble yalign_g = (gdouble) yalign;
        {
            gtk_misc_set_alignment (misc_g, xalign_g, yalign_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Misc
     * Method:    gtk_misc_get_alignment
     * Signature: (I[Ldouble ;[Ldouble ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Misc_gtk_1misc_1get_1alignment (JNIEnv *env, jclass 
        cls, jint misc, jdoubleArray xalign, jdoubleArray yalign) 
    {
        GtkMisc *misc_g = (GtkMisc *)misc;
        gdouble *xalign_g = (gdouble *) (*env)->GetDoubleArrayElements (env, xalign, NULL);
        gdouble *yalign_g = (gdouble *) (*env)->GetDoubleArrayElements (env, yalign, NULL);
        {
            gtk_misc_get_alignment (misc_g, (gfloat*)xalign_g, (gfloat*)yalign_g);
            (*env)->ReleaseDoubleArrayElements (env, xalign, (jdouble *) xalign_g, 0);
            (*env)->ReleaseDoubleArrayElements (env, yalign, (jdouble *) yalign_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.Misc
     * Method:    gtk_misc_set_padding
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Misc_gtk_1misc_1set_1padding (JNIEnv *env, jclass cls, 
        jint misc, jint xpad, jint ypad) 
    {
        GtkMisc *misc_g = (GtkMisc *)misc;
        gint32 xpad_g = (gint32) xpad;
        gint32 ypad_g = (gint32) ypad;
        {
            gtk_misc_set_padding (misc_g, xpad_g, ypad_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Misc
     * Method:    gtk_misc_get_padding
     * Signature: (I[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Misc_gtk_1misc_1get_1padding (JNIEnv *env, jclass cls, 
        jint misc, jintArray xpad, jintArray ypad) 
    {
        GtkMisc *misc_g = (GtkMisc *)misc;
        gint *xpad_g = (gint *) (*env)->GetIntArrayElements (env, xpad, NULL);
        gint *ypad_g = (gint *) (*env)->GetIntArrayElements (env, ypad, NULL);
        {
            gtk_misc_get_padding (misc_g, xpad_g, ypad_g);
            (*env)->ReleaseIntArrayElements (env, xpad, (jint *) xpad_g, 0);
            (*env)->ReleaseIntArrayElements (env, ypad, (jint *) ypad_g, 0);
        }
    }

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

#endif
