/*
 * 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-08 10:21:57 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    gint32 GnomeCanvasLine_get_num_points (GnomeCanvasLine * cptr) 
    {
        return cptr->num_points;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getNumPoints
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getNumPoints (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_num_points (cptr_g));
            return result_j;
        }
    }

    gdouble GnomeCanvasLine_get_width (GnomeCanvasLine * cptr) 
    {
        return cptr->width;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getWidth
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasLine_getWidth (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasLine_get_width (cptr_g));
            return result_j;
        }
    }

    GdkBitmap * GnomeCanvasLine_get_stipple (GnomeCanvasLine * cptr) 
    {
        return cptr->stipple;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getStipple
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getStipple (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            return (jint)GnomeCanvasLine_get_stipple (cptr_g);
        }
    }

    void GnomeCanvasLine_set_stipple (GnomeCanvasLine * cptr, GdkBitmap * stipple) 
    {
        cptr->stipple = stipple;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setStipple
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setStipple (JNIEnv *env, jint cptr, jint 
        stipple) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        GdkBitmap *stipple_g = (GdkBitmap *)stipple;
        {
            GnomeCanvasLine_set_stipple (cptr_g, stipple_g);
        }
    }

    glong GnomeCanvasLine_get_fill_pixel (GnomeCanvasLine * cptr) 
    {
        return cptr->fill_pixel;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getFillPixel
     * Signature: (I)J
     */
    JNIEXPORT jlong JNICALL Java_org_gnu_gnome_CanvasLine_getFillPixel (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jlong result_j = (jlong) (GnomeCanvasLine_get_fill_pixel (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_fill_pixel (GnomeCanvasLine * cptr, glong fill_pixel) 
    {
        cptr->fill_pixel = fill_pixel;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setFillPixel
     * Signature: (IJ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setFillPixel (JNIEnv *env, jint cptr, 
        jlong fill_pixel) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        glong fill_pixel_g = (glong) fill_pixel;
        {
            GnomeCanvasLine_set_fill_pixel (cptr_g, fill_pixel_g);
        }
    }

    gint32 GnomeCanvasLine_get_fill_color (GnomeCanvasLine * cptr) 
    {
        return cptr->fill_color;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getFillColor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getFillColor (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_fill_color (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_fill_color (GnomeCanvasLine * cptr, gint32 fill_color) 
    {
        cptr->fill_color = fill_color;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setFillColor
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setFillColor (JNIEnv *env, jint cptr, jint 
        fill_color) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gint32 fill_color_g = (gint32) fill_color;
        {
            GnomeCanvasLine_set_fill_color (cptr_g, fill_color_g);
        }
    }

    GdkGC * GnomeCanvasLine_get_gc (GnomeCanvasLine * cptr) 
    {
        return cptr->gc;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getGc
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getGc (JNIEnv *env, jclass cls, jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            return (jint)GnomeCanvasLine_get_gc (cptr_g);
        }
    }

    gboolean GnomeCanvasLine_get_width_pixels (GnomeCanvasLine * cptr) 
    {
        return cptr->width_pixels;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getWidthPixels
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_CanvasLine_getWidthPixels (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jboolean result_j = (jboolean) (GnomeCanvasLine_get_width_pixels (cptr_g));
            return result_j;
        }
    }

    gboolean GnomeCanvasLine_get_first_arrow (GnomeCanvasLine * cptr) 
    {
        return cptr->first_arrow;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getFirstArrow
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_CanvasLine_getFirstArrow (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jboolean result_j = (jboolean) (GnomeCanvasLine_get_first_arrow (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_first_arrow (GnomeCanvasLine * cptr, gboolean first_arrow) 
    {
        cptr->first_arrow = first_arrow;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setFirstArrow
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setFirstArrow (JNIEnv *env, jint cptr, 
        jboolean first_arrow) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gboolean first_arrow_g = (gboolean) first_arrow;
        {
            GnomeCanvasLine_set_first_arrow (cptr_g, first_arrow_g);
        }
    }

    gboolean GnomeCanvasLine_get_last_arrow (GnomeCanvasLine * cptr) 
    {
        return cptr->last_arrow;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getLastArrow
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_CanvasLine_getLastArrow (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jboolean result_j = (jboolean) (GnomeCanvasLine_get_last_arrow (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_last_arrow (GnomeCanvasLine * cptr, gboolean last_arrow) 
    {
        cptr->last_arrow = last_arrow;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setLastArrow
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setLastArrow (JNIEnv *env, jint cptr, 
        jboolean last_arrow) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gboolean last_arrow_g = (gboolean) last_arrow;
        {
            GnomeCanvasLine_set_last_arrow (cptr_g, last_arrow_g);
        }
    }

    gboolean GnomeCanvasLine_get_smooth (GnomeCanvasLine * cptr) 
    {
        return cptr->smooth;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getSmooth
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_CanvasLine_getSmooth (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jboolean result_j = (jboolean) (GnomeCanvasLine_get_smooth (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_smooth (GnomeCanvasLine * cptr, gboolean smooth) 
    {
        cptr->smooth = smooth;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setSmooth
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setSmooth (JNIEnv *env, jint cptr, 
        jboolean smooth) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gboolean smooth_g = (gboolean) smooth;
        {
            GnomeCanvasLine_set_smooth (cptr_g, smooth_g);
        }
    }

    GdkCapStyle GnomeCanvasLine_get_cap (GnomeCanvasLine * cptr) 
    {
        return cptr->cap;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getCap
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getCap (JNIEnv *env, jclass cls, jint cptr)
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_cap (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_cap (GnomeCanvasLine * cptr, GdkCapStyle cap) 
    {
        cptr->cap = cap;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setCap
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setCap (JNIEnv *env, jint cptr, jint cap) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        GdkCapStyle cap_g = (GdkCapStyle) cap;
        {
            GnomeCanvasLine_set_cap (cptr_g, cap_g);
        }
    }

    GdkLineStyle GnomeCanvasLine_get_line_style (GnomeCanvasLine * cptr) 
    {
        return cptr->line_style;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getLineStyle
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getLineStyle (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_line_style (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_line_style (GnomeCanvasLine * cptr, GdkLineStyle line_style) 
    {
        cptr->line_style = line_style;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setLineStyle
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setLineStyle (JNIEnv *env, jint cptr, jint 
        line_style) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        GdkLineStyle line_style_g = (GdkLineStyle) line_style;
        {
            GnomeCanvasLine_set_line_style (cptr_g, line_style_g);
        }
    }

    GdkJoinStyle GnomeCanvasLine_get_join (GnomeCanvasLine * cptr) 
    {
        return cptr->join;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getJoin
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getJoin (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_join (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_join (GnomeCanvasLine * cptr, GdkJoinStyle join) 
    {
        cptr->join = join;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setJoin
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setJoin (JNIEnv *env, jint cptr, jint join)
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        GdkJoinStyle join_g = (GdkJoinStyle) join;
        {
            GnomeCanvasLine_set_join (cptr_g, join_g);
        }
    }

    gint32 GnomeCanvasLine_get_fill_rgba (GnomeCanvasLine * cptr) 
    {
        return cptr->fill_rgba;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getFillRgba
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getFillRgba (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_fill_rgba (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_fill_rgba (GnomeCanvasLine * cptr, gint32 fill_rgba) 
    {
        cptr->fill_rgba = fill_rgba;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setFillRgba
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setFillRgba (JNIEnv *env, jint cptr, jint 
        fill_rgba) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gint32 fill_rgba_g = (gint32) fill_rgba;
        {
            GnomeCanvasLine_set_fill_rgba (cptr_g, fill_rgba_g);
        }
    }

    gint32 GnomeCanvasLine_get_spline_steps (GnomeCanvasLine * cptr) 
    {
        return cptr->spline_steps;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getSplineSteps
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_getSplineSteps (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasLine_get_spline_steps (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_spline_steps (GnomeCanvasLine * cptr, gint32 spline_steps) 
    {
        cptr->spline_steps = spline_steps;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setSplineSteps
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setSplineSteps (JNIEnv *env, jint cptr, 
        jint spline_steps) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gint32 spline_steps_g = (gint32) spline_steps;
        {
            GnomeCanvasLine_set_spline_steps (cptr_g, spline_steps_g);
        }
    }

    gdouble GnomeCanvasLine_get_shape_a (GnomeCanvasLine * cptr) 
    {
        return cptr->shape_a;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getShapeA
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasLine_getShapeA (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasLine_get_shape_a (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_shape_a (GnomeCanvasLine * cptr, gdouble shape_a) 
    {
        cptr->shape_a = shape_a;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setShapeA
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setShapeA (JNIEnv *env, jint cptr, jdouble 
        shape_a) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gdouble shape_a_g = (gdouble) shape_a;
        {
            GnomeCanvasLine_set_shape_a (cptr_g, shape_a_g);
        }
    }

    gdouble GnomeCanvasLine_get_shape_b (GnomeCanvasLine * cptr) 
    {
        return cptr->shape_b;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getShapeB
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasLine_getShapeB (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasLine_get_shape_b (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_shape_b (GnomeCanvasLine * cptr, gdouble shape_b) 
    {
        cptr->shape_b = shape_b;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setShapeB
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setShapeB (JNIEnv *env, jint cptr, jdouble 
        shape_b) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gdouble shape_b_g = (gdouble) shape_b;
        {
            GnomeCanvasLine_set_shape_b (cptr_g, shape_b_g);
        }
    }

    gdouble GnomeCanvasLine_get_shape_c (GnomeCanvasLine * cptr) 
    {
        return cptr->shape_c;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    getShapeC
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasLine_getShapeC (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasLine_get_shape_c (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasLine_set_shape_c (GnomeCanvasLine * cptr, gdouble shape_c) 
    {
        cptr->shape_c = shape_c;
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    setShapeC
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasLine_setShapeC (JNIEnv *env, jint cptr, jdouble 
        shape_c) 
    {
        GnomeCanvasLine *cptr_g = (GnomeCanvasLine *)cptr;
        gdouble shape_c_g = (gdouble) shape_c;
        {
            GnomeCanvasLine_set_shape_c (cptr_g, shape_c_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.CanvasLine
     * Method:    gnome_canvas_line_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasLine_gnome_1canvas_1line_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gnome_canvas_line_get_type ();
        }
    }

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

#endif
