/*
 * 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:25 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.Viewport
     * Method:    gtk_viewport_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1get_1type (JNIEnv *env, jclass 
        cls) 
    {
        {
            return (jint)gtk_viewport_get_type ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_new
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1new (JNIEnv *env, jclass cls, 
        jint hadjustment, jint vadjustment) 
    {
        GtkAdjustment *hadjustment_g = (GtkAdjustment *)hadjustment;
        GtkAdjustment *vadjustment_g = (GtkAdjustment *)vadjustment;
        {
            return (jint)gtk_viewport_new (hadjustment_g, vadjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_get_hadjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1get_1hadjustment (JNIEnv *env, 
        jclass cls, jint viewport) 
    {
        GtkViewport *viewport_g = (GtkViewport *)viewport;
        {
            return (jint)gtk_viewport_get_hadjustment (viewport_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_set_hadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1set_1hadjustment (JNIEnv *env, 
        jclass cls, jint viewport, jint adjustment) 
    {
        GtkViewport *viewport_g = (GtkViewport *)viewport;
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_viewport_set_hadjustment (viewport_g, adjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_get_vadjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1get_1vadjustment (JNIEnv *env, 
        jclass cls, jint viewport) 
    {
        GtkViewport *viewport_g = (GtkViewport *)viewport;
        {
            return (jint)gtk_viewport_get_vadjustment (viewport_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_set_vadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1set_1vadjustment (JNIEnv *env, 
        jclass cls, jint viewport, jint adjustment) 
    {
        GtkViewport *viewport_g = (GtkViewport *)viewport;
        GtkAdjustment *adjustment_g = (GtkAdjustment *)adjustment;
        {
            gtk_viewport_set_vadjustment (viewport_g, adjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_set_shadow_type
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1set_1shadow_1type (JNIEnv *env, 
        jclass cls, jint viewport, jint type) 
    {
        GtkViewport *viewport_g = (GtkViewport *)viewport;
        GtkShadowType type_g = (GtkShadowType) type;
        {
            gtk_viewport_set_shadow_type (viewport_g, type_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Viewport
     * Method:    gtk_viewport_get_shadow_type
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Viewport_gtk_1viewport_1get_1shadow_1type (JNIEnv *env, 
        jclass cls, jint viewport) 
    {
        GtkViewport *viewport_g = (GtkViewport *)viewport;
        {
            jint result_j = (jint) (gtk_viewport_get_shadow_type (viewport_g));
            return result_j;
        }
    }

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

#endif
