blob: cea7169846eb75807c1848606982494b7fbeca31 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2022 IBM Corporation and others. All rights reserved.
* The contents of this file are made available under the terms
* of the GNU Lesser General Public License (LGPL) Version 2.1 that
* accompanies this distribution (lgpl-v21.txt). The LGPL is also
* available at http://www.gnu.org/licenses/lgpl.html. If the version
* of the LGPL at http://www.gnu.org is different to the version of
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
/* DO NOT EDIT - your changes will be lost. */
#include "swt.h"
#include "os_structs.h"
#include "os_stats.h"
#ifndef GDK_NATIVE
#define GDK_NATIVE(func) Java_org_eclipse_swt_internal_gtk_GDK_##func
#endif
#ifndef NO_GDK_1EVENT_1TYPE
JNIEXPORT jint JNICALL GDK_NATIVE(GDK_1EVENT_1TYPE)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, GDK_1EVENT_1TYPE_FUNC);
rc = (jint)GDK_EVENT_TYPE((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, GDK_1EVENT_1TYPE_FUNC);
return rc;
}
#endif
#ifndef NO_GDK_1EVENT_1WINDOW
JNIEXPORT jlong JNICALL GDK_NATIVE(GDK_1EVENT_1WINDOW)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, GDK_1EVENT_1WINDOW_FUNC);
rc = (jlong)GDK_EVENT_WINDOW((GdkEventAny *)arg0);
GDK_NATIVE_EXIT(env, that, GDK_1EVENT_1WINDOW_FUNC);
return rc;
}
#endif
#ifndef NO_GDK_1IS_1X11_1DISPLAY
JNIEXPORT jboolean JNICALL GDK_NATIVE(GDK_1IS_1X11_1DISPLAY)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, GDK_1IS_1X11_1DISPLAY_FUNC);
rc = (jboolean)GDK_IS_X11_DISPLAY((GdkDisplay *)arg0);
GDK_NATIVE_EXIT(env, that, GDK_1IS_1X11_1DISPLAY_FUNC);
return rc;
}
#endif
#ifndef NO_GDK_1TYPE_1PIXBUF
JNIEXPORT jlong JNICALL GDK_NATIVE(GDK_1TYPE_1PIXBUF)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, GDK_1TYPE_1PIXBUF_FUNC);
rc = (jlong)GDK_TYPE_PIXBUF;
GDK_NATIVE_EXIT(env, that, GDK_1TYPE_1PIXBUF_FUNC);
return rc;
}
#endif
#ifndef NO_GDK_1TYPE_1RGBA
JNIEXPORT jlong JNICALL GDK_NATIVE(GDK_1TYPE_1RGBA)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, GDK_1TYPE_1RGBA_FUNC);
rc = (jlong)GDK_TYPE_RGBA;
GDK_NATIVE_EXIT(env, that, GDK_1TYPE_1RGBA_FUNC);
return rc;
}
#endif
#ifndef NO_GdkKeymapKey_1sizeof
JNIEXPORT jint JNICALL GDK_NATIVE(GdkKeymapKey_1sizeof)
(JNIEnv *env, jclass that)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, GdkKeymapKey_1sizeof_FUNC);
rc = (jint)GdkKeymapKey_sizeof();
GDK_NATIVE_EXIT(env, that, GdkKeymapKey_1sizeof_FUNC);
return rc;
}
#endif
#ifndef NO_GdkRGBA_1sizeof
JNIEXPORT jint JNICALL GDK_NATIVE(GdkRGBA_1sizeof)
(JNIEnv *env, jclass that)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, GdkRGBA_1sizeof_FUNC);
rc = (jint)GdkRGBA_sizeof();
GDK_NATIVE_EXIT(env, that, GdkRGBA_1sizeof_FUNC);
return rc;
}
#endif
#ifndef NO_GdkRectangle_1sizeof
JNIEXPORT jint JNICALL GDK_NATIVE(GdkRectangle_1sizeof)
(JNIEnv *env, jclass that)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, GdkRectangle_1sizeof_FUNC);
rc = (jint)GdkRectangle_sizeof();
GDK_NATIVE_EXIT(env, that, GdkRectangle_1sizeof_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1atom_1intern
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1atom_1intern)
(JNIEnv *env, jclass that, jbyteArray arg0, jboolean arg1)
{
jbyte *lparg0=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1atom_1intern_FUNC);
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
/*
rc = (jlong)gdk_atom_intern((const gchar *)lparg0, arg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_atom_intern)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(const gchar *, jboolean))fp)((const gchar *)lparg0, arg1);
}
}
fail:
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, JNI_ABORT);
GDK_NATIVE_EXIT(env, that, gdk_1atom_1intern_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1atom_1name
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1atom_1name)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1atom_1name_FUNC);
rc = (jlong)gdk_atom_name((GdkAtom)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1atom_1name_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1button_1event_1get_1button
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1button_1event_1get_1button)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1button_1event_1get_1button_FUNC);
rc = (jint)gdk_button_event_get_button((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1button_1event_1get_1button_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cairo_1create
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1cairo_1create)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1create_FUNC);
/*
rc = (jlong)gdk_cairo_create((GdkWindow *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_cairo_create)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkWindow *))fp)((GdkWindow *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1create_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cairo_1get_1clip_1rectangle
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1cairo_1get_1clip_1rectangle)
(JNIEnv *env, jclass that, jlong arg0, jobject arg1)
{
GdkRectangle _arg1, *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1get_1clip_1rectangle_FUNC);
if (arg1) if ((lparg1 = &_arg1) == NULL) goto fail;
/*
rc = (jboolean)gdk_cairo_get_clip_rectangle((cairo_t *)arg0, (GdkRectangle *)lparg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_cairo_get_clip_rectangle)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(cairo_t *, GdkRectangle *))fp)((cairo_t *)arg0, (GdkRectangle *)lparg1);
}
}
fail:
if (arg1 && lparg1) setGdkRectangleFields(env, arg1, lparg1);
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1get_1clip_1rectangle_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cairo_1region
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1cairo_1region)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1region_FUNC);
gdk_cairo_region((cairo_t *)arg0, (cairo_region_t *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1region_FUNC);
}
#endif
#ifndef NO_gdk_1cairo_1region_1create_1from_1surface
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1cairo_1region_1create_1from_1surface)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1region_1create_1from_1surface_FUNC);
rc = (jlong)gdk_cairo_region_create_from_surface((cairo_surface_t *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1region_1create_1from_1surface_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cairo_1set_1source_1pixbuf
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1cairo_1set_1source_1pixbuf)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jdouble arg2, jdouble arg3)
{
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1set_1source_1pixbuf_FUNC);
gdk_cairo_set_source_pixbuf((cairo_t *)arg0, (const GdkPixbuf *)arg1, (gdouble)arg2, (gdouble)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1set_1source_1pixbuf_FUNC);
}
#endif
#ifndef NO_gdk_1cairo_1set_1source_1rgba
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1cairo_1set_1source_1rgba)
(JNIEnv *env, jclass that, jlong arg0, jobject arg1)
{
GdkRGBA _arg1, *lparg1=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1set_1source_1rgba_FUNC);
if (arg1) if ((lparg1 = getGdkRGBAFields(env, arg1, &_arg1)) == NULL) goto fail;
gdk_cairo_set_source_rgba((cairo_t *)arg0, (const GdkRGBA *)lparg1);
fail:
if (arg1 && lparg1) setGdkRGBAFields(env, arg1, lparg1);
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1set_1source_1rgba_FUNC);
}
#endif
#ifndef NO_gdk_1cairo_1set_1source_1window
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1cairo_1set_1source_1window)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jint arg3)
{
GDK_NATIVE_ENTER(env, that, gdk_1cairo_1set_1source_1window_FUNC);
gdk_cairo_set_source_window((cairo_t *)arg0, (GdkWindow *)arg1, (gdouble)arg2, (gdouble)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1cairo_1set_1source_1window_FUNC);
}
#endif
#ifndef NO_gdk_1clipboard_1set_1content
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1clipboard_1set_1content)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1clipboard_1set_1content_FUNC);
rc = (jlong)gdk_clipboard_set_content((GdkClipboard *)arg0, (GdkContentProvider *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1clipboard_1set_1content_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1crossing_1event_1get_1mode
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1crossing_1event_1get_1mode)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1crossing_1event_1get_1mode_FUNC);
rc = (jint)gdk_crossing_event_get_mode((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1crossing_1event_1get_1mode_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cursor_1new_1from_1name__JLjava_lang_String_2
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1cursor_1new_1from_1name__JLjava_lang_String_2)
(JNIEnv *env, jclass that, jlong arg0, jstring arg1)
{
const char *lparg1= NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cursor_1new_1from_1name__JLjava_lang_String_2_FUNC);
if (arg1) if ((lparg1 = (*env)->GetStringUTFChars(env, arg1, NULL)) == NULL) goto fail;
rc = (jlong)gdk_cursor_new_from_name((GdkDisplay *)arg0, (const gchar *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseStringUTFChars(env, arg1, lparg1);
GDK_NATIVE_EXIT(env, that, gdk_1cursor_1new_1from_1name__JLjava_lang_String_2_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cursor_1new_1from_1name__Ljava_lang_String_2J
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1cursor_1new_1from_1name__Ljava_lang_String_2J)
(JNIEnv *env, jclass that, jstring arg0, jlong arg1)
{
const char *lparg0= NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cursor_1new_1from_1name__Ljava_lang_String_2J_FUNC);
if (arg0) if ((lparg0 = (*env)->GetStringUTFChars(env, arg0, NULL)) == NULL) goto fail;
rc = (jlong)gdk_cursor_new_from_name((const gchar *)lparg0, (GdkCursor *)arg1);
fail:
if (arg0 && lparg0) (*env)->ReleaseStringUTFChars(env, arg0, lparg0);
GDK_NATIVE_EXIT(env, that, gdk_1cursor_1new_1from_1name__Ljava_lang_String_2J_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cursor_1new_1from_1pixbuf
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1cursor_1new_1from_1pixbuf)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jint arg3)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cursor_1new_1from_1pixbuf_FUNC);
rc = (jlong)gdk_cursor_new_from_pixbuf((GdkDisplay *)arg0, (GdkPixbuf *)arg1, (gint)arg2, (gint)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1cursor_1new_1from_1pixbuf_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1cursor_1new_1from_1texture
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1cursor_1new_1from_1texture)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jlong arg3)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1cursor_1new_1from_1texture_FUNC);
rc = (jlong)gdk_cursor_new_from_texture((GdkTexture *)arg0, (gint)arg1, (gint)arg2, (GdkCursor *)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1cursor_1new_1from_1texture_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1device_1get_1associated_1device
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1device_1get_1associated_1device)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1device_1get_1associated_1device_FUNC);
/*
rc = (jlong)gdk_device_get_associated_device((GdkDevice *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_device_get_associated_device)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDevice *))fp)((GdkDevice *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1device_1get_1associated_1device_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1device_1get_1seat
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1device_1get_1seat)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1device_1get_1seat_FUNC);
rc = (jlong)gdk_device_get_seat((GdkDevice *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1device_1get_1seat_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1device_1get_1surface_1at_1position
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1device_1get_1surface_1at_1position)
(JNIEnv *env, jclass that, jlong arg0, jdoubleArray arg1, jdoubleArray arg2)
{
jdouble *lparg1=NULL;
jdouble *lparg2=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1device_1get_1surface_1at_1position_FUNC);
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
/*
rc = (jlong)gdk_device_get_surface_at_position((GdkDevice *)arg0, (double *)lparg1, (double *)lparg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_device_get_surface_at_position)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDevice *, double *, double *))fp)((GdkDevice *)arg0, (double *)lparg1, (double *)lparg2);
}
}
fail:
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1device_1get_1surface_1at_1position_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1device_1get_1window_1at_1position
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1device_1get_1window_1at_1position)
(JNIEnv *env, jclass that, jlong arg0, jintArray arg1, jintArray arg2)
{
jint *lparg1=NULL;
jint *lparg2=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1device_1get_1window_1at_1position_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
/*
rc = (jlong)gdk_device_get_window_at_position((GdkDevice *)arg0, (gint *)lparg1, (gint *)lparg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_device_get_window_at_position)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDevice *, gint *, gint *))fp)((GdkDevice *)arg0, (gint *)lparg1, (gint *)lparg2);
}
}
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1device_1get_1window_1at_1position_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1device_1warp
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1device_1warp)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jint arg3)
{
GDK_NATIVE_ENTER(env, that, gdk_1device_1warp_FUNC);
/*
gdk_device_warp((GdkDevice *)arg0, (GdkScreen *)arg1, (gint)arg2, (gint)arg3);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_device_warp)
if (fp) {
((void (CALLING_CONVENTION*)(GdkDevice *, GdkScreen *, gint, gint))fp)((GdkDevice *)arg0, (GdkScreen *)arg1, (gint)arg2, (gint)arg3);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1device_1warp_FUNC);
}
#endif
#ifndef NO_gdk_1display_1beep
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1display_1beep)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1display_1beep_FUNC);
gdk_display_beep((GdkDisplay *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1display_1beep_FUNC);
}
#endif
#ifndef NO_gdk_1display_1get_1clipboard
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1clipboard)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1clipboard_FUNC);
/*
rc = (jlong)gdk_display_get_clipboard((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_clipboard)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1clipboard_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1default
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1default)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1default_FUNC);
rc = (jlong)gdk_display_get_default();
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1default_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1default_1group
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1default_1group)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1default_1group_FUNC);
/*
rc = (jlong)gdk_display_get_default_group((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_default_group)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1default_1group_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1default_1seat
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1default_1seat)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1default_1seat_FUNC);
/*
rc = (jlong)gdk_display_get_default_seat(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_default_seat)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1default_1seat_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1monitor
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1monitor)
(JNIEnv *env, jclass that, jlong arg0, jint arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1monitor_FUNC);
/*
rc = (jlong)gdk_display_get_monitor((GdkDisplay *)arg0, arg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_monitor)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *, jint))fp)((GdkDisplay *)arg0, arg1);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1monitor_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1monitor_1at_1point
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1monitor_1at_1point)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1monitor_1at_1point_FUNC);
/*
rc = (jlong)gdk_display_get_monitor_at_point((GdkDisplay *)arg0, arg1, arg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_monitor_at_point)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *, jint, jint))fp)((GdkDisplay *)arg0, arg1, arg2);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1monitor_1at_1point_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1monitor_1at_1surface
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1monitor_1at_1surface)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1monitor_1at_1surface_FUNC);
rc = (jlong)gdk_display_get_monitor_at_surface((GdkDisplay *)arg0, (GdkSurface *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1monitor_1at_1surface_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1monitor_1at_1window
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1monitor_1at_1window)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1monitor_1at_1window_FUNC);
/*
rc = (jlong)gdk_display_get_monitor_at_window((GdkDisplay *)arg0, (GdkWindow *)arg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_monitor_at_window)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *, GdkWindow *))fp)((GdkDisplay *)arg0, (GdkWindow *)arg1);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1monitor_1at_1window_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1monitors
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1monitors)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1monitors_FUNC);
/*
rc = (jlong)gdk_display_get_monitors((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_monitors)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1monitors_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1n_1monitors
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1display_1get_1n_1monitors)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1n_1monitors_FUNC);
/*
rc = (jint)gdk_display_get_n_monitors((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_n_monitors)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1n_1monitors_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1primary_1clipboard
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1primary_1clipboard)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1primary_1clipboard_FUNC);
/*
rc = (jlong)gdk_display_get_primary_clipboard((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_primary_clipboard)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1primary_1clipboard_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1get_1primary_1monitor
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1display_1get_1primary_1monitor)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1get_1primary_1monitor_FUNC);
/*
rc = (jlong)gdk_display_get_primary_monitor((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_get_primary_monitor)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1get_1primary_1monitor_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1is_1composited
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1display_1is_1composited)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1is_1composited_FUNC);
/*
rc = (jboolean)gdk_display_is_composited((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_is_composited)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1is_1composited_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1map_1keyval
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1display_1map_1keyval)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jlongArray arg2, jintArray arg3)
{
jlong *lparg2=NULL;
jint *lparg3=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1map_1keyval_FUNC);
if (arg2) if ((lparg2 = (*env)->GetLongArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
/*
rc = (jboolean)gdk_display_map_keyval((GdkDisplay *)arg0, (guint)arg1, (GdkKeymapKey**)lparg2, (gint*)lparg3);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_map_keyval)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(GdkDisplay *, guint, GdkKeymapKey**, gint*))fp)((GdkDisplay *)arg0, (guint)arg1, (GdkKeymapKey**)lparg2, (gint*)lparg3);
}
}
fail:
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseLongArrayElements(env, arg2, lparg2, 0);
GDK_NATIVE_EXIT(env, that, gdk_1display_1map_1keyval_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1display_1put_1event
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1display_1put_1event)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1display_1put_1event_FUNC);
gdk_display_put_event((GdkDisplay *)arg0, (GdkEvent *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1display_1put_1event_FUNC);
}
#endif
#ifndef NO_gdk_1display_1supports_1cursor_1color
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1display_1supports_1cursor_1color)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1display_1supports_1cursor_1color_FUNC);
/*
rc = (jboolean)gdk_display_supports_cursor_color((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_display_supports_cursor_color)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1display_1supports_1cursor_1color_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1drag_1context_1get_1actions
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1drag_1context_1get_1actions)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1drag_1context_1get_1actions_FUNC);
/*
rc = (jint)gdk_drag_context_get_actions(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_drag_context_get_actions)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1drag_1context_1get_1actions_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1drag_1context_1get_1dest_1window
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1drag_1context_1get_1dest_1window)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1drag_1context_1get_1dest_1window_FUNC);
rc = (jlong)gdk_drag_context_get_dest_window((GdkDragContext *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1drag_1context_1get_1dest_1window_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1drag_1context_1get_1selected_1action
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1drag_1context_1get_1selected_1action)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1drag_1context_1get_1selected_1action_FUNC);
/*
rc = (jint)gdk_drag_context_get_selected_action(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_drag_context_get_selected_action)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1drag_1context_1get_1selected_1action_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1drag_1context_1list_1targets
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1drag_1context_1list_1targets)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1drag_1context_1list_1targets_FUNC);
rc = (jlong)gdk_drag_context_list_targets((GdkDragContext *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1drag_1context_1list_1targets_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1drag_1status
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1drag_1status)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2)
{
GDK_NATIVE_ENTER(env, that, gdk_1drag_1status_FUNC);
gdk_drag_status((GdkDragContext *)arg0, (GdkDragAction)arg1, (guint32)arg2);
GDK_NATIVE_EXIT(env, that, gdk_1drag_1status_FUNC);
}
#endif
#ifndef NO_gdk_1event_1copy
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1copy)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1copy_FUNC);
rc = (jlong)gdk_event_copy((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1copy_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1free
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1event_1free)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1event_1free_FUNC);
gdk_event_free((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1free_FUNC);
}
#endif
#ifndef NO_gdk_1event_1get
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1get)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_FUNC);
rc = (jlong)gdk_event_get();
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1button
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1button)
(JNIEnv *env, jclass that, jlong arg0, jintArray arg1)
{
jint *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1button_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_button((GdkEvent *)arg0, (guint *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1button_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1coords
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1coords)
(JNIEnv *env, jclass that, jlong arg0, jdoubleArray arg1, jdoubleArray arg2)
{
jdouble *lparg1=NULL;
jdouble *lparg2=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1coords_FUNC);
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_coords((GdkEvent *)arg0, (gdouble *)lparg1, (gdouble *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1coords_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1event_1type
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1event_1get_1event_1type)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1event_1type_FUNC);
/*
rc = (jint)gdk_event_get_event_type((GdkEvent *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_event_get_event_type)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkEvent *))fp)((GdkEvent *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1event_1type_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1keycode
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1keycode)
(JNIEnv *env, jclass that, jlong arg0, jshortArray arg1)
{
jshort *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1keycode_FUNC);
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_keycode((GdkEvent *)arg0, (guint16 *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1keycode_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1keyval
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1keyval)
(JNIEnv *env, jclass that, jlong arg0, jintArray arg1)
{
jint *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1keyval_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_keyval((GdkEvent *)arg0, (guint *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1keyval_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1modifier_1state
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1event_1get_1modifier_1state)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1modifier_1state_FUNC);
rc = (jint)gdk_event_get_modifier_state((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1modifier_1state_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1position
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1position)
(JNIEnv *env, jclass that, jlong arg0, jdoubleArray arg1, jdoubleArray arg2)
{
jdouble *lparg1=NULL;
jdouble *lparg2=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1position_FUNC);
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_position((GdkEvent *)arg0, (double *)lparg1, (double *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1position_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1root_1coords
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1root_1coords)
(JNIEnv *env, jclass that, jlong arg0, jdoubleArray arg1, jdoubleArray arg2)
{
jdouble *lparg1=NULL;
jdouble *lparg2=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1root_1coords_FUNC);
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_root_coords((GdkEvent *)arg0, (gdouble *)lparg1, (gdouble *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1root_1coords_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1scroll_1deltas
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1scroll_1deltas)
(JNIEnv *env, jclass that, jlong arg0, jdoubleArray arg1, jdoubleArray arg2)
{
jdouble *lparg1=NULL;
jdouble *lparg2=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1scroll_1deltas_FUNC);
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_scroll_deltas((const GdkEvent *)arg0, (gdouble *)lparg1, (gdouble *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1scroll_1deltas_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1scroll_1direction
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1scroll_1direction)
(JNIEnv *env, jclass that, jlong arg0, jintArray arg1)
{
jint *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1scroll_1direction_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_scroll_direction((const GdkEvent *)arg0, (GdkScrollDirection *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1scroll_1direction_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1seat
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1get_1seat)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1seat_FUNC);
/*
rc = (jlong)gdk_event_get_seat(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_event_get_seat)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1seat_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1state
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1event_1get_1state)
(JNIEnv *env, jclass that, jlong arg0, jintArray arg1)
{
jint *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1state_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_event_get_state((GdkEvent *)arg0, (GdkModifierType *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1state_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1surface
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1get_1surface)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1surface_FUNC);
rc = (jlong)gdk_event_get_surface((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1surface_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1time
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1event_1get_1time)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1time_FUNC);
rc = (jint)gdk_event_get_time((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1time_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1get_1window
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1get_1window)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1get_1window_FUNC);
rc = (jlong)gdk_event_get_window((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1get_1window_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1handler_1set
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1event_1handler_1set)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jlong arg2)
{
GDK_NATIVE_ENTER(env, that, gdk_1event_1handler_1set_FUNC);
/*
gdk_event_handler_set(arg0, arg1, arg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_event_handler_set)
if (fp) {
((void (CALLING_CONVENTION*)(jlong, jlong, jlong))fp)(arg0, arg1, arg2);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1event_1handler_1set_FUNC);
}
#endif
#ifndef NO_gdk_1event_1new
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1new)
(JNIEnv *env, jclass that, jint arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1new_FUNC);
rc = (jlong)gdk_event_new(arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1new_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1peek
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1peek)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1peek_FUNC);
rc = (jlong)gdk_event_peek();
GDK_NATIVE_EXIT(env, that, gdk_1event_1peek_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1put
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1event_1put)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1event_1put_FUNC);
gdk_event_put((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1put_FUNC);
}
#endif
#ifndef NO_gdk_1event_1ref
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1event_1ref)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1event_1ref_FUNC);
rc = (jlong)gdk_event_ref((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1ref_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1event_1set_1device
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1event_1set_1device)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1event_1set_1device_FUNC);
gdk_event_set_device((GdkEvent *)arg0, (GdkDevice *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1event_1set_1device_FUNC);
}
#endif
#ifndef NO_gdk_1event_1unref
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1event_1unref)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1event_1unref_FUNC);
gdk_event_unref((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1event_1unref_FUNC);
}
#endif
#ifndef NO_gdk_1focus_1event_1get_1in
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1focus_1event_1get_1in)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1focus_1event_1get_1in_FUNC);
rc = (jboolean)gdk_focus_event_get_in((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1focus_1event_1get_1in_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1get_1default_1root_1window
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1get_1default_1root_1window)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1get_1default_1root_1window_FUNC);
rc = (jlong)gdk_get_default_root_window();
GDK_NATIVE_EXIT(env, that, gdk_1get_1default_1root_1window_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1key_1event_1get_1keycode
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1key_1event_1get_1keycode)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1key_1event_1get_1keycode_FUNC);
rc = (jint)gdk_key_event_get_keycode((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1key_1event_1get_1keycode_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1key_1event_1get_1keyval
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1key_1event_1get_1keyval)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1key_1event_1get_1keyval_FUNC);
rc = (jint)gdk_key_event_get_keyval((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1key_1event_1get_1keyval_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1key_1event_1get_1layout
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1key_1event_1get_1layout)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1key_1event_1get_1layout_FUNC);
rc = (jint)gdk_key_event_get_layout((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1key_1event_1get_1layout_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1keymap_1get_1entries_1for_1keyval
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1keymap_1get_1entries_1for_1keyval)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jlongArray arg2, jintArray arg3)
{
jlong *lparg2=NULL;
jint *lparg3=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1keymap_1get_1entries_1for_1keyval_FUNC);
if (arg2) if ((lparg2 = (*env)->GetLongArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
/*
rc = (jboolean)gdk_keymap_get_entries_for_keyval((GdkKeymap*)arg0, (guint)arg1, (GdkKeymapKey**)lparg2, (gint*)lparg3);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_keymap_get_entries_for_keyval)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(GdkKeymap*, guint, GdkKeymapKey**, gint*))fp)((GdkKeymap*)arg0, (guint)arg1, (GdkKeymapKey**)lparg2, (gint*)lparg3);
}
}
fail:
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseLongArrayElements(env, arg2, lparg2, 0);
GDK_NATIVE_EXIT(env, that, gdk_1keymap_1get_1entries_1for_1keyval_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1keymap_1get_1for_1display
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1keymap_1get_1for_1display)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1keymap_1get_1for_1display_FUNC);
/*
rc = (jlong)gdk_keymap_get_for_display((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_keymap_get_for_display)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1keymap_1get_1for_1display_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1keymap_1translate_1keyboard_1state
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1keymap_1translate_1keyboard_1state)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5, jintArray arg6, jintArray arg7)
{
jint *lparg4=NULL;
jint *lparg5=NULL;
jint *lparg6=NULL;
jint *lparg7=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1keymap_1translate_1keyboard_1state_FUNC);
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
/*
rc = (jboolean)gdk_keymap_translate_keyboard_state((GdkKeymap *)arg0, (guint)arg1, (GdkModifierType)arg2, (gint)arg3, (guint *)lparg4, (gint *)lparg5, (gint *)lparg6, (GdkModifierType *)lparg7);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_keymap_translate_keyboard_state)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(GdkKeymap *, guint, GdkModifierType, gint, guint *, gint *, gint *, GdkModifierType *))fp)((GdkKeymap *)arg0, (guint)arg1, (GdkModifierType)arg2, (gint)arg3, (guint *)lparg4, (gint *)lparg5, (gint *)lparg6, (GdkModifierType *)lparg7);
}
}
fail:
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
GDK_NATIVE_EXIT(env, that, gdk_1keymap_1translate_1keyboard_1state_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1keyval_1name
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1keyval_1name)
(JNIEnv *env, jclass that, jint arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1keyval_1name_FUNC);
rc = (jlong)gdk_keyval_name((guint)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1keyval_1name_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1keyval_1to_1lower
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1keyval_1to_1lower)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1keyval_1to_1lower_FUNC);
rc = (jlong)gdk_keyval_to_lower(arg0);
GDK_NATIVE_EXIT(env, that, gdk_1keyval_1to_1lower_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1keyval_1to_1unicode
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1keyval_1to_1unicode)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1keyval_1to_1unicode_FUNC);
rc = (jlong)gdk_keyval_to_unicode(arg0);
GDK_NATIVE_EXIT(env, that, gdk_1keyval_1to_1unicode_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1monitor_1get_1geometry
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1monitor_1get_1geometry)
(JNIEnv *env, jclass that, jlong arg0, jobject arg1)
{
GdkRectangle _arg1, *lparg1=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1monitor_1get_1geometry_FUNC);
if (arg1) if ((lparg1 = &_arg1) == NULL) goto fail;
/*
gdk_monitor_get_geometry(arg0, lparg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_monitor_get_geometry)
if (fp) {
((void (CALLING_CONVENTION*)(jlong, GdkRectangle *))fp)(arg0, lparg1);
}
}
fail:
if (arg1 && lparg1) setGdkRectangleFields(env, arg1, lparg1);
GDK_NATIVE_EXIT(env, that, gdk_1monitor_1get_1geometry_FUNC);
}
#endif
#ifndef NO_gdk_1monitor_1get_1scale_1factor
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1monitor_1get_1scale_1factor)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1monitor_1get_1scale_1factor_FUNC);
/*
rc = (jint)gdk_monitor_get_scale_factor(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_monitor_get_scale_factor)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1monitor_1get_1scale_1factor_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1monitor_1get_1workarea
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1monitor_1get_1workarea)
(JNIEnv *env, jclass that, jlong arg0, jobject arg1)
{
GdkRectangle _arg1, *lparg1=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1monitor_1get_1workarea_FUNC);
if (arg1) if ((lparg1 = &_arg1) == NULL) goto fail;
/*
gdk_monitor_get_workarea(arg0, lparg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_monitor_get_workarea)
if (fp) {
((void (CALLING_CONVENTION*)(jlong, GdkRectangle *))fp)(arg0, lparg1);
}
}
fail:
if (arg1 && lparg1) setGdkRectangleFields(env, arg1, lparg1);
GDK_NATIVE_EXIT(env, that, gdk_1monitor_1get_1workarea_FUNC);
}
#endif
#ifndef NO_gdk_1pango_1context_1get
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pango_1context_1get)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pango_1context_1get_FUNC);
/*
rc = (jlong)gdk_pango_context_get();
*/
{
GDK_LOAD_FUNCTION(fp, gdk_pango_context_get)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)())fp)();
}
}
GDK_NATIVE_EXIT(env, that, gdk_1pango_1context_1get_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pango_1layout_1get_1clip_1region
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pango_1layout_1get_1clip_1region)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jintArray arg3, jint arg4)
{
jint *lparg3=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pango_1layout_1get_1clip_1region_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jlong)gdk_pango_layout_get_clip_region((PangoLayout *)arg0, arg1, arg2, (gint *)lparg3, arg4);
fail:
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
GDK_NATIVE_EXIT(env, that, gdk_1pango_1layout_1get_1clip_1region_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1animation_1get_1iter
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1animation_1get_1iter)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1animation_1get_1iter_FUNC);
rc = (jlong)gdk_pixbuf_animation_get_iter((GdkPixbufAnimation *)arg0, (const GTimeVal *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1animation_1get_1iter_FUNC);
return rc;
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1pixbuf_1animation_1get_1static_1image
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1animation_1get_1static_1image)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1animation_1get_1static_1image_FUNC);
rc = (jlong)gdk_pixbuf_animation_get_static_image((GdkPixbufAnimation *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1animation_1get_1static_1image_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1animation_1is_1static_1image
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1pixbuf_1animation_1is_1static_1image)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1animation_1is_1static_1image_FUNC);
rc = (jboolean)gdk_pixbuf_animation_is_static_image((GdkPixbufAnimation *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1animation_1is_1static_1image_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1animation_1iter_1advance
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1pixbuf_1animation_1iter_1advance)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1animation_1iter_1advance_FUNC);
rc = (jboolean)gdk_pixbuf_animation_iter_advance((GdkPixbufAnimationIter *)arg0, (const GTimeVal *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1animation_1iter_1advance_FUNC);
return rc;
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1pixbuf_1animation_1iter_1get_1delay_1time
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1pixbuf_1animation_1iter_1get_1delay_1time)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1animation_1iter_1get_1delay_1time_FUNC);
rc = (jint)gdk_pixbuf_animation_iter_get_delay_time((GdkPixbufAnimationIter *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1animation_1iter_1get_1delay_1time_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1animation_1iter_1get_1pixbuf
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1animation_1iter_1get_1pixbuf)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1animation_1iter_1get_1pixbuf_FUNC);
rc = (jlong)gdk_pixbuf_animation_iter_get_pixbuf((GdkPixbufAnimationIter *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1animation_1iter_1get_1pixbuf_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1copy
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1copy)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1copy_FUNC);
rc = (jlong)gdk_pixbuf_copy((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1copy_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1copy_1area
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1pixbuf_1copy_1area)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3, jint arg4, jlong arg5, jint arg6, jint arg7)
{
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1copy_1area_FUNC);
gdk_pixbuf_copy_area((GdkPixbuf *)arg0, arg1, arg2, arg3, arg4, (GdkPixbuf *)arg5, arg6, arg7);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1copy_1area_FUNC);
}
#endif
#ifndef NO_gdk_1pixbuf_1format_1get_1name
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1format_1get_1name)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1format_1get_1name_FUNC);
rc = (jlong)gdk_pixbuf_format_get_name((GdkPixbufFormat *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1format_1get_1name_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1bits_1per_1sample
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1bits_1per_1sample)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1bits_1per_1sample_FUNC);
rc = (jint)gdk_pixbuf_get_bits_per_sample((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1bits_1per_1sample_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1from_1surface
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1from_1surface)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1from_1surface_FUNC);
/*
rc = (jlong)gdk_pixbuf_get_from_surface((cairo_surface_t *)arg0, arg1, arg2, arg3, arg4);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_pixbuf_get_from_surface)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(cairo_surface_t *, jint, jint, jint, jint))fp)((cairo_surface_t *)arg0, arg1, arg2, arg3, arg4);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1from_1surface_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1from_1texture
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1from_1texture)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1from_1texture_FUNC);
/*
rc = (jlong)gdk_pixbuf_get_from_texture((GdkTexture *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_pixbuf_get_from_texture)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkTexture *))fp)((GdkTexture *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1from_1texture_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1from_1window
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1from_1window)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1from_1window_FUNC);
/*
rc = (jlong)gdk_pixbuf_get_from_window((GdkWindow *)arg0, arg1, arg2, arg3, arg4);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_pixbuf_get_from_window)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkWindow *, jint, jint, jint, jint))fp)((GdkWindow *)arg0, arg1, arg2, arg3, arg4);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1from_1window_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1has_1alpha
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1has_1alpha)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1has_1alpha_FUNC);
rc = (jboolean)gdk_pixbuf_get_has_alpha((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1has_1alpha_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1height
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1height)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1height_FUNC);
rc = (jint)gdk_pixbuf_get_height((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1height_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1n_1channels
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1n_1channels)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1n_1channels_FUNC);
rc = (jint)gdk_pixbuf_get_n_channels((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1n_1channels_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1pixels
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1pixels)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1pixels_FUNC);
rc = (jlong)gdk_pixbuf_get_pixels((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1pixels_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1rowstride
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1rowstride)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1rowstride_FUNC);
rc = (jint)gdk_pixbuf_get_rowstride((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1rowstride_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1get_1width
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1pixbuf_1get_1width)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1get_1width_FUNC);
rc = (jint)gdk_pixbuf_get_width((const GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1get_1width_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1loader_1close
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1pixbuf_1loader_1close)
(JNIEnv *env, jclass that, jlong arg0, jlongArray arg1)
{
jlong *lparg1=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1loader_1close_FUNC);
if (arg1) if ((lparg1 = (*env)->GetLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_pixbuf_loader_close((GdkPixbufLoader *)arg0, (GError **)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseLongArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1loader_1close_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1loader_1get_1animation
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1loader_1get_1animation)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1loader_1get_1animation_FUNC);
rc = (jlong)gdk_pixbuf_loader_get_animation((GdkPixbufLoader *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1loader_1get_1animation_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1loader_1get_1format
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1loader_1get_1format)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1loader_1get_1format_FUNC);
rc = (jlong)gdk_pixbuf_loader_get_format((GdkPixbufLoader *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1loader_1get_1format_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1loader_1get_1pixbuf
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1loader_1get_1pixbuf)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1loader_1get_1pixbuf_FUNC);
rc = (jlong)gdk_pixbuf_loader_get_pixbuf((GdkPixbufLoader *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1loader_1get_1pixbuf_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1loader_1new
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1loader_1new)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1loader_1new_FUNC);
rc = (jlong)gdk_pixbuf_loader_new();
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1loader_1new_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1loader_1write
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1pixbuf_1loader_1write)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jlongArray arg3)
{
jlong *lparg3=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1loader_1write_FUNC);
if (arg3) if ((lparg3 = (*env)->GetLongArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_pixbuf_loader_write((GdkPixbufLoader *)arg0, (const guchar *)arg1, (gsize)arg2, (GError **)lparg3);
fail:
if (arg3 && lparg3) (*env)->ReleaseLongArrayElements(env, arg3, lparg3, 0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1loader_1write_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1new
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1new)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jint arg2, jint arg3, jint arg4)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1new_FUNC);
rc = (jlong)gdk_pixbuf_new((GdkColorspace)arg0, (gboolean)arg1, arg2, arg3, arg4);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1new_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1new_1from_1data
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1new_1from_1data)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jboolean arg2, jint arg3, jint arg4, jint arg5, jint arg6, jlong arg7, jlong arg8)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1new_1from_1data_FUNC);
rc = (jlong)gdk_pixbuf_new_from_data((const guchar *)arg0, (GdkColorspace)arg1, (gboolean)arg2, arg3, arg4, arg5, arg6, (GdkPixbufDestroyNotify)arg7, (gpointer)arg8);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1new_1from_1data_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1new_1from_1file
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1new_1from_1file)
(JNIEnv *env, jclass that, jbyteArray arg0, jlongArray arg1)
{
jbyte *lparg0=NULL;
jlong *lparg1=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1new_1from_1file_FUNC);
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
if (arg1) if ((lparg1 = (*env)->GetLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jlong)gdk_pixbuf_new_from_file((const char *)lparg0, (GError**)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseLongArrayElements(env, arg1, lparg1, 0);
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1new_1from_1file_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1save_1to_1bufferv
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1pixbuf_1save_1to_1bufferv)
(JNIEnv *env, jclass that, jlong arg0, jlongArray arg1, jlongArray arg2, jbyteArray arg3, jlongArray arg4, jlongArray arg5, jlongArray arg6)
{
jlong *lparg1=NULL;
jlong *lparg2=NULL;
jbyte *lparg3=NULL;
jlong *lparg4=NULL;
jlong *lparg5=NULL;
jlong *lparg6=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1save_1to_1bufferv_FUNC);
if (arg1) if ((lparg1 = (*env)->GetLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetLongArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetLongArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetLongArrayElements(env, arg5, NULL)) == NULL) goto fail;
if (arg6) if ((lparg6 = (*env)->GetLongArrayElements(env, arg6, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_pixbuf_save_to_bufferv((GdkPixbuf *)arg0, (gchar **)lparg1, (gsize *)lparg2, (const char *)lparg3, (char **)lparg4, (char **)lparg5, (GError **)lparg6);
fail:
if (arg6 && lparg6) (*env)->ReleaseLongArrayElements(env, arg6, lparg6, 0);
if (arg5 && lparg5) (*env)->ReleaseLongArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseLongArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseLongArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseLongArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1save_1to_1bufferv_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1pixbuf_1scale_1simple
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1pixbuf_1scale_1simple)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1pixbuf_1scale_1simple_FUNC);
rc = (jlong)gdk_pixbuf_scale_simple((const GdkPixbuf *)arg0, arg1, arg2, (GdkInterpType)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1pixbuf_1scale_1simple_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1popup_1get_1parent
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1popup_1get_1parent)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1popup_1get_1parent_FUNC);
rc = (jlong)gdk_popup_get_parent((GdkPopup *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1popup_1get_1parent_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1popup_1layout_1new
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1popup_1layout_1new)
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
{
GdkRectangle _arg0, *lparg0=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1popup_1layout_1new_FUNC);
if (arg0) if ((lparg0 = getGdkRectangleFields(env, arg0, &_arg0)) == NULL) goto fail;
rc = (jlong)gdk_popup_layout_new((const GdkRectangle *)lparg0, (GdkGravity)arg1, (GdkGravity)arg2);
fail:
if (arg0 && lparg0) setGdkRectangleFields(env, arg0, lparg0);
GDK_NATIVE_EXIT(env, that, gdk_1popup_1layout_1new_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1popup_1present
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1popup_1present)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jlong arg3)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1popup_1present_FUNC);
rc = (jboolean)gdk_popup_present((GdkPopup *)arg0, arg1, arg2, (GdkPopupLayout *)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1popup_1present_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1property_1get
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1property_1get)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jlong arg2, jlong arg3, jlong arg4, jint arg5, jlongArray arg6, jintArray arg7, jintArray arg8, jlongArray arg9)
{
jlong *lparg6=NULL;
jint *lparg7=NULL;
jint *lparg8=NULL;
jlong *lparg9=NULL;
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1property_1get_FUNC);
if (arg6) if ((lparg6 = (*env)->GetLongArrayElements(env, arg6, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail;
if (arg9) if ((lparg9 = (*env)->GetLongArrayElements(env, arg9, NULL)) == NULL) goto fail;
rc = (jboolean)gdk_property_get((GdkWindow *)arg0, (GdkAtom)arg1, (GdkAtom)arg2, arg3, arg4, arg5, (GdkAtom *)lparg6, (gint *)lparg7, (gint *)lparg8, (guchar **)lparg9);
fail:
if (arg9 && lparg9) (*env)->ReleaseLongArrayElements(env, arg9, lparg9, 0);
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0);
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
if (arg6 && lparg6) (*env)->ReleaseLongArrayElements(env, arg6, lparg6, 0);
GDK_NATIVE_EXIT(env, that, gdk_1property_1get_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1rgba_1free
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1rgba_1free)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1rgba_1free_FUNC);
gdk_rgba_free((GdkRGBA *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1rgba_1free_FUNC);
}
#endif
#ifndef NO_gdk_1rgba_1parse
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1rgba_1parse)
(JNIEnv *env, jclass that, jobject arg0, jbyteArray arg1)
{
GdkRGBA _arg0, *lparg0=NULL;
jbyte *lparg1=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1rgba_1parse_FUNC);
if (arg0) if ((lparg0 = getGdkRGBAFields(env, arg0, &_arg0)) == NULL) goto fail;
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jlong)gdk_rgba_parse((GdkRGBA *)lparg0, (const gchar *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
if (arg0 && lparg0) setGdkRGBAFields(env, arg0, lparg0);
GDK_NATIVE_EXIT(env, that, gdk_1rgba_1parse_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1rgba_1to_1string
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1rgba_1to_1string)
(JNIEnv *env, jclass that, jobject arg0)
{
GdkRGBA _arg0, *lparg0=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1rgba_1to_1string_FUNC);
if (arg0) if ((lparg0 = getGdkRGBAFields(env, arg0, &_arg0)) == NULL) goto fail;
rc = (jlong)gdk_rgba_to_string((GdkRGBA *)lparg0);
fail:
if (arg0 && lparg0) setGdkRGBAFields(env, arg0, lparg0);
GDK_NATIVE_EXIT(env, that, gdk_1rgba_1to_1string_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1default
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1screen_1get_1default)
(JNIEnv *env, jclass that)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1default_FUNC);
rc = (jlong)gdk_screen_get_default();
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1default_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1monitor_1at_1point
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1get_1monitor_1at_1point)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1monitor_1at_1point_FUNC);
/*
rc = (jint)gdk_screen_get_monitor_at_point((GdkScreen *)arg0, (gint)arg1, (gint)arg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_monitor_at_point)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkScreen *, gint, gint))fp)((GdkScreen *)arg0, (gint)arg1, (gint)arg2);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1monitor_1at_1point_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1monitor_1at_1window
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1get_1monitor_1at_1window)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1monitor_1at_1window_FUNC);
/*
rc = (jint)gdk_screen_get_monitor_at_window((GdkScreen *)arg0, (GdkWindow *)arg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_monitor_at_window)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkScreen *, GdkWindow *))fp)((GdkScreen *)arg0, (GdkWindow *)arg1);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1monitor_1at_1window_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1monitor_1geometry
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1screen_1get_1monitor_1geometry)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jobject arg2)
{
GdkRectangle _arg2, *lparg2=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1monitor_1geometry_FUNC);
if (arg2) if ((lparg2 = &_arg2) == NULL) goto fail;
/*
gdk_screen_get_monitor_geometry((GdkScreen *)arg0, arg1, lparg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_monitor_geometry)
if (fp) {
((void (CALLING_CONVENTION*)(GdkScreen *, jint, GdkRectangle *))fp)((GdkScreen *)arg0, arg1, lparg2);
}
}
fail:
if (arg2 && lparg2) setGdkRectangleFields(env, arg2, lparg2);
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1monitor_1geometry_FUNC);
}
#endif
#ifndef NO_gdk_1screen_1get_1monitor_1scale_1factor
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1get_1monitor_1scale_1factor)
(JNIEnv *env, jclass that, jlong arg0, jint arg1)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1monitor_1scale_1factor_FUNC);
/*
rc = (jint)gdk_screen_get_monitor_scale_factor((GdkScreen *)arg0, (gint)arg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_monitor_scale_factor)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkScreen *, gint))fp)((GdkScreen *)arg0, (gint)arg1);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1monitor_1scale_1factor_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1monitor_1workarea
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1screen_1get_1monitor_1workarea)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jobject arg2)
{
GdkRectangle _arg2, *lparg2=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1monitor_1workarea_FUNC);
if (arg2) if ((lparg2 = &_arg2) == NULL) goto fail;
/*
gdk_screen_get_monitor_workarea((GdkScreen *)arg0, arg1, lparg2);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_monitor_workarea)
if (fp) {
((void (CALLING_CONVENTION*)(GdkScreen *, jint, GdkRectangle *))fp)((GdkScreen *)arg0, arg1, lparg2);
}
}
fail:
if (arg2 && lparg2) setGdkRectangleFields(env, arg2, lparg2);
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1monitor_1workarea_FUNC);
}
#endif
#ifndef NO_gdk_1screen_1get_1n_1monitors
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1get_1n_1monitors)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1n_1monitors_FUNC);
/*
rc = (jint)gdk_screen_get_n_monitors((GdkScreen *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_n_monitors)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkScreen *))fp)((GdkScreen *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1n_1monitors_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1primary_1monitor
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1get_1primary_1monitor)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1primary_1monitor_FUNC);
/*
rc = (jint)gdk_screen_get_primary_monitor((GdkScreen *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_get_primary_monitor)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(GdkScreen *))fp)((GdkScreen *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1primary_1monitor_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1resolution
JNIEXPORT jdouble JNICALL GDK_NATIVE(gdk_1screen_1get_1resolution)
(JNIEnv *env, jclass that, jlong arg0)
{
jdouble rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1resolution_FUNC);
rc = (jdouble)gdk_screen_get_resolution((GdkScreen *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1resolution_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1get_1system_1visual
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1screen_1get_1system_1visual)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1get_1system_1visual_FUNC);
rc = (jlong)gdk_screen_get_system_visual((GdkScreen *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1screen_1get_1system_1visual_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1height
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1height)
(JNIEnv *env, jclass that)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1height_FUNC);
/*
rc = (jint)gdk_screen_height();
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_height)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)())fp)();
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1height_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1is_1composited
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1screen_1is_1composited)
(JNIEnv *env, jclass that, jlong arg0)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1is_1composited_FUNC);
rc = (jboolean)gdk_screen_is_composited((GdkScreen *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1screen_1is_1composited_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1screen_1width
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1screen_1width)
(JNIEnv *env, jclass that)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1screen_1width_FUNC);
/*
rc = (jint)gdk_screen_width();
*/
{
GDK_LOAD_FUNCTION(fp, gdk_screen_width)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)())fp)();
}
}
GDK_NATIVE_EXIT(env, that, gdk_1screen_1width_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1scroll_1event_1get_1deltas
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1scroll_1event_1get_1deltas)
(JNIEnv *env, jclass that, jlong arg0, jdoubleArray arg1, jdoubleArray arg2)
{
jdouble *lparg1=NULL;
jdouble *lparg2=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1scroll_1event_1get_1deltas_FUNC);
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
gdk_scroll_event_get_deltas((GdkEvent *)arg0, lparg1, lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
GDK_NATIVE_EXIT(env, that, gdk_1scroll_1event_1get_1deltas_FUNC);
}
#endif
#ifndef NO_gdk_1scroll_1event_1get_1direction
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1scroll_1event_1get_1direction)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1scroll_1event_1get_1direction_FUNC);
rc = (jint)gdk_scroll_event_get_direction((GdkEvent *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1scroll_1event_1get_1direction_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1seat_1get_1keyboard
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1seat_1get_1keyboard)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1seat_1get_1keyboard_FUNC);
/*
rc = (jlong)gdk_seat_get_keyboard(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_seat_get_keyboard)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1seat_1get_1keyboard_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1seat_1get_1pointer
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1seat_1get_1pointer)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1seat_1get_1pointer_FUNC);
/*
rc = (jlong)gdk_seat_get_pointer(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_seat_get_pointer)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1seat_1get_1pointer_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1seat_1grab
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1seat_1grab)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jboolean arg3, jlong arg4, jlong arg5, jlong arg6, jlong arg7)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1seat_1grab_FUNC);
/*
rc = (jint)gdk_seat_grab(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_seat_grab)
if (fp) {
rc = (jint)((jint (CALLING_CONVENTION*)(jlong, jlong, jint, jboolean, jlong, jlong, jlong, jlong))fp)(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1seat_1grab_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1seat_1ungrab
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1seat_1ungrab)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1seat_1ungrab_FUNC);
/*
gdk_seat_ungrab(arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_seat_ungrab)
if (fp) {
((void (CALLING_CONVENTION*)(jlong))fp)(arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1seat_1ungrab_FUNC);
}
#endif
#ifndef NO_gdk_1selection_1owner_1get
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1selection_1owner_1get)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1selection_1owner_1get_FUNC);
gdk_selection_owner_get((GdkAtom)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1selection_1owner_1get_FUNC);
}
#endif
#ifndef NO_gdk_1selection_1owner_1set
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1selection_1owner_1set)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jboolean arg3)
{
GDK_NATIVE_ENTER(env, that, gdk_1selection_1owner_1set_FUNC);
gdk_selection_owner_set((GdkWindow *)arg0, (GdkAtom)arg1, (guint32)arg2, (gboolean)arg3);
GDK_NATIVE_EXIT(env, that, gdk_1selection_1owner_1set_FUNC);
}
#endif
#ifndef NO_gdk_1set_1program_1class
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1set_1program_1class)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1set_1program_1class_FUNC);
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
/*
gdk_set_program_class((const char *)lparg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_set_program_class)
if (fp) {
((void (CALLING_CONVENTION*)(const char *))fp)((const char *)lparg0);
}
}
fail:
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
GDK_NATIVE_EXIT(env, that, gdk_1set_1program_1class_FUNC);
}
#endif
#ifndef NO_gdk_1surface_1create_1similar_1surface
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1surface_1create_1similar_1surface)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1create_1similar_1surface_FUNC);
rc = (jlong)gdk_surface_create_similar_surface((GdkSurface *)arg0, (cairo_content_t)arg1, arg2, arg3);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1create_1similar_1surface_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1surface_1destroy
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1surface_1destroy)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1surface_1destroy_FUNC);
gdk_surface_destroy((GdkSurface *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1destroy_FUNC);
}
#endif
#ifndef NO_gdk_1surface_1get_1device_1position
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1surface_1get_1device_1position)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jdoubleArray arg2, jdoubleArray arg3, jintArray arg4)
{
jdouble *lparg2=NULL;
jdouble *lparg3=NULL;
jint *lparg4=NULL;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1get_1device_1position_FUNC);
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
gdk_surface_get_device_position((GdkSurface *)arg0, (GdkDevice *)arg1, (double *)lparg2, (double *)lparg3, (GdkModifierType *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1get_1device_1position_FUNC);
}
#endif
#ifndef NO_gdk_1surface_1get_1display
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1surface_1get_1display)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1get_1display_FUNC);
rc = (jlong)gdk_surface_get_display((GdkSurface *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1get_1display_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1surface_1get_1height
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1surface_1get_1height)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1get_1height_FUNC);
rc = (jint)gdk_surface_get_height((GdkSurface *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1get_1height_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1surface_1get_1width
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1surface_1get_1width)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1get_1width_FUNC);
rc = (jint)gdk_surface_get_width((GdkSurface *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1get_1width_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1surface_1hide
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1surface_1hide)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1surface_1hide_FUNC);
gdk_surface_hide((GdkSurface *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1hide_FUNC);
}
#endif
#ifndef NO_gdk_1surface_1new_1popup
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1surface_1new_1popup)
(JNIEnv *env, jclass that, jlong arg0, jboolean arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1new_1popup_FUNC);
rc = (jlong)gdk_surface_new_popup((GdkSurface *)arg0, arg1);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1new_1popup_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1surface_1new_1toplevel
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1surface_1new_1toplevel)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1surface_1new_1toplevel_FUNC);
/*
rc = (jlong)gdk_surface_new_toplevel((GdkDisplay *)arg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_surface_new_toplevel)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(GdkDisplay *))fp)((GdkDisplay *)arg0);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1surface_1new_1toplevel_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1surface_1set_1cursor
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1surface_1set_1cursor)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1surface_1set_1cursor_FUNC);
gdk_surface_set_cursor((GdkSurface *)arg0, (GdkCursor *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1set_1cursor_FUNC);
}
#endif
#ifndef NO_gdk_1surface_1set_1input_1region
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1surface_1set_1input_1region)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1surface_1set_1input_1region_FUNC);
gdk_surface_set_input_region((GdkSurface *)arg0, (cairo_region_t *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1set_1input_1region_FUNC);
}
#endif
#ifndef NO_gdk_1surface_1set_1opaque_1region
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1surface_1set_1opaque_1region)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1surface_1set_1opaque_1region_FUNC);
gdk_surface_set_opaque_region((GdkSurface *)arg0, (cairo_region_t *)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1surface_1set_1opaque_1region_FUNC);
}
#endif
#ifndef NO_gdk_1text_1property_1to_1utf8_1list_1for_1display
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1text_1property_1to_1utf8_1list_1for_1display)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jint arg2, jlong arg3, jint arg4, jlongArray arg5)
{
jlong *lparg5=NULL;
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1text_1property_1to_1utf8_1list_1for_1display_FUNC);
if (arg5) if ((lparg5 = (*env)->GetLongArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)gdk_text_property_to_utf8_list_for_display((GdkDisplay *)arg0, (GdkAtom)arg1, arg2, (guchar *)arg3, arg4, (gchar ***)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseLongArrayElements(env, arg5, lparg5, 0);
GDK_NATIVE_EXIT(env, that, gdk_1text_1property_1to_1utf8_1list_1for_1display_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1texture_1new_1for_1pixbuf
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1texture_1new_1for_1pixbuf)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1texture_1new_1for_1pixbuf_FUNC);
rc = (jlong)gdk_texture_new_for_pixbuf((GdkPixbuf *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1texture_1new_1for_1pixbuf_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1texture_1new_1from_1file
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1texture_1new_1from_1file)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1texture_1new_1from_1file_FUNC);
rc = (jlong)gdk_texture_new_from_file((GFile *)arg0, (GError **)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1texture_1new_1from_1file_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1threads_1add_1idle
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1threads_1add_1idle)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1threads_1add_1idle_FUNC);
rc = (jint)gdk_threads_add_idle((GSourceFunc)arg0, (gpointer)arg1);
GDK_NATIVE_EXIT(env, that, gdk_1threads_1add_1idle_FUNC);
return rc;
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1threads_1add_1timeout
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1threads_1add_1timeout)
(JNIEnv *env, jclass that, jint arg0, jlong arg1, jlong arg2)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1threads_1add_1timeout_FUNC);
rc = (jint)gdk_threads_add_timeout(arg0, (GSourceFunc)arg1, (gpointer)arg2);
GDK_NATIVE_EXIT(env, that, gdk_1threads_1add_1timeout_FUNC);
return rc;
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1threads_1enter
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1threads_1enter)
(JNIEnv *env, jclass that)
{
GDK_NATIVE_ENTER(env, that, gdk_1threads_1enter_FUNC);
gdk_threads_enter();
GDK_NATIVE_EXIT(env, that, gdk_1threads_1enter_FUNC);
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1threads_1init
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1threads_1init)
(JNIEnv *env, jclass that)
{
GDK_NATIVE_ENTER(env, that, gdk_1threads_1init_FUNC);
gdk_threads_init();
GDK_NATIVE_EXIT(env, that, gdk_1threads_1init_FUNC);
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1threads_1leave
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1threads_1leave)
(JNIEnv *env, jclass that)
{
GDK_NATIVE_ENTER(env, that, gdk_1threads_1leave_FUNC);
gdk_threads_leave();
GDK_NATIVE_EXIT(env, that, gdk_1threads_1leave_FUNC);
}
G_GNUC_END_IGNORE_DEPRECATIONS
#endif
#ifndef NO_gdk_1toplevel_1layout_1new
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1toplevel_1layout_1new)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1toplevel_1layout_1new_FUNC);
/*
rc = (jlong)gdk_toplevel_layout_new(arg0, arg1);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_toplevel_layout_new)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(jint, jint))fp)(arg0, arg1);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1toplevel_1layout_1new_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1toplevel_1present
JNIEXPORT jboolean JNICALL GDK_NATIVE(gdk_1toplevel_1present)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jlong arg3)
{
jboolean rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1toplevel_1present_FUNC);
/*
rc = (jboolean)gdk_toplevel_present((GdkToplevel *)arg0, arg1, arg2, (GdkToplevelLayout *)arg3);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_toplevel_present)
if (fp) {
rc = (jboolean)((jboolean (CALLING_CONVENTION*)(GdkToplevel *, jint, jint, GdkToplevelLayout *))fp)((GdkToplevel *)arg0, arg1, arg2, (GdkToplevelLayout *)arg3);
}
}
GDK_NATIVE_EXIT(env, that, gdk_1toplevel_1present_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1unicode_1to_1keyval
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1unicode_1to_1keyval)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1unicode_1to_1keyval_FUNC);
rc = (jint)gdk_unicode_to_keyval(arg0);
GDK_NATIVE_EXIT(env, that, gdk_1unicode_1to_1keyval_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1utf8_1to_1string_1target
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1utf8_1to_1string_1target)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1utf8_1to_1string_1target_FUNC);
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
/*
rc = (jlong)gdk_utf8_to_string_target((const gchar *)lparg0);
*/
{
GDK_LOAD_FUNCTION(fp, gdk_utf8_to_string_target)
if (fp) {
rc = (jlong)((jlong (CALLING_CONVENTION*)(const gchar *))fp)((const gchar *)lparg0);
}
}
fail:
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
GDK_NATIVE_EXIT(env, that, gdk_1utf8_1to_1string_1target_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1visual_1get_1depth
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1visual_1get_1depth)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1visual_1get_1depth_FUNC);
rc = (jint)gdk_visual_get_depth((GdkVisual *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1visual_1get_1depth_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1window_1create_1similar_1surface
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1window_1create_1similar_1surface)
(JNIEnv *env, jclass that, jlong arg0, jint arg1, jint arg2, jint arg3)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1window_1create_1similar_1surface_FUNC);
rc = (jlong)gdk_window_create_similar_surface((GdkWindow *)arg0, (cairo_content_t)arg1, arg2, arg3);
GDK_NATIVE_EXIT(env, that, gdk_1window_1create_1similar_1surface_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1window_1destroy
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1window_1destroy)
(JNIEnv *env, jclass that, jlong arg0)
{
GDK_NATIVE_ENTER(env, that, gdk_1window_1destroy_FUNC);
gdk_window_destroy((GdkWindow *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1window_1destroy_FUNC);
}
#endif
#ifndef NO_gdk_1window_1focus
JNIEXPORT void JNICALL GDK_NATIVE(gdk_1window_1focus)
(JNIEnv *env, jclass that, jlong arg0, jint arg1)
{
GDK_NATIVE_ENTER(env, that, gdk_1window_1focus_FUNC);
gdk_window_focus((GdkWindow *)arg0, arg1);
GDK_NATIVE_EXIT(env, that, gdk_1window_1focus_FUNC);
}
#endif
#ifndef NO_gdk_1window_1get_1children
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1window_1get_1children)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1window_1get_1children_FUNC);
rc = (jlong)gdk_window_get_children((GdkWindow *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1window_1get_1children_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1window_1get_1device_1position
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1window_1get_1device_1position)
(JNIEnv *env, jclass that, jlong arg0, jlong arg1, jintArray arg2, jintArray arg3, jintArray arg4)
{
jint *lparg2=NULL;
jint *lparg3=NULL;
jint *lparg4=NULL;
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1window_1get_1device_1position_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jlong)gdk_window_get_device_position((GdkWindow *)arg0, (GdkDevice *)arg1, (gint *)lparg2, (gint *)lparg3, (GdkModifierType *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
GDK_NATIVE_EXIT(env, that, gdk_1window_1get_1device_1position_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1window_1get_1display
JNIEXPORT jlong JNICALL GDK_NATIVE(gdk_1window_1get_1display)
(JNIEnv *env, jclass that, jlong arg0)
{
jlong rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1window_1get_1display_FUNC);
rc = (jlong)gdk_window_get_display((GdkWindow *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1window_1get_1display_FUNC);
return rc;
}
#endif
#ifndef NO_gdk_1window_1get_1events
JNIEXPORT jint JNICALL GDK_NATIVE(gdk_1window_1get_1events)
(JNIEnv *env, jclass that, jlong arg0)
{
jint rc = 0;
GDK_NATIVE_ENTER(env, that, gdk_1window_1get_1events_FUNC);
rc = (jint)gdk_window_get_events((GdkWindow *)arg0);
GDK_NATIVE_EXIT(env, that, gdk_1window_1get_1events_FUNC);
return rc;