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

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_new
     * Signature: ()I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1new (JNIEnv *env, jclass cls) 
    {
        {
            return (jint)gtk_calendar_new ();
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_select_month
     * Signature: (III)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1select_1month (JNIEnv *env, 
        jclass cls, jint calendar, jint month, jint year) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        guint32 month_g = (guint32) month;
        guint32 year_g = (guint32) year;
        {
            jint result_j = (jint) (gtk_calendar_select_month (calendar_g, month_g, year_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_select_day
     * Signature: (II)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1select_1day (JNIEnv *env, 
        jclass cls, jint calendar, jint day) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        guint32 day_g = (guint32) day;
        {
            gtk_calendar_select_day (calendar_g, day_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_mark_day
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1mark_1day (JNIEnv *env, jclass 
        cls, jint calendar, jint day) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        guint32 day_g = (guint32) day;
        {
            jint result_j = (jint) (gtk_calendar_mark_day (calendar_g, day_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_unmark_day
     * Signature: (II)I
     */
    JNIEXPORT jint JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1unmark_1day (JNIEnv *env, 
        jclass cls, jint calendar, jint day) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        guint32 day_g = (guint32) day;
        {
            jint result_j = (jint) (gtk_calendar_unmark_day (calendar_g, day_g));
            return result_j;
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_clear_marks
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1clear_1marks (JNIEnv *env, 
        jclass cls, jint calendar) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        {
            gtk_calendar_clear_marks (calendar_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_get_date
     * Signature: (I[Lint ;[Lint ;[Lint ;)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1get_1date (JNIEnv *env, jclass 
        cls, jint calendar, jintArray year, jintArray month, jintArray day) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        gint *year_g = (gint *) (*env)->GetIntArrayElements (env, year, NULL);
        gint *month_g = (gint *) (*env)->GetIntArrayElements (env, month, NULL);
        gint *day_g = (gint *) (*env)->GetIntArrayElements (env, day, NULL);
        {
            gtk_calendar_get_date (calendar_g, year_g, month_g, day_g);
            (*env)->ReleaseIntArrayElements (env, year, (jint *) year_g, 0);
            (*env)->ReleaseIntArrayElements (env, month, (jint *) month_g, 0);
            (*env)->ReleaseIntArrayElements (env, day, (jint *) day_g, 0);
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_freeze
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1freeze (JNIEnv *env, jclass 
        cls, jint calendar) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        {
            gtk_calendar_freeze (calendar_g);
        }
    }

    /*
     * Class:     org.gnu.gtk.Calendar
     * Method:    gtk_calendar_thaw
     * Signature: (I)V
     */
    JNIEXPORT void JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1thaw (JNIEnv *env, jclass cls, 
        jint calendar) 
    {
        GtkCalendar *calendar_g = (GtkCalendar *)calendar;
        {
            gtk_calendar_thaw (calendar_g);
        }
    }

/*
 * Class:     org.gnu.gtk.Calendar
 * Method:    gtk_calendar_set_display_options
 * Signature: (II)V
 */
JNIEXPORT void JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1set_1display_1options (
    JNIEnv *env, jclass cls, jint calendar, jint flags) 
{
    GtkCalendar *calendar_g = (GtkCalendar *)calendar;
    GtkCalendarDisplayOptions flags_g = (GtkCalendarDisplayOptions) flags;
    gtk_calendar_set_display_options (calendar_g, flags_g);
}

/*
 * Class:     org_gnu_gtk_Calendar
 * Method:    gtk_calendar_get_display_options
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_org_gnu_gtk_Calendar_gtk_1calendar_1get_1display_1options
  (JNIEnv *env, jclass cls, jint calendar)
{
	return (jint)gtk_calendar_get_display_options((GtkCalendar*)calendar);
}
                                                                                


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

#endif
