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

#include <jni.h>
#include <sys/types.h>
#include <pango/pango.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" 
{
#endif
    JNIEXPORT jint JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1get_1tabAlignment (JNIEnv *env, 
        jclass cls, jint tabArray, jint tabIndex) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        gint32 tabIndex_g = (gint32) tabIndex;
        PangoAlignment *alignment_g = (PangoAlignment *) g_malloc(sizeof(PangoAlignment));
        {
            pango_tab_array_get_tab (tabArray_g, tabIndex_g, 
				     alignment_g, NULL);
			return (jint) alignment_g;
        }
    }
    JNIEXPORT jint JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1get_1tabLocation (JNIEnv *env, 
        jclass cls, jint tabArray, jint tabIndex) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        gint32 tabIndex_g = (gint32) tabIndex;
        gint *location_g = NULL; 
        {
            pango_tab_array_get_tab (tabArray_g, tabIndex_g, 
				     NULL, location_g);
			return (jint) location_g;
        }
    }
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_new
     * Signature: (IZ)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1new (JNIEnv *env, jclass 
        cls, jint initialSize, jboolean positionInPixels) 
    {
        gint32 initialSize_g = (gint32) initialSize;
        gboolean positionInPixels_g = (gboolean) positionInPixels;
        {
            return (jint)pango_tab_array_new (initialSize_g, positionInPixels_g);
        }
    }

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

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_copy
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1copy (JNIEnv *env, jclass 
        cls, jint src) 
    {
        PangoTabArray *src_g = (PangoTabArray *)src;
        {
            return (jint)pango_tab_array_copy (src_g);
        }
    }

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_free
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1free (JNIEnv *env, jclass 
        cls, jint tabArray) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        {
            pango_tab_array_free (tabArray_g);
        }
    }

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_get_size
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1get_1size (JNIEnv *env, 
        jclass cls, jint tabArray) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        {
            jint result_j = (jint) (pango_tab_array_get_size (tabArray_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_resize
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1resize (JNIEnv *env, 
        jclass cls, jint tabArray, jint newSize) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        gint32 newSize_g = (gint32) newSize;
        {
            pango_tab_array_resize (tabArray_g, newSize_g);
        }
    }

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_set_tab
     * Signature: (IIII)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1set_1tab (JNIEnv *env, 
        jclass cls, jint tabArray, jint tabIndex, jint alignment, jint location) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        gint32 tabIndex_g = (gint32) tabIndex;
        PangoTabAlign alignment_g = (PangoTabAlign) alignment;
        gint32 location_g = (gint32) location;
        {
            pango_tab_array_set_tab (tabArray_g, tabIndex_g, alignment_g, location_g);
        }
    }

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_get_tab
     * Signature: (III[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_pango_TabArray_pango_1tab_1array_1get_1tab (JNIEnv *env, 
        jclass cls, jint tabArray, jint tabIndex, jint alignment, jintArray location) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        gint32 tabIndex_g = (gint32) tabIndex;
        PangoAlignment *alignment_g = (PangoAlignment *) alignment;
        gint *location_g = (gint *) (*env)->GetIntArrayElements (env, location, NULL);
        {
            pango_tab_array_get_tab (tabArray_g, tabIndex_g, 
				     alignment_g, location_g);
            (*env)->ReleaseIntArrayElements (env, location, (jint *) location_g, 0);
        }
    }

    /*
     * Class:     org.gnu.pango.TabArray
     * Method:    pango_tab_array_get_positions_in_pixels
     * Signature: (I)Z
     */
    JNIEXPORT jboolean JNICALL 
    Java_org_gnu_pango_TabArray_pango_1tab_1array_1get_1positions_1in_1pixels (JNIEnv *env, jclass 
        cls, jint tabArray) 
    {
        PangoTabArray *tabArray_g = (PangoTabArray *)tabArray;
        {
            jboolean result_j = (jboolean) (pango_tab_array_get_positions_in_pixels (tabArray_g));
            return result_j;
        }
    }

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

#endif
