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

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

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getDepth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getDepth (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_depth (obj_g));
            return result_j;
        }
    }

    GdkByteOrder GdkVisual_get_byte_order (GdkVisual * cptr) 
    {
        return cptr->byte_order;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getByteOrder
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getByteOrder (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_byte_order (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_colormap_size (GdkVisual * cptr) 
    {
        return cptr->colormap_size;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getColormapSize
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getColormapSize (JNIEnv *env, jclass cls, jint 
        obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_colormap_size (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_bits_per_rgb (GdkVisual * cptr) 
    {
        return cptr->bits_per_rgb;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getBitsPerRgb
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getBitsPerRgb (JNIEnv *env, jclass cls, jint obj)
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_bits_per_rgb (obj_g));
            return result_j;
        }
    }

    guint32 GdkVisual_get_red_mask (GdkVisual * cptr) 
    {
        return cptr->red_mask;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getRedMask
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getRedMask (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_red_mask (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_red_shift (GdkVisual * cptr) 
    {
        return cptr->red_shift;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getRedShift
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getRedShift (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_red_shift (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_red_prec (GdkVisual * cptr) 
    {
        return cptr->red_prec;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getRedPrec
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getRedPrec (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_red_prec (obj_g));
            return result_j;
        }
    }

    guint32 GdkVisual_get_green_mask (GdkVisual * cptr) 
    {
        return cptr->green_mask;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getGreenMask
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getGreenMask (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_green_mask (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_green_shift (GdkVisual * cptr) 
    {
        return cptr->green_shift;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getGreenShift
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getGreenShift (JNIEnv *env, jclass cls, jint obj)
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_green_shift (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_green_prec (GdkVisual * cptr) 
    {
        return cptr->green_prec;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getGreenPrec
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getGreenPrec (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_green_prec (obj_g));
            return result_j;
        }
    }

    guint32 GdkVisual_get_blue_mask (GdkVisual * cptr) 
    {
        return cptr->blue_mask;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getBlueMask
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getBlueMask (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_blue_mask (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_blue_shift (GdkVisual * cptr) 
    {
        return cptr->blue_shift;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getBlueShift
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getBlueShift (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_blue_shift (obj_g));
            return result_j;
        }
    }

    gint32 GdkVisual_get_blue_prec (GdkVisual * cptr) 
    {
        return cptr->blue_prec;
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    getBluePrec
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_getBluePrec (JNIEnv *env, jclass cls, jint obj) 
    {
        GdkVisual *obj_g = (GdkVisual *)obj;
        {
            jint result_j = (jint) (GdkVisual_get_blue_prec (obj_g));
            return result_j;
        }
    }

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

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    gdk_visual_get_best_depth
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_gdk_1visual_1get_1best_1depth (JNIEnv *env, 
        jclass cls) 
    {
        {
            jint result_j = (jint) (gdk_visual_get_best_depth ());
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    gdk_visual_get_best_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_gdk_1visual_1get_1best_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            jint result_j = (jint) (gdk_visual_get_best_type ());
            return result_j;
        }
    }

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

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

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    gdk_visual_get_best_with_depth
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_gdk_1visual_1get_1best_1with_1depth (JNIEnv 
        *env, jclass cls, jint depth) 
    {
        gint32 depth_g = (gint32) depth;
        {
            return (jint)gdk_visual_get_best_with_depth (depth_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    gdk_visual_get_best_with_type
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_gdk_1visual_1get_1best_1with_1type (JNIEnv *env, 
        jclass cls, jint visualType) 
    {
        GdkVisualType visualType_g = (GdkVisualType) visualType;
        {
            return (jint)gdk_visual_get_best_with_type (visualType_g);
        }
    }

    /*
     * Class:     org.gnu.gdk.Visual
     * Method:    gdk_visual_get_best_with_both
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gdk_Visual_gdk_1visual_1get_1best_1with_1both (JNIEnv *env, 
        jclass cls, jint depth, jint visualType) 
    {
        gint32 depth_g = (gint32) depth;
        GdkVisualType visualType_g = (GdkVisualType) visualType;
        {
            return (jint)gdk_visual_get_best_with_both (depth_g, visualType_g);
        }
    }

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

#endif
