/*
 * 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:26 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.TreeModelSort
     * Method:    gtk_tree_model_sort_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_tree_model_sort_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_new_with_model
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1new_1with_1model (
        JNIEnv *env, jclass cls, jint childModel) 
    {
        GtkTreeModel *childModel_g = (GtkTreeModel *)childModel;
        {
            return (jint)gtk_tree_model_sort_new_with_model (childModel_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_get_model
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1get_1model (
        JNIEnv *env, jclass cls, jint treeModel) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        {
            return (jint)gtk_tree_model_sort_get_model (treeModel_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_convert_child_path_to_path
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1convert_1child_1path_1to_1path (JNIEnv 
        *env, jclass cls, jint treeModel, jint childPath) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        GtkTreePath *childPath_g = (GtkTreePath *)childPath;
        {
            return (jint)gtk_tree_model_sort_convert_child_path_to_path (treeModel_g, childPath_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_convert_child_iter_to_iter
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1convert_1child_1iter_1to_1iter (JNIEnv 
        *env, jclass cls, jint treeModel, jint sortIter, jint childIter) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        GtkTreeIter *sortIter_g = (GtkTreeIter *)sortIter;
        GtkTreeIter *childIter_g = (GtkTreeIter *)childIter;
        {
            gtk_tree_model_sort_convert_child_iter_to_iter (treeModel_g, sortIter_g, childIter_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_convert_path_to_child_path
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL 
    Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1convert_1path_1to_1child_1path (JNIEnv 
        *env, jclass cls, jint treeModel, jint sortedPath) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        GtkTreePath *sortedPath_g = (GtkTreePath *)sortedPath;
        {
            return (jint)gtk_tree_model_sort_convert_path_to_child_path (treeModel_g, sortedPath_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_convert_iter_to_child_iter
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1convert_1iter_1to_1child_1iter (JNIEnv 
        *env, jclass cls, jint treeModel, jint childIter, jint sortedIter) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        GtkTreeIter *childIter_g = (GtkTreeIter *)childIter;
        GtkTreeIter *sortedIter_g = (GtkTreeIter *)sortedIter;
        {
            gtk_tree_model_sort_convert_iter_to_child_iter (treeModel_g, childIter_g, sortedIter_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_reset_default_sort_func
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1reset_1default_1sort_1func (JNIEnv *env, 
        jclass cls, jint treeModel) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        {
            gtk_tree_model_sort_reset_default_sort_func (treeModel_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.TreeModelSort
     * Method:    gtk_tree_model_sort_clear_cache
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_TreeModelSort_gtk_1tree_1model_1sort_1clear_1cache (
        JNIEnv *env, jclass cls, jint treeModel) 
    {
        GtkTreeModelSort *treeModel_g = (GtkTreeModelSort *)treeModel;
        {
            gtk_tree_model_sort_clear_cache (treeModel_g);
        }
    }

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

#endif
