/*
 * 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:22 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.ScrolledWindow
     * Method:    gtk_scrolled_window_get_type
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1get_1type (JNIEnv 
        *env, jclass cls) 
    {
        {
            return (jint)gtk_scrolled_window_get_type ();
        }
    }

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

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_set_hadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1set_1hadjustment (
        JNIEnv *env, jclass cls, jint scrolled_window, jint hadjustment) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        GtkAdjustment *hadjustment_g = (GtkAdjustment *)hadjustment;
        {
            gtk_scrolled_window_set_hadjustment (scrolled_window_g, hadjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_set_vadjustment
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1set_1vadjustment (
        JNIEnv *env, jclass cls, jint scrolled_window, jint vadjustment) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        GtkAdjustment *vadjustment_g = (GtkAdjustment *)vadjustment;
        {
            gtk_scrolled_window_set_vadjustment (scrolled_window_g, vadjustment_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_get_hadjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1get_1hadjustment (
        JNIEnv *env, jclass cls, jint scrolled_window) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        {
            return (jint)gtk_scrolled_window_get_hadjustment (scrolled_window_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_get_vadjustment
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1get_1vadjustment (
        JNIEnv *env, jclass cls, jint scrolled_window) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        {
            return (jint)gtk_scrolled_window_get_vadjustment (scrolled_window_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_set_policy
     * Signature: (III)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1set_1policy (
        JNIEnv *env, jclass cls, jint scrolled_window, jint hscrollbarPolicy, jint vscrollbarPolicy)
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        GtkPolicyType hscrollbarPolicy_g = (GtkPolicyType) hscrollbarPolicy;
        GtkPolicyType vscrollbarPolicy_g = (GtkPolicyType) vscrollbarPolicy;
        {
            gtk_scrolled_window_set_policy (scrolled_window_g, hscrollbarPolicy_g, 
                vscrollbarPolicy_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_get_policy
     * Signature: (I[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1get_1policy (
        JNIEnv *env, jclass cls, jint scrolled_window, jintArray hscrollbarPolicy, jintArray 
        vscrollbarPolicy) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        gint *hscrollbarPolicy_g_g = (gint *) (*env)->GetIntArrayElements (env, hscrollbarPolicy, 
            NULL);
        GtkPolicyType *hscrollbarPolicy_g = (GtkPolicyType *)hscrollbarPolicy_g_g;
        gint *vscrollbarPolicy_g_g = (gint *) (*env)->GetIntArrayElements (env, vscrollbarPolicy, 
            NULL);
        GtkPolicyType *vscrollbarPolicy_g = (GtkPolicyType *)vscrollbarPolicy_g_g;
        {
            gtk_scrolled_window_get_policy (scrolled_window_g, hscrollbarPolicy_g, 
                vscrollbarPolicy_g);
            (*env)->ReleaseIntArrayElements (env, hscrollbarPolicy, (jint*)hscrollbarPolicy_g_g, 0);
            (*env)->ReleaseIntArrayElements (env, vscrollbarPolicy, (jint*)vscrollbarPolicy_g_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_set_placement
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1set_1placement (
        JNIEnv *env, jclass cls, jint scrolled_window, jint windowPlacement) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        GtkCornerType windowPlacement_g = (GtkCornerType) windowPlacement;
        {
            gtk_scrolled_window_set_placement (scrolled_window_g, windowPlacement_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_get_placement
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1get_1placement (
        JNIEnv *env, jclass cls, jint scrolled_window) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        {
            jint result_j = (jint) (gtk_scrolled_window_get_placement (scrolled_window_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_set_shadow_type
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1set_1shadow_1type (
        JNIEnv *env, jclass cls, jint scrolled_window, jint type) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        GtkShadowType type_g = (GtkShadowType) type;
        {
            gtk_scrolled_window_set_shadow_type (scrolled_window_g, type_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_get_shadow_type
     * Signature: (I)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1get_1shadow_1type (
        JNIEnv *env, jclass cls, jint scrolled_window) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        {
            jint result_j = (jint) (gtk_scrolled_window_get_shadow_type (scrolled_window_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.ScrolledWindow
     * Method:    gtk_scrolled_window_add_with_viewport
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL 
    Java_org_gnu_gtk_ScrolledWindow_gtk_1scrolled_1window_1add_1with_1viewport (JNIEnv *env, jclass 
        cls, jint scrolled_window, jint child) 
    {
        GtkScrolledWindow *scrolled_window_g = (GtkScrolledWindow *)scrolled_window;
        GtkWidget *child_g = (GtkWidget *)child;
        {
            gtk_scrolled_window_add_with_viewport (scrolled_window_g, child_g);
        }
    }

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

#endif
