/*
 * 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-08 10:21:56 EDT
 */

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

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_configure
     * Signature: (IIIIjava.lang.String;java.lang.String;ZZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1configure (
        JNIEnv *env, jclass cls, jint iti, jint x, jint y, jint width, jstring fontname, 
        jstring text, jboolean isEditable, jboolean isStatic) 
    {
        gchar* fontname_g = (gchar*)(*env)->GetStringUTFChars(env, fontname, 0);
        gchar* text_g = (gchar*)(*env)->GetStringUTFChars(env, text, 0);
        gnome_icon_text_item_configure ((GnomeIconTextItem*)iti, (gint32)x, 
        		(gint32)y, (gint32)width, fontname_g, text_g, 
                (gboolean)isEditable, (gboolean)isStatic);
        if (fontname) (*env)->ReleaseStringUTFChars(env, fontname, fontname_g);
        if (text) (*env)->ReleaseStringUTFChars(env, text, text_g);
    }

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_setxy
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1setxy (JNIEnv 
        *env, jclass cls, jint iti, jint x, jint y) 
    {
        GnomeIconTextItem *iti_g = (GnomeIconTextItem *)iti;
        gint32 x_g = (gint32) x;
        gint32 y_g = (gint32) y;
        {
            gnome_icon_text_item_setxy (iti_g, x_g, y_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_select
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1select (JNIEnv 
        *env, jclass cls, jint iti, jint sel) 
    {
        GnomeIconTextItem *iti_g = (GnomeIconTextItem *)iti;
        gint32 sel_g = (gint32) sel;
        {
            gnome_icon_text_item_select (iti_g, sel_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_focus
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1focus (JNIEnv 
        *env, jclass cls, jint iti, jint focused) 
    {
        GnomeIconTextItem *iti_g = (GnomeIconTextItem *)iti;
        gint32 focused_g = (gint32) focused;
        {
            gnome_icon_text_item_focus (iti_g, focused_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_get_text
     * Signature: (I)java.lang.String;
     */
    JNIEXPORT jstring JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1get_1text (
        JNIEnv *env, jclass cls, jint iti) 
    {
        gchar *result_g = (gchar*)gnome_icon_text_item_get_text ((GnomeIconTextItem*)iti);
        return (*env)->NewStringUTF(env, result_g);
    }

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_start_editing
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1start_1editing (
        JNIEnv *env, jclass cls, jint iti) 
    {
        GnomeIconTextItem *iti_g = (GnomeIconTextItem *)iti;
        {
            gnome_icon_text_item_start_editing (iti_g);
        }
    }

    /*
     * Class:     org.gnu.gnome.IconTextItem
     * Method:    gnome_icon_text_item_stop_editing
     * Signature: (IZ)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1stop_1editing (
        JNIEnv *env, jclass cls, jint iti, jboolean accept) 
    {
        GnomeIconTextItem *iti_g = (GnomeIconTextItem *)iti;
        gboolean accept_g = (gboolean) accept;
        {
            gnome_icon_text_item_stop_editing (iti_g, accept_g);
        }
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/

/*
 * Class:     org_gnu_gnome_IconTextItem
 * Method:    gnome_icon_text_item_get_editable
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gnome_IconTextItem_gnome_1icon_1text_1item_1get_1editable
  (JNIEnv *env, jclass cls, jint iti)
{
	return (jint)gnome_icon_text_item_get_editable((GnomeIconTextItem*)iti);
}

#ifdef __cplusplus
}

#endif
