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

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

	/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_get_string_from_iter
 * Signature: (II)Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1get_1string_1from_1iter
  (JNIEnv *env, jclass cls, jint model, jint iter)
{
	return (*env)->NewStringUTF(env, gtk_tree_model_get_string_from_iter((GtkTreeModel*)model, (GtkTreeIter*)iter));
}


/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_get_path
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1get_1path
  (JNIEnv *env, jclass cls, jint model, jint iter)
{
	return (jint)gtk_tree_model_get_path((GtkTreeModel*)model, (GtkTreeIter*)iter);
}


/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_iter_next
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1iter_1next
  (JNIEnv *env, jclass cls, jint model, jint iter)
{
	GtkTreeIter* i = (GtkTreeIter*)iter;
	gboolean value = gtk_tree_model_iter_next((GtkTreeModel*)model, i);
	if (TRUE == value)
		return (jint)i;
	else
		return (jint)-1;
}
                                                                                                                            
/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_iter_children
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1iter_1children
  (JNIEnv *env, jclass cls, jint model, jint parent)
{
	GtkTreeIter* iter = (GtkTreeIter*)g_malloc(sizeof(GtkTreeIter));
	gboolean value = gtk_tree_model_iter_children((GtkTreeModel*)model, iter, (GtkTreeIter*)parent);
	if (TRUE == value)
		return (jint)iter;
	else
		return (jint)-1;
}
                                                                                                                            
/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_iter_has_child
 * Signature: (II)Z
 */
JNIEXPORT jboolean JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1iter_1has_1child
  (JNIEnv *env, jclass cls, jint model, jint iter)
{
	return (jboolean)gtk_tree_model_iter_has_child((GtkTreeModel*)model, (GtkTreeIter*)iter);
}
                                                                                                                            
/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_iter_n_children
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1iter_1n_1children
  (JNIEnv *env, jclass cls, jint model, jint iter)
{
	return (jint)gtk_tree_model_iter_n_children((GtkTreeModel*)model, (GtkTreeIter*)iter);
}
                                                                                                                            
/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_iter_nth_child
 * Signature: (III)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1iter_1nth_1child
  (JNIEnv *env, jclass cls, jint model, jint parent, jint n)
{
	GtkTreeIter* iter = (GtkTreeIter*)g_malloc(sizeof(GtkTreeIter));
	gboolean value = gtk_tree_model_iter_nth_child((GtkTreeModel*)model, iter, (GtkTreeIter*)parent, (gint)n);
	if (TRUE == value)
		return (jint)iter;
	else
		return (jint)-1;
}
                                                                                                                            
/*
 * Class:     org_gnu_gtk_TreeModel
 * Method:    gtk_tree_model_iter_parent
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1model_1iter_1parent
  (JNIEnv *env, jclass cls, jint model, jint child)
{
	GtkTreeIter* parent = (GtkTreeIter*)g_malloc(sizeof(GtkTreeIter));
	gboolean value = gtk_tree_model_iter_parent((GtkTreeModel*)model, parent, (GtkTreeIter*)child);
	if (TRUE == value)
		return (jint)parent;
	else
		return (jint)-1;
}
                                                
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.gtk.TreeIter
     * Method:    gtk_tree_iter_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1iter_1get_1type (JNIEnv *env, 
        jclass cls) 
    {
        {
            return (jint)gtk_tree_iter_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeIter
     * Method:    gtk_tree_iter_copy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1iter_1copy (JNIEnv *env, jclass 
        cls, jint iter) 
    {
        GtkTreeIter *iter_g = (GtkTreeIter *)iter;
        {
            return (jint)gtk_tree_iter_copy (iter_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeIter
     * Method:    gtk_tree_iter_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_TreeIter_gtk_1tree_1iter_1free (JNIEnv *env, jclass 
        cls, jint iter) 
    {
        GtkTreeIter *iter_g = (GtkTreeIter *)iter;
        {
            gtk_tree_iter_free (iter_g);
        }
    }

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

#endif
