/*
 * 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-07-31 13:44:31 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <pango/pango.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif

    /*
     * Class:     org.gnu.pango.Color
     * Method:    getRed
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_Color_getRed (JNIEnv *env, jclass cls, jint obj) 
    {
        PangoColor *obj_g = (PangoColor *)obj;
        return (jint)obj_g->red;
    }

    /*
     * Class:     org.gnu.pango.Color
     * Method:    getGreen
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_Color_getGreen (JNIEnv *env, jclass cls, jint obj) 
    {
        PangoColor *obj_g = (PangoColor *)obj;
        return (jint)obj_g->green;
    }


    /*
     * Class:     org.gnu.pango.Color
     * Method:    getBlue
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_Color_getBlue (JNIEnv *env, jclass cls, jint obj) 
    {
        PangoColor *obj_g = (PangoColor *)obj;
        return (jint)obj_g->blue;
    }

    /*
     * Class:     org.gnu.pango.Color
     * Method:    pango_color_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_Color_pango_1color_1get_1type (JNIEnv *env, jclass 
        cls) 
    {
        {
            return (jint)pango_color_get_type ();
        }
    }

    /*
     * Class:     org.gnu.pango.Color
     * Method:    pango_color_copy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_Color_pango_1color_1copy (JNIEnv *env, jclass cls, 
        jint src) 
    {
        PangoColor *src_g = (PangoColor *)src;
        {
            return (jint)pango_color_copy (src_g);
        }
    }

    /*
     * Class:     org.gnu.pango.Color
     * Method:    pango_color_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_Color_pango_1color_1free (JNIEnv *env, jclass cls, 
        jint color) 
    {
        PangoColor *color_g = (PangoColor *)color;
        {
            pango_color_free (color_g);
        }
    }

    /*
     * Class:     org.gnu.pango.Color
     * Method:    pango_color_parse
     * Signature: (Ijava.lang.String;)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_pango_Color_pango_1color_1parse (JNIEnv *env, jclass 
        cls, jint color, jstring spec) 
    {
        gchar* spec_g = (gchar*)(*env)->GetStringUTFChars(env, spec, 0);
        jboolean result_j = (jboolean) (pango_color_parse ((PangoColor*)color, spec_g));
        (*env)->ReleaseStringUTFChars(env, spec, spec_g);
        return result_j;
    }


#ifdef __cplusplus
}

#endif
