/*
 * 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-02 09:42:22 EDT
 */

#include <jni.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1new (JNIEnv *env, jclass 
        cls) 
    {
        {
            return (jint)gtk_icon_source_new ();
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_copy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1copy (JNIEnv *env, jclass 
        cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            return (jint)gtk_icon_source_copy (source_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1free (JNIEnv *env, jclass 
        cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            gtk_icon_source_free (source_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_filename
     * Signature: (Ijava.lang.String;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1filename (JNIEnv 
        *env, jclass cls, jint source, jstring filename) 
    {
        gchar* filename_g = (gchar*)(*env)->GetStringUTFChars(env, filename, 0);
        gtk_icon_source_set_filename ((GtkIconSource*)source, filename_g);
        (*env)->ReleaseStringUTFChars(env, filename, filename_g);
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_pixbuf
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1pixbuf (JNIEnv *env, 
        jclass cls, jint source, jint pixbuf) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        GdkPixbuf *pixbuf_g = (GdkPixbuf *)pixbuf;
        {
            gtk_icon_source_set_pixbuf (source_g, pixbuf_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_filename
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1filename (
        JNIEnv *env, jclass cls, jint source) 
    {
        gchar *result_g = (gchar*)gtk_icon_source_get_filename ((GtkIconSource*)source);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_pixbuf
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1pixbuf (JNIEnv *env, 
        jclass cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            return (jint)gtk_icon_source_get_pixbuf (source_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_direction_wildcarded
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1direction_1wildcarded (JNIEnv *env, jclass 
        cls, jint source, jboolean setting) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_icon_source_set_direction_wildcarded (source_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_state_wildcarded
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1state_1wildcarded (
        JNIEnv *env, jclass cls, jint source, jboolean setting) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_icon_source_set_state_wildcarded (source_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_size_wildcarded
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1size_1wildcarded (
        JNIEnv *env, jclass cls, jint source, jboolean setting) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        gboolean setting_g = (gboolean) setting;
        {
            gtk_icon_source_set_size_wildcarded (source_g, setting_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_size_wildcarded
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1size_1wildcarded (
        JNIEnv *env, jclass cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            jboolean result_j = (jboolean) (gtk_icon_source_get_size_wildcarded (source_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_state_wildcarded
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1state_1wildcarded (JNIEnv *env, jclass cls, 
        jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            jboolean result_j = (jboolean) (gtk_icon_source_get_state_wildcarded (source_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_direction_wildcarded
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1direction_1wildcarded (JNIEnv *env, jclass 
        cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            jboolean result_j = (jboolean) (gtk_icon_source_get_direction_wildcarded (source_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_direction
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1direction (JNIEnv 
        *env, jclass cls, jint source, jint direction) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        GtkTextDirection direction_g = (GtkTextDirection) direction;
        {
            gtk_icon_source_set_direction (source_g, direction_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_state
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1state (JNIEnv *env, 
        jclass cls, jint source, jint state) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        GtkStateType state_g = (GtkStateType) state;
        {
            gtk_icon_source_set_state (source_g, state_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_set_size
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1set_1size (JNIEnv *env, 
        jclass cls, jint source, jint size) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        GtkIconSize size_g = (GtkIconSize) size;
        {
            gtk_icon_source_set_size (source_g, size_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_direction
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1direction (JNIEnv 
        *env, jclass cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            jint result_j = (jint) (gtk_icon_source_get_direction (source_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_state
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1state (JNIEnv *env, 
        jclass cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            jint result_j = (jint) (gtk_icon_source_get_state (source_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.IconSource
     * Method:    gtk_icon_source_get_size
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_IconSource_gtk_1icon_1source_1get_1size (JNIEnv *env, 
        jclass cls, jint source) 
    {
        GtkIconSource *source_g = (GtkIconSource *)source;
        {
            jint result_j = (jint) (gtk_icon_source_get_size (source_g));
            return result_j;
        }
    }

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

#endif
