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

#include <jni.h>
#include <sys/types.h>
#include <gnome.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    GtkWidget * GnomeCanvasWidget_get_widget (GnomeCanvasWidget * cptr) 
    {
        return cptr->widget;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    getWidget
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasWidget_getWidget (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        {
            return (jint)GnomeCanvasWidget_get_widget (cptr_g);
        }
    }

    void GnomeCanvasWidget_set_widget (GnomeCanvasWidget * cptr, GtkWidget * widget) 
    {
        cptr->widget = widget;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setWidget
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setWidget (JNIEnv *env, jint cptr, jint 
        widget) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        GtkWidget *widget_g = (GtkWidget *)widget;
        {
            GnomeCanvasWidget_set_widget (cptr_g, widget_g);
        }
    }

    gdouble GnomeCanvasWidget_get_x (GnomeCanvasWidget * cptr) 
    {
        return cptr->x;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    getX
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasWidget_getX (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasWidget_get_x (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasWidget_set_x (GnomeCanvasWidget * cptr, gdouble x) 
    {
        cptr->x = x;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setX
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setX (JNIEnv *env, jint cptr, jdouble x) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        gdouble x_g = (gdouble) x;
        {
            GnomeCanvasWidget_set_x (cptr_g, x_g);
        }
    }

    gdouble GnomeCanvasWidget_get_y (GnomeCanvasWidget * cptr) 
    {
        return cptr->y;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    getY
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasWidget_getY (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasWidget_get_y (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasWidget_set_y (GnomeCanvasWidget * cptr, gdouble y) 
    {
        cptr->y = y;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setY
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setY (JNIEnv *env, jint cptr, jdouble y) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        gdouble y_g = (gdouble) y;
        {
            GnomeCanvasWidget_set_y (cptr_g, y_g);
        }
    }

    gdouble GnomeCanvasWidget_get_width (GnomeCanvasWidget * cptr) 
    {
        return cptr->width;
    }

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

    void GnomeCanvasWidget_set_width (GnomeCanvasWidget * cptr, gdouble width) 
    {
        cptr->width = width;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setWidth
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setWidth (JNIEnv *env, jint cptr, 
        jdouble width) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        gdouble width_g = (gdouble) width;
        {
            GnomeCanvasWidget_set_width (cptr_g, width_g);
        }
    }

    gdouble GnomeCanvasWidget_get_height (GnomeCanvasWidget * cptr) 
    {
        return cptr->height;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    getHeight
     * Signature: (I)D
     */
    JNIEXPORT jdouble JNICALL Java_org_gnu_gnome_CanvasWidget_getHeight (JNIEnv *env, jclass cls, 
        jint cptr) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        {
            jdouble result_j = (jdouble) (GnomeCanvasWidget_get_height (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasWidget_set_height (GnomeCanvasWidget * cptr, gdouble height) 
    {
        cptr->height = height;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setHeight
     * Signature: (ID)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setHeight (JNIEnv *env, jint cptr, 
        jdouble height) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        gdouble height_g = (gdouble) height;
        {
            GnomeCanvasWidget_set_height (cptr_g, height_g);
        }
    }

    GtkAnchorType GnomeCanvasWidget_get_anchor (GnomeCanvasWidget * cptr) 
    {
        return cptr->anchor;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    getAnchor
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gnome_CanvasWidget_getAnchor (JNIEnv *env, jclass cls, jint 
        cptr) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        {
            jint result_j = (jint) (GnomeCanvasWidget_get_anchor (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasWidget_set_anchor (GnomeCanvasWidget * cptr, GtkAnchorType anchor) 
    {
        cptr->anchor = anchor;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setAnchor
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setAnchor (JNIEnv *env, jint cptr, jint 
        anchor) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        GtkAnchorType anchor_g = (GtkAnchorType) anchor;
        {
            GnomeCanvasWidget_set_anchor (cptr_g, anchor_g);
        }
    }

    gboolean GnomeCanvasWidget_get_size_pixels (GnomeCanvasWidget * cptr) 
    {
        return cptr->size_pixels;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    getSizePixels
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gnome_CanvasWidget_getSizePixels (JNIEnv *env, jclass 
        cls, jint cptr) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        {
            jboolean result_j = (jboolean) (GnomeCanvasWidget_get_size_pixels (cptr_g));
            return result_j;
        }
    }

    void GnomeCanvasWidget_set_size_pixels (GnomeCanvasWidget * cptr, gboolean size_pixels) 
    {
        cptr->size_pixels = size_pixels;
    }

    /*
     * Class:     org.gnu.gnome.CanvasWidget
     * Method:    setSizePixels
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_CanvasWidget_setSizePixels (JNIEnv *env, jint cptr, 
        jboolean size_pixels) 
    {
        GnomeCanvasWidget *cptr_g = (GnomeCanvasWidget *)cptr;
        gboolean size_pixels_g = (gboolean) size_pixels;
        {
            GnomeCanvasWidget_set_size_pixels (cptr_g, size_pixels_g);
        }
    }

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

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

#endif
