/*
 * 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-01 07:00:28 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gdk/gdk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gchar * GdkWindowAttr_get_title (GdkWindowAttr * cptr) 
    {
        return cptr->title;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getTitle
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gdk_WindowAttr_getTitle (JNIEnv *env, jclass cls, 
        jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gchar *result_g = GdkWindowAttr_get_title (obj_g);
        return (*env)->NewStringUTF(env, result_g);
    }

    void GdkWindowAttr_set_title (GdkWindowAttr * cptr, gchar * title) 
    {
        cptr->title = title;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setTitle
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setTitle (JNIEnv *env, jint obj, jstring 
        title) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gchar* title_g = (gchar*)(*env)->GetStringUTFChars(env, title, 0);
        GdkWindowAttr_set_title (obj_g, title_g);
        (*env)->ReleaseStringUTFChars(env, title, title_g);
    }

    gint32 GdkWindowAttr_get_event_mask (GdkWindowAttr * cptr) 
    {
        return cptr->event_mask;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getEventMask
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getEventMask (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_event_mask (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_event_mask (GdkWindowAttr * cptr, gint32 event_mask) 
    {
        cptr->event_mask = event_mask;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setEventMask
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setEventMask (JNIEnv *env, jint obj, jint 
        event_mask) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gint32 event_mask_g = (gint32) event_mask;
        {
            GdkWindowAttr_set_event_mask (obj_g, event_mask_g);
        }
    }

    gint32 GdkWindowAttr_get_x (GdkWindowAttr * cptr) 
    {
        return cptr->x;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getX
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getX (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_x (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_x (GdkWindowAttr * cptr, gint32 x) 
    {
        cptr->x = x;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setX
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setX (JNIEnv *env, jint obj, jint x) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gint32 x_g = (gint32) x;
        {
            GdkWindowAttr_set_x (obj_g, x_g);
        }
    }

    gint32 GdkWindowAttr_get_y (GdkWindowAttr * cptr) 
    {
        return cptr->y;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getY
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getY (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_y (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_y (GdkWindowAttr * cptr, gint32 y) 
    {
        cptr->y = y;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setY
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setY (JNIEnv *env, jint obj, jint y) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gint32 y_g = (gint32) y;
        {
            GdkWindowAttr_set_y (obj_g, y_g);
        }
    }

    gint32 GdkWindowAttr_get_width (GdkWindowAttr * cptr) 
    {
        return cptr->width;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getWidth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getWidth (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_width (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_width (GdkWindowAttr * cptr, gint32 width) 
    {
        cptr->width = width;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setWidth
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setWidth (JNIEnv *env, jint obj, jint width) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gint32 width_g = (gint32) width;
        {
            GdkWindowAttr_set_width (obj_g, width_g);
        }
    }

    gint32 GdkWindowAttr_get_height (GdkWindowAttr * cptr) 
    {
        return cptr->height;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getHeight
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getHeight (JNIEnv *env, jclass cls, jint obj)
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_height (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_height (GdkWindowAttr * cptr, gint32 height) 
    {
        cptr->height = height;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setHeight
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setHeight (JNIEnv *env, jint obj, jint 
        height) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gint32 height_g = (gint32) height;
        {
            GdkWindowAttr_set_height (obj_g, height_g);
        }
    }

    GdkWindowClass GdkWindowAttr_get_wclass (GdkWindowAttr * cptr) 
    {
        return cptr->wclass;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getWclass
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getWclass (JNIEnv *env, jclass cls, jint obj)
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_wclass (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_wclass (GdkWindowAttr * cptr, GdkWindowClass wclass) 
    {
        cptr->wclass = wclass;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setWclass
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setWclass (JNIEnv *env, jint obj, jint 
        wclass) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        GdkWindowClass wclass_g = (GdkWindowClass) wclass;
        {
            GdkWindowAttr_set_wclass (obj_g, wclass_g);
        }
    }

    GdkVisual * GdkWindowAttr_get_visual (GdkWindowAttr * cptr) 
    {
        return cptr->visual;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getVisual
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getVisual (JNIEnv *env, jclass cls, jint obj)
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            return (jint)GdkWindowAttr_get_visual (obj_g);
        }
    }

    void GdkWindowAttr_set_visual (GdkWindowAttr * cptr, GdkVisual * visual) 
    {
        cptr->visual = visual;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setVisual
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setVisual (JNIEnv *env, jint obj, jint 
        visual) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        GdkVisual *visual_g = (GdkVisual *)visual;
        {
            GdkWindowAttr_set_visual (obj_g, visual_g);
        }
    }

    GdkColormap * GdkWindowAttr_get_colormap (GdkWindowAttr * cptr) 
    {
        return cptr->colormap;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getColormap
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getColormap (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            return (jint)GdkWindowAttr_get_colormap (obj_g);
        }
    }

    void GdkWindowAttr_set_colormap (GdkWindowAttr * cptr, GdkColormap * colormap) 
    {
        cptr->colormap = colormap;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setColormap
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setColormap (JNIEnv *env, jint obj, jint 
        colormap) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        GdkColormap *colormap_g = (GdkColormap *)colormap;
        {
            GdkWindowAttr_set_colormap (obj_g, colormap_g);
        }
    }

    GdkWindowType GdkWindowAttr_get_window_type (GdkWindowAttr * cptr) 
    {
        return cptr->window_type;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getWindowType
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getWindowType (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jint result_j = (jint) (GdkWindowAttr_get_window_type (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_window_type (GdkWindowAttr * cptr, GdkWindowType window_type) 
    {
        cptr->window_type = window_type;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setWindowType
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setWindowType (JNIEnv *env, jint obj, jint 
        window_type) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        GdkWindowType window_type_g = (GdkWindowType) window_type;
        {
            GdkWindowAttr_set_window_type (obj_g, window_type_g);
        }
    }

    GdkCursor * GdkWindowAttr_get_cursor (GdkWindowAttr * cptr) 
    {
        return cptr->cursor;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getCursor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_WindowAttr_getCursor (JNIEnv *env, jclass cls, jint obj)
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            return (jint)GdkWindowAttr_get_cursor (obj_g);
        }
    }

    void GdkWindowAttr_set_cursor (GdkWindowAttr * cptr, GdkCursor * cursor) 
    {
        cptr->cursor = cursor;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setCursor
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setCursor (JNIEnv *env, jint obj, jint 
        cursor) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        GdkCursor *cursor_g = (GdkCursor *)cursor;
        {
            GdkWindowAttr_set_cursor (obj_g, cursor_g);
        }
    }

    gchar * GdkWindowAttr_get_wmclass_name (GdkWindowAttr * cptr) 
    {
        return cptr->wmclass_name;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getWmclassName
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gdk_WindowAttr_getWmclassName (JNIEnv *env, jclass 
        cls, jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gchar *result_g = GdkWindowAttr_get_wmclass_name (obj_g);
        return (*env)->NewStringUTF(env, result_g);
    }

    void GdkWindowAttr_set_wmclass_name (GdkWindowAttr * cptr, gchar * wmclass_name) 
    {
        cptr->wmclass_name = wmclass_name;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setWmclassName
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setWmclassName (JNIEnv *env, jint obj, 
        jstring wmclass_name) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gchar* wmclass_name_g = (gchar*)(*env)->GetStringUTFChars(env, wmclass_name, 0);
        GdkWindowAttr_set_wmclass_name (obj_g, wmclass_name_g);
        (*env)->ReleaseStringUTFChars(env, wmclass_name, wmclass_name_g);
    }

    gchar * GdkWindowAttr_get_wmclass_class (GdkWindowAttr * cptr) 
    {
        return cptr->wmclass_class;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getWmclassClass
     * Signature: (I)java.lang.String
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gdk_WindowAttr_getWmclassClass (JNIEnv *env, jclass 
        cls, jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gchar *result_g = GdkWindowAttr_get_wmclass_class (obj_g);
        return (*env)->NewStringUTF(env, result_g);
    }

    void GdkWindowAttr_set_wmclass_class (GdkWindowAttr * cptr, gchar * wmclass_class) 
    {
        cptr->wmclass_class = wmclass_class;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setWmclassClass
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setWmclassClass (JNIEnv *env, jint obj, 
        jstring wmclass_class) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gchar* wmclass_class_g = (gchar*)(*env)->GetStringUTFChars(env, wmclass_class, 0);
        GdkWindowAttr_set_wmclass_class (obj_g, wmclass_class_g);
        (*env)->ReleaseStringUTFChars(env, wmclass_class, wmclass_class_g);
    }

    gboolean GdkWindowAttr_get_override_redirect (GdkWindowAttr * cptr) 
    {
        return cptr->override_redirect;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    getOverrideRedirect
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gdk_WindowAttr_getOverrideRedirect (JNIEnv *env, jclass 
        cls, jint obj) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        {
            jboolean result_j = (jboolean) (GdkWindowAttr_get_override_redirect (obj_g));
            return result_j;
        }
    }

    void GdkWindowAttr_set_override_redirect (GdkWindowAttr * cptr, gboolean override_redirect) 
    {
        cptr->override_redirect = override_redirect;
    }

    /*
     * Class:     org.gnu.gdk.WindowAttr
     * Method:    setOverrideRedirect
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_WindowAttr_setOverrideRedirect (JNIEnv *env, jint obj, 
        jboolean override_redirect) 
    {
        GdkWindowAttr *obj_g = (GdkWindowAttr *)obj;
        gboolean override_redirect_g = (gboolean) override_redirect;
        {
            GdkWindowAttr_set_override_redirect (obj_g, override_redirect_g);
        }
    }

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

#endif
