/*
 * 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:37 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gdk/gdk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gint32 GdkGC_get_clip_x_origin (GdkGC * cptr) 
    {
        return cptr->clip_x_origin;
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    getClipXOrigin
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_getClipXOrigin (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkGC *obj_g = (GdkGC *)obj;
        {
            jint result_j = (jint) (GdkGC_get_clip_x_origin (obj_g));
            return result_j;
        }
    }

    gint32 GdkGC_get_clip_y_origin (GdkGC * cptr) 
    {
        return cptr->clip_y_origin;
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    getClipYOrigin
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_getClipYOrigin (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkGC *obj_g = (GdkGC *)obj;
        {
            jint result_j = (jint) (GdkGC_get_clip_y_origin (obj_g));
            return result_j;
        }
    }

    gint32 GdkGC_get_ts_x_origin (GdkGC * cptr) 
    {
        return cptr->ts_x_origin;
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    getTsXOrigin
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_getTsXOrigin (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkGC *obj_g = (GdkGC *)obj;
        {
            jint result_j = (jint) (GdkGC_get_ts_x_origin (obj_g));
            return result_j;
        }
    }

    gint32 GdkGC_get_ts_y_origin (GdkGC * cptr) 
    {
        return cptr->ts_y_origin;
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    getTsYOrigin
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_getTsYOrigin (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkGC *obj_g = (GdkGC *)obj;
        {
            jint result_j = (jint) (GdkGC_get_ts_y_origin (obj_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1get_1type (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gdk_gc_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_new
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1new (JNIEnv *env, jclass cls, jint drawable)
    {
        GdkDrawable *drawable_g = (GdkDrawable *)drawable;
        {
            return (jint)gdk_gc_new (drawable_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_foreground
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1foreground (JNIEnv *env, jclass cls, 
        jint gc, jint color) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkColor *color_g = (GdkColor *)color;
        {
            gdk_gc_set_foreground (gc_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_background
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1background (JNIEnv *env, jclass cls, 
        jint gc, jint color) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkColor *color_g = (GdkColor *)color;
        {
            gdk_gc_set_background (gc_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_function
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1function (JNIEnv *env, jclass cls, 
        jint gc, jint function) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkFunction function_g = (GdkFunction) function;
        {
            gdk_gc_set_function (gc_g, function_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_fill
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1fill (JNIEnv *env, jclass cls, jint 
        gc, jint fill) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkFill fill_g = (GdkFill) fill;
        {
            gdk_gc_set_fill (gc_g, fill_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_tile
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1tile (JNIEnv *env, jclass cls, jint 
        gc, jint tile) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkPixmap *tile_g = (GdkPixmap *)tile;
        {
            gdk_gc_set_tile (gc_g, tile_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_stipple
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1stipple (JNIEnv *env, jclass cls, jint 
        gc, jint stipple) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkPixmap *stipple_g = (GdkPixmap *)stipple;
        {
            gdk_gc_set_stipple (gc_g, stipple_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_ts_origin
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1ts_1origin (JNIEnv *env, jclass cls, 
        jint gc, jint x, jint y) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            gdk_gc_set_ts_origin (gc_g, x_g, y_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_clip_origin
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1clip_1origin (JNIEnv *env, jclass cls, 
        jint gc, jint x, jint y) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            gdk_gc_set_clip_origin (gc_g, x_g, y_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_clip_mask
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1clip_1mask (JNIEnv *env, jclass cls, 
        jint gc, jint mask) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkBitmap *mask_g = (GdkBitmap *)mask;
        {
            gdk_gc_set_clip_mask (gc_g, mask_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_clip_rectangle
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1clip_1rectangle (JNIEnv *env, jclass 
        cls, jint gc, jint rectangle) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkRectangle *rectangle_g = (GdkRectangle *)rectangle;
        {
            gdk_gc_set_clip_rectangle (gc_g, rectangle_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_clip_region
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1clip_1region (JNIEnv *env, jclass cls, 
        jint gc, jint region) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkRegion *region_g = (GdkRegion *)region;
        {
            gdk_gc_set_clip_region (gc_g, region_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_subwindow
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1subwindow (JNIEnv *env, jclass cls, 
        jint gc, jint mode) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkSubwindowMode mode_g = (GdkSubwindowMode) mode;
        {
            gdk_gc_set_subwindow (gc_g, mode_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_exposures
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1exposures (JNIEnv *env, jclass cls, 
        jint gc, jboolean exposures) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        gboolean exposures_g = (gboolean) exposures;
        {
            gdk_gc_set_exposures (gc_g, exposures_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_line_attributes
     * Signature: (IIIII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1line_1attributes (JNIEnv *env, jclass 
        cls, jint gc, jint lineWidth, jint lineStyle, jint capStyle, jint joinStyle) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        gint32 lineWidth_g = (gint32) lineWidth;
        GdkLineStyle lineStyle_g = (GdkLineStyle) lineStyle;
        GdkCapStyle capStyle_g = (GdkCapStyle) capStyle;
        GdkJoinStyle joinStyle_g = (GdkJoinStyle) joinStyle;
        {
            gdk_gc_set_line_attributes (gc_g, lineWidth_g, lineStyle_g, capStyle_g, joinStyle_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_dashes
     * Signature: (II[Lint ;I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1dashes (JNIEnv *env, jclass cls, jint 
        gc, jint dashOffset, jintArray dashList, jint n) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        gint32 dashOffset_g = (gint32) dashOffset;
        gint8 *dashList_g = (gint8 *) (*env)->GetIntArrayElements (env, dashList, NULL);
        gint32 n_g = (gint32) n;
        {
            gdk_gc_set_dashes (gc_g, dashOffset_g, dashList_g, n_g);
            (*env)->ReleaseIntArrayElements (env, dashList, (jint *) dashList_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_offset
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1offset (JNIEnv *env, jclass cls, jint gc, 
        jint xOffset, jint yOffset) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        gint32 xOffset_g = (gint32) xOffset;
        gint32 yOffset_g = (gint32) yOffset;
        {
            gdk_gc_offset (gc_g, xOffset_g, yOffset_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_copy
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1copy (JNIEnv *env, jclass cls, jint dstGC, 
        jint srcGC) 
    {
        GdkGC *dstGC_g = (GdkGC *)dstGC;
        GdkGC *srcGC_g = (GdkGC *)srcGC;
        {
            gdk_gc_copy (dstGC_g, srcGC_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_colormap
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1colormap (JNIEnv *env, jclass cls, 
        jint gc, jint colormap) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkColormap *colormap_g = (GdkColormap *)colormap;
        {
            gdk_gc_set_colormap (gc_g, colormap_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_get_colormap
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1get_1colormap (JNIEnv *env, jclass cls, 
        jint gc) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        {
            return (jint)gdk_gc_get_colormap (gc_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_rgb_fg_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1rgb_1fg_1color (JNIEnv *env, jclass 
        cls, jint gc, jint color) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkColor *color_g = (GdkColor *)color;
        {
            gdk_gc_set_rgb_fg_color (gc_g, color_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.GC
     * Method:    gdk_gc_set_rgb_bg_color
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gdk_GC_gdk_1gc_1set_1rgb_1bg_1color (JNIEnv *env, jclass 
        cls, jint gc, jint color) 
    {
        GdkGC *gc_g = (GdkGC *)gc;
        GdkColor *color_g = (GdkColor *)color;
        {
            gdk_gc_set_rgb_bg_color (gc_g, color_g);
        }
    }

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

#endif
