blob: a9f8db8414d0b6bcb199002506e7b6339a008f10 [file] [log] [blame]
/*
* Copyright (c) IBM Corp. 2000, 2001. 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.
*/
/**
* SWT OS natives implementation.
*/
/*#define PRINT_FAILED_RCODES*/
#define NDEBUG
#include "swt.h"
#include "structs.h"
#include <stdio.h>
#include <assert.h>
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_draw_check
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1draw_1check
(JNIEnv *env, jclass that, jint style, jint window, jint state_type, jint shadow_type, jint x, jint y, jint width, jint height)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_post_recursive_to_depth");
#endif
gtk_draw_check((GtkStyle*)style, (GdkWindow *) window, (GtkStateType)state_type, (GtkShadowType)shadow_type, (gint) x, (gint) y, (gint) width, (gint) height);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_post_recursive
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1post_1recursive_1to_1depth
(JNIEnv *env, jclass that, jint ctree, jint node, jint depth, jint func, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_post_recursive_to_depth");
#endif
gtk_ctree_post_recursive_to_depth((GtkCTree*)ctree, (GtkCTreeNode*)node, (jint)depth, (GtkCTreeFunc)func, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_clist_row_is_visible
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1clist_1row_1is_1visible
(JNIEnv *env, jclass that, jint clist, jint row)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_clist_row_is_visible");
#endif
return gtk_clist_row_is_visible((GtkCList *)clist, (gint)row);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: g_log_default_handler
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1log_1default_1handler
(JNIEnv *env, jclass that, jint log_domain, jint log_levels, jint message, jint unused_data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "g_log_default_handler");
#endif
g_log_default_handler((gchar *)log_domain, (GLogLevelFlags)log_levels, (gchar *)message, (gpointer)unused_data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: g_log_set_handler
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1log_1set_1handler
(JNIEnv *env, jclass that, jbyteArray log_domain, jint log_levels, jint log_func, jint user_data)
{
jint rc;
jbyte *log_domain1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "g_log_set_handler");
#endif
if (log_domain) {
log_domain1 = (*env)->GetByteArrayElements(env, log_domain, NULL);
}
rc = (jint) g_log_set_handler((gchar *)log_domain1, (GLogLevelFlags)log_levels, (GLogFunc) log_func, (gpointer) user_data);
if (log_domain) {
(*env)->ReleaseByteArrayElements(env, log_domain, log_domain1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: g_log_remove_handler
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1log_1remove_1handler
(JNIEnv *env, jclass that, jbyteArray log_domain, jint handler_id)
{
jbyte *log_domain1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "g_log_remove_handler");
#endif
if (log_domain) {
log_domain1 = (*env)->GetByteArrayElements(env, log_domain, NULL);
}
g_log_remove_handler((gchar *)log_domain1, handler_id);
if (log_domain) {
(*env)->ReleaseByteArrayElements(env, log_domain, log_domain1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: GTK_WIDGET_TYPE
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1TYPE
(JNIEnv *env, jclass that, jint wid)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_TYPE");
#endif
return GTK_WIDGET_TYPE((GtkWidget*)wid);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_get_type
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1get_1type
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_get_type");
#endif
return gtk_label_get_type ();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_object_unref
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1unref
(JNIEnv *env, jclass that, jint object)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_unref");
#endif
gtk_object_unref((GtkObject*)object);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_object_ref
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1destroy
(JNIEnv *env, jclass that, jint object)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_destroy");
#endif
gtk_object_destroy((GtkObject*)object);
}
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1get_1data_1by_1id
(JNIEnv *env, jclass that, jint object, jint data_id)
{
jint result;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_get_data_by_id");
#endif
return (jint) gtk_object_get_data_by_id((GtkObject*)object, (GQuark) data_id);
}
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1set_1data_1by_1id
(JNIEnv *env, jclass that, jint object, jint data_id, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_set_data_by_id");
#endif
gtk_object_set_data_by_id ((GtkObject*)object, (GQuark) data_id, (gpointer) data);
}
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_g_1quark_1from_1string
(JNIEnv *env, jclass that, jbyteArray string)
{
jint result;
jbyte *string1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "g_quark_from_string");
#endif
if (string) {
string1 = (*env)->GetByteArrayElements(env, string, NULL);
}
result = g_quark_from_string((gchar *) string1);
if (string) {
(*env)->ReleaseByteArrayElements(env, string, string1, 0);
}
return result;
}
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1block_1by_1data
(JNIEnv *env, jclass that, jint object, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_handler_block_by_data");
#endif
gtk_signal_handler_block_by_data((GtkObject*)object, (gpointer) data);
}
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1unblock_1by_1data
(JNIEnv *env, jclass that, jint object, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_handler_unblock_by_data");
#endif
gtk_signal_handler_unblock_by_data((GtkObject*)object, (gpointer) data);
}
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gdk_1rgb_1init
(JNIEnv *env, jclass cl)
{
gdk_rgb_init();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1FLAGS
(JNIEnv *env, jclass that, jint wid)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_FLAGS");
#endif
return (jint) GTK_WIDGET_FLAGS((GtkWidget*)wid);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1SET_1FLAGS
(JNIEnv *env, jclass that, jint wid, jint flag)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_SET_FLAGS");
#endif
GTK_WIDGET_SET_FLAGS((GtkWidget*)wid, flag);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1UNSET_1FLAGS
(JNIEnv *env, jclass that, jint wid, jint flag)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_UNSET_FLAGS");
#endif
GTK_WIDGET_UNSET_FLAGS((GtkWidget*)wid, flag);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1NO_1WINDOW
(JNIEnv *env, jclass that, jint wid)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_NO_WINDOW");
#endif
return (jboolean) GTK_WIDGET_NO_WINDOW((GtkWidget*)wid);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: GDK_ROOT_PARENT
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_GDK_1ROOT_1PARENT
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GDK_ROOT_PARENT");
#endif
return (jint) GDK_ROOT_PARENT();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1SENSITIVE
(JNIEnv *env, jclass that, jint wid)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_SENSITIVE");
#endif
return (jboolean) GTK_WIDGET_SENSITIVE((GtkWidget*)wid);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_GTK_1WIDGET_1IS_1SENSITIVE
(JNIEnv *env, jclass that, jint wid)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "GTK_WIDGET_IS_SENSITIVE");
#endif
return (jboolean) GTK_WIDGET_IS_SENSITIVE((GtkWidget*)wid);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_accel_group_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1accel_1group_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_accel_group_new");
#endif
return (jint)gtk_accel_group_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_accel_group_unref
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1accel_1group_1unref
(JNIEnv *env, jclass that, jint accel_group)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_accel_group_unref");
#endif
gtk_accel_group_unref((GtkAccelGroup*)accel_group);
}
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1accel_1groups_1activate
(JNIEnv *env, jclass that, jint accel_group, jint accel_key, jint accel_mods)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_accel_groups_activate");
#endif
return (jboolean) gtk_accel_groups_activate(GTK_OBJECT((GtkWindow*)accel_group),
accel_key,
accel_mods);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_adjustment_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1new
(JNIEnv *env, jclass that, jfloat value, jfloat lower, jfloat upper, jfloat step_increment, jfloat page_increment, jfloat page_size)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_adjustment_new");
#endif
return (jint)gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_adjustment_changed
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1changed
(JNIEnv *env, jclass that, jint adjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_adjustment_changed");
#endif
gtk_adjustment_changed((GtkAdjustment*)adjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_adjustment_value_changed
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1value_1changed
(JNIEnv *env, jclass that, jint adjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_adjustment_value_changed");
#endif
gtk_adjustment_value_changed((GtkAdjustment*)adjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_adjustment_set_value
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1adjustment_1set_1value
(JNIEnv *env, jclass that, jint adjustment, jfloat value)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_adjustment_set_value");
#endif
gtk_adjustment_set_value((GtkAdjustment*)adjustment, value);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_arrow_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1arrow_1new
(JNIEnv *env, jclass that, jint arrow_type, jint shadow_type)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_arrow_new");
#endif
return (jint)gtk_arrow_new((GtkArrowType)arrow_type, (GtkShadowType)shadow_type);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_arrow_set
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1arrow_1set
(JNIEnv *env, jclass that, jint arrow, jint arrow_type, jint shadow_type)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_arrow_set");
#endif
gtk_arrow_set((GtkArrow*)arrow, (GtkArrowType)arrow_type, (GtkShadowType)shadow_type);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_box_pack_start
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1box_1pack_1start
(JNIEnv *env, jclass that, jint box, jint child, jboolean expand, jboolean fill, jint padding)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_box_pack_start");
#endif
gtk_box_pack_start((GtkBox*)box, (GtkWidget*)child, (gboolean)expand, (gboolean)fill, padding);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_box_pack_end
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1box_1pack_1end
(JNIEnv *env, jclass that, jint box, jint child, jboolean expand, jboolean fill, jint padding)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_box_pack_end");
#endif
gtk_box_pack_end((GtkBox*)box, (GtkWidget*)child, (gboolean)expand, (gboolean)fill, padding);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_button_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1button_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_button_new");
#endif
return (jint)gtk_button_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_button_new_with_label
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1button_1new_1with_1label
(JNIEnv *env, jclass that, jbyteArray label)
{
jint rc;
jbyte *label1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_button_new_with_label");
#endif
if (label) {
label1 = (*env)->GetByteArrayElements(env, label, NULL);
}
rc = (jint)gtk_button_new_with_label((gchar*)label1);
if (label) {
(*env)->ReleaseByteArrayElements(env, label, label1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_check_button_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1button_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_check_button_new");
#endif
return (jint)gtk_check_button_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_check_menu_item_new_with_label
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1menu_1item_1new_1with_1label
(JNIEnv *env, jclass that, jbyteArray label)
{
jint rc;
jbyte *label1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_check_menu_item_new_with_label");
#endif
if (label) {
label1 = (*env)->GetByteArrayElements(env, label, NULL);
}
rc = (jint)gtk_check_menu_item_new_with_label((gchar*)label1);
if (label) {
(*env)->ReleaseByteArrayElements(env, label, label1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_check_menu_item_set_active
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1menu_1item_1set_1active
(JNIEnv *env, jclass that, jint check_menu_item, jboolean is_active)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_check_menu_item_set_active");
#endif
gtk_check_menu_item_set_active((GtkCheckMenuItem*)check_menu_item, (gboolean)is_active);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_check_menu_item_set_show_toggle
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1menu_1item_1set_1show_1toggle
(JNIEnv *env, jclass that, jint menu_item, jboolean always)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_check_menu_item_set_show_toggle");
#endif
gtk_check_menu_item_set_show_toggle((GtkCheckMenuItem*)menu_item, (gboolean)always);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_color_selection_set_color
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1color_1selection_1set_1color
(JNIEnv *env, jclass that, jint colorsel, jdoubleArray color)
{
jdouble *color1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_color_selection_set_color");
#endif
if (color) {
color1 = (*env)->GetDoubleArrayElements(env, color, NULL);
}
gtk_color_selection_set_color((GtkColorSelection*)colorsel, (gdouble*)color1);
if (color) {
(*env)->ReleaseDoubleArrayElements(env, color, color1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_color_selection_get_color
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1color_1selection_1get_1color
(JNIEnv *env, jclass that, jint colorsel, jdoubleArray color)
{
jdouble *color1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_color_selection_get_color");
#endif
if (color) {
color1 = (*env)->GetDoubleArrayElements(env, color, NULL);
}
gtk_color_selection_get_color((GtkColorSelection*)colorsel, (gdouble*)color1);
if (color) {
(*env)->ReleaseDoubleArrayElements(env, color, color1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_color_selection_dialog_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1color_1selection_1dialog_1new
(JNIEnv *env, jclass that, jbyteArray title)
{
jint rc;
jbyte *title1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_color_selection_dialog_new");
#endif
if (title) {
title1 = (*env)->GetByteArrayElements(env, title, NULL);
}
rc = (jint)gtk_color_selection_dialog_new((gchar*)title1);
if (title) {
(*env)->ReleaseByteArrayElements(env, title, title1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_combo_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_combo_new");
#endif
return (jint)gtk_combo_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_combo_set_popdown_strings
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1combo_1set_1popdown_1strings
(JNIEnv *env, jclass that, jint combo, jint strings)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_combo_set_popdown_strings");
#endif
gtk_combo_set_popdown_strings((GtkCombo*)combo, (GList*)strings);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_container_add
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1container_1add
(JNIEnv *env, jclass that, jint container, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_container_add");
#endif
gtk_container_add((GtkContainer*)container, (GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_container_remove
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1container_1remove
(JNIEnv *env, jclass that, jint container, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_container_remove");
#endif
gtk_container_remove((GtkContainer*)container, (GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_container_children
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1container_1children
(JNIEnv *env, jclass that, jint container)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_container_children");
#endif
return (jint)gtk_container_children((GtkContainer*)container);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1new
(JNIEnv *env, jclass that, jint columns, jint tree_column)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_new");
#endif
return (jint)gtk_ctree_new((gint)columns, (gint)tree_column);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_insert_node
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1insert_1node
(JNIEnv *env, jclass that, jint ctree, jint parent, jint sibling, jintArray text, jbyte spacing, jint pixmap_closed, jint mask_closed, jint pixmap_opened, jint mask_opened, jboolean is_leaf, jboolean expanded)
{
jint rc;
jint *text1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_insert_node");
#endif
if (text) {
text1 = (*env)->GetIntArrayElements(env, text, NULL);
}
rc = (jint)gtk_ctree_insert_node((GtkCTree*)ctree, (GtkCTreeNode*)parent, (GtkCTreeNode*)sibling, (gchar**)text1, (guint8)spacing, (GdkPixmap*)pixmap_closed, (GdkBitmap*)mask_closed, (GdkPixmap*)pixmap_opened, (GdkBitmap*)mask_opened, (gboolean)is_leaf, (gboolean)expanded);
if (text) {
(*env)->ReleaseIntArrayElements(env, text, text1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_remove_node
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1remove_1node
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_remove_node");
#endif
gtk_ctree_remove_node((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_post_recursive
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1post_1recursive
(JNIEnv *env, jclass that, jint ctree, jint node, jint func, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_post_recursive");
#endif
gtk_ctree_post_recursive((GtkCTree*)ctree, (GtkCTreeNode*)node, (GtkCTreeFunc)func, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_is_viewable
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1is_1viewable
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_is_viewable");
#endif
return (jboolean)gtk_ctree_is_viewable((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_node_nth
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1nth
(JNIEnv *env, jclass that, jint ctree, jint row)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_node_nth");
#endif
return (jint)gtk_ctree_node_nth((GtkCTree*)ctree, row);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_is_hot_spot
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1is_1hot_1spot
(JNIEnv *env, jclass that, jint ctree, jint x, jint y)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_is_hot_spot");
#endif
return (jboolean)gtk_ctree_is_hot_spot((GtkCTree*)ctree, (gint)x, (gint)y);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_expand
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1expand
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_expand");
#endif
gtk_ctree_expand((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_collapse
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1collapse
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_collapse");
#endif
gtk_ctree_collapse((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_select
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1select
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_select");
#endif
gtk_ctree_select((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_select_recursive
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1select_1recursive
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_select_recursive");
#endif
gtk_ctree_select_recursive((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_unselect_recursive
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1unselect_1recursive
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_unselect_recursive");
#endif
gtk_ctree_unselect_recursive((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_set_node_info
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1set_1node_1info
(JNIEnv *env, jclass that, jint ctree, jint node, jbyteArray text, jbyte spacing, jint pixmap_closed, jint mask_closed, jint pixmap_opened, jint mask_opened, jboolean is_leaf, jboolean expanded)
{
jbyte *text1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_set_node_info");
#endif
if (text) {
text1 = (*env)->GetByteArrayElements(env, text, NULL);
}
gtk_ctree_set_node_info((GtkCTree*)ctree, (GtkCTreeNode*)node, (gchar*)text1, (guint8)spacing, (GdkPixmap*)pixmap_closed, (GdkBitmap*)mask_closed, (GdkPixmap*)pixmap_opened, (GdkBitmap*)mask_opened, (gboolean)is_leaf, (gboolean)expanded);
if (text) {
(*env)->ReleaseByteArrayElements(env, text, text1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_get_node_info
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1get_1node_1info
(JNIEnv *env, jclass that, jint ctree, jint node, jintArray text, jbyteArray spacing, jintArray pixmap_closed, jintArray mask_closed, jintArray pixmap_opened, jintArray mask_opened, jbooleanArray is_leaf, jbooleanArray expanded)
{
jint rc;
jint *text1 = NULL;
jbyte *spacing1 = NULL;
jint *pixmap_closed1 = NULL;
jint *mask_closed1 = NULL;
jint *pixmap_opened1 = NULL;
jint *mask_opened1 = NULL;
jboolean *is_leaf1 = NULL;
jboolean *expanded1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_get_node_info");
#endif
if (text) {
text1 = (*env)->GetIntArrayElements(env, text, NULL);
}
if (spacing) {
spacing1 = (*env)->GetByteArrayElements(env, spacing, NULL);
}
if (pixmap_closed) {
pixmap_closed1 = (*env)->GetIntArrayElements(env, pixmap_closed, NULL);
}
if (mask_closed) {
mask_closed1 = (*env)->GetIntArrayElements(env, mask_closed, NULL);
}
if (pixmap_opened) {
pixmap_opened1 = (*env)->GetIntArrayElements(env, pixmap_opened, NULL);
}
if (mask_opened) {
mask_opened1 = (*env)->GetIntArrayElements(env, mask_opened, NULL);
}
if (is_leaf) {
is_leaf1 = (*env)->GetBooleanArrayElements(env, is_leaf, NULL);
}
if (expanded) {
expanded1 = (*env)->GetBooleanArrayElements(env, expanded, NULL);
}
rc = (jint)gtk_ctree_get_node_info((GtkCTree*)ctree, (GtkCTreeNode*)node, (gchar**)text1, (guint8*)spacing1, (GdkPixmap**)pixmap_closed1, (GdkBitmap**)mask_closed1, (GdkPixmap**)pixmap_opened1, (GdkBitmap**)mask_opened1, (gboolean*)is_leaf1, (gboolean*)expanded1);
if (text) {
(*env)->ReleaseIntArrayElements(env, text, text1, 0);
}
if (spacing) {
(*env)->ReleaseByteArrayElements(env, spacing, spacing1, 0);
}
if (pixmap_closed) {
(*env)->ReleaseIntArrayElements(env, pixmap_closed, pixmap_closed1, 0);
}
if (mask_closed) {
(*env)->ReleaseIntArrayElements(env, mask_closed, mask_closed1, 0);
}
if (pixmap_opened) {
(*env)->ReleaseIntArrayElements(env, pixmap_opened, pixmap_opened1, 0);
}
if (mask_opened) {
(*env)->ReleaseIntArrayElements(env, mask_opened, mask_opened1, 0);
}
if (is_leaf) {
(*env)->ReleaseBooleanArrayElements(env, is_leaf, is_leaf1, 0);
}
if (expanded) {
(*env)->ReleaseBooleanArrayElements(env, expanded, expanded1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_node_get_row_style
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1get_1row_1style
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_node_get_row_style");
#endif
return (jint)gtk_ctree_node_get_row_style((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_node_set_row_data
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1set_1row_1data
(JNIEnv *env, jclass that, jint ctree, jint node, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_node_set_row_data");
#endif
gtk_ctree_node_set_row_data((GtkCTree*)ctree, (GtkCTreeNode*)node, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_node_get_row_data
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1get_1row_1data
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_node_get_row_data");
#endif
return (jint)gtk_ctree_node_get_row_data((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_node_moveto
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1moveto
(JNIEnv *env, jclass that, jint ctree, jint node, jint column, jfloat row_align, jfloat col_align)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_node_moveto");
#endif
gtk_ctree_node_moveto((GtkCTree*)ctree, (GtkCTreeNode*)node, (gint)column, row_align, col_align);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_ctree_node_is_visible
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1ctree_1node_1is_1visible
(JNIEnv *env, jclass that, jint ctree, jint node)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_ctree_node_is_visible");
#endif
return (jint)gtk_ctree_node_is_visible((GtkCTree*)ctree, (GtkCTreeNode*)node);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_dialog_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1dialog_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_dialog_new");
#endif
return (jint)gtk_dialog_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_drawing_area_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1drawing_1area_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_drawing_area_new");
#endif
return (jint)gtk_drawing_area_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_drawing_area_size
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1drawing_1area_1size
(JNIEnv *env, jclass that, jint darea, jint width, jint height)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_drawing_area_size");
#endif
gtk_drawing_area_size((GtkDrawingArea*)darea, (gint)width, (gint)height);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_select_region
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1select_1region
(JNIEnv *env, jclass that, jint editable, jint start, jint end)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_select_region");
#endif
gtk_editable_select_region((GtkEditable*)editable, (gint)start, (gint)end);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_insert_text
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1insert_1text
(JNIEnv *env, jclass that, jint editable, jbyteArray new_text, jint new_text_length, jintArray position)
{
jbyte *new_text1 = NULL;
jint *position1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_insert_text");
#endif
if (new_text) {
new_text1 = (*env)->GetByteArrayElements(env, new_text, NULL);
}
if (position) {
position1 = (*env)->GetIntArrayElements(env, position, NULL);
}
gtk_editable_insert_text((GtkEditable*)editable, (gchar*)new_text1, (gint)new_text_length, (gint*)position1);
if (new_text) {
(*env)->ReleaseByteArrayElements(env, new_text, new_text1, 0);
}
if (position) {
(*env)->ReleaseIntArrayElements(env, position, position1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_delete_text
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1delete_1text
(JNIEnv *env, jclass that, jint editable, jint start_pos, jint end_pos)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_delete_text");
#endif
gtk_editable_delete_text((GtkEditable*)editable, (gint)start_pos, (gint)end_pos);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_get_chars
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1get_1chars
(JNIEnv *env, jclass that, jint editable, jint start_pos, jint end_pos)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_get_chars");
#endif
return (jint)gtk_editable_get_chars((GtkEditable*)editable, (gint)start_pos, (gint)end_pos);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_delete_selection
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1delete_1selection
(JNIEnv *env, jclass that, jint editable)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_delete_selection");
#endif
gtk_editable_delete_selection((GtkEditable*)editable);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_set_position
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1set_1position
(JNIEnv *env, jclass that, jint editable, jint position)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_set_position");
#endif
gtk_editable_set_position((GtkEditable*)editable, (gint)position);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_get_position
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1get_1position
(JNIEnv *env, jclass that, jint editable)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_get_position");
#endif
return (jint)gtk_editable_get_position((GtkEditable*)editable);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_editable_set_editable
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1editable_1set_1editable
(JNIEnv *env, jclass that, jint editable, jboolean is_editable)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_editable_set_editable");
#endif
gtk_editable_set_editable((GtkEditable*)editable, (gboolean)is_editable);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_new");
#endif
return (jint)gtk_entry_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_set_text
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1text
(JNIEnv *env, jclass that, jint entry, jbyteArray text)
{
jbyte *text1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_set_text");
#endif
if (text) {
text1 = (*env)->GetByteArrayElements(env, text, NULL);
}
gtk_entry_set_text((GtkEntry*)entry, (gchar*)text1);
if (text) {
(*env)->ReleaseByteArrayElements(env, text, text1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_append_text
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1append_1text
(JNIEnv *env, jclass that, jint entry, jbyteArray text)
{
jbyte *text1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_append_text");
#endif
if (text) {
text1 = (*env)->GetByteArrayElements(env, text, NULL);
}
gtk_entry_append_text((GtkEntry*)entry, (gchar*)text1);
if (text) {
(*env)->ReleaseByteArrayElements(env, text, text1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_get_text
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1get_1text
(JNIEnv *env, jclass that, jint entry)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_get_text");
#endif
return (jint)gtk_entry_get_text((GtkEntry*)entry);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_set_visibility
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1visibility
(JNIEnv *env, jclass that, jint entry, jboolean visible)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_set_visibility");
#endif
gtk_entry_set_visibility((GtkEntry*)entry, (gboolean)visible);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_set_editable
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1editable
(JNIEnv *env, jclass that, jint entry, jboolean editable)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_set_editable");
#endif
gtk_entry_set_editable((GtkEntry*)entry, (gboolean)editable);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_entry_set_max_length
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1entry_1set_1max_1length
(JNIEnv *env, jclass that, jint entry, jshort max)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_entry_set_max_length");
#endif
gtk_entry_set_max_length((GtkEntry*)entry, (guint16)max);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_event_box_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1event_1box_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_event_box_new");
#endif
return (jint)gtk_event_box_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_file_selection_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1new
(JNIEnv *env, jclass that, jbyteArray title)
{
jint rc;
jbyte *title1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_file_selection_new");
#endif
if (title) {
title1 = (*env)->GetByteArrayElements(env, title, NULL);
}
rc = (jint)gtk_file_selection_new((gchar*)title1);
if (title) {
(*env)->ReleaseByteArrayElements(env, title, title1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_file_selection_set_filename
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1set_1filename
(JNIEnv *env, jclass that, jint filesel, jbyteArray filename)
{
jbyte *filename1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_file_selection_set_filename");
#endif
if (filename) {
filename1 = (*env)->GetByteArrayElements(env, filename, NULL);
}
gtk_file_selection_set_filename((GtkFileSelection*)filesel, (gchar*)filename1);
if (filename) {
(*env)->ReleaseByteArrayElements(env, filename, filename1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_file_selection_get_filename
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1get_1filename
(JNIEnv *env, jclass that, jint filesel)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_file_selection_get_filename");
#endif
return (jint)gtk_file_selection_get_filename((GtkFileSelection*)filesel);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_file_selection_complete
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1file_1selection_1complete
(JNIEnv *env, jclass that, jint filesel, jbyteArray pattern)
{
jbyte *pattern1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_file_selection_complete");
#endif
if (pattern) {
pattern1 = (*env)->GetByteArrayElements(env, pattern, NULL);
}
gtk_file_selection_complete((GtkFileSelection*)filesel, (gchar*)pattern1);
if (pattern) {
(*env)->ReleaseByteArrayElements(env, pattern, pattern1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_fixed_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1fixed_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_fixed_new");
#endif
return (jint)gtk_fixed_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_fixed_put
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1fixed_1put
(JNIEnv *env, jclass that, jint fixed, jint widget, jshort x, jshort y)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_fixed_put");
#endif
gtk_fixed_put((GtkFixed*)fixed, (GtkWidget*)widget, (gint16)x, (gint16)y);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_fixed_move
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1fixed_1move
(JNIEnv *env, jclass that, jint fixed, jint widget, jshort x, jshort y)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_fixed_move");
#endif
gtk_fixed_move((GtkFixed*)fixed, (GtkWidget*)widget, (gint16)x, (gint16)y);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_font_selection_set_font_name
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1set_1font_1name
(JNIEnv *env, jclass that, jint fontsel, jbyteArray fontname)
{
jboolean rc;
jbyte *fontname1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_font_selection_set_font_name");
#endif
if (fontname) {
fontname1 = (*env)->GetByteArrayElements(env, fontname, NULL);
}
rc = (jboolean)gtk_font_selection_set_font_name((GtkFontSelection*)fontsel, (gchar*)fontname1);
if (fontname) {
(*env)->ReleaseByteArrayElements(env, fontname, fontname1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_font_selection_dialog_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1dialog_1new
(JNIEnv *env, jclass that, jbyteArray title)
{
jint rc;
jbyte *title1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_font_selection_dialog_new");
#endif
if (title) {
title1 = (*env)->GetByteArrayElements(env, title, NULL);
}
rc = (jint)gtk_font_selection_dialog_new((gchar*)title1);
if (title) {
(*env)->ReleaseByteArrayElements(env, title, title1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_font_selection_dialog_get_font_name
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1dialog_1get_1font_1name
(JNIEnv *env, jclass that, jint fsd)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_font_selection_dialog_get_font_name");
#endif
return (jint)gtk_font_selection_dialog_get_font_name((GtkFontSelectionDialog*)fsd);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_font_selection_dialog_set_font_name
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1font_1selection_1dialog_1set_1font_1name
(JNIEnv *env, jclass that, jint fsd, jbyteArray fontname)
{
jboolean rc;
jbyte *fontname1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_font_selection_dialog_set_font_name");
#endif
if (fontname) {
fontname1 = (*env)->GetByteArrayElements(env, fontname, NULL);
}
rc = (jboolean)gtk_font_selection_dialog_set_font_name((GtkFontSelectionDialog*)fsd, (gchar*)fontname1);
if (fontname) {
(*env)->ReleaseByteArrayElements(env, fontname, fontname1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_frame_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1frame_1new
(JNIEnv *env, jclass that, jbyteArray label)
{
jint rc;
jbyte *label1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_frame_new");
#endif
if (label) {
label1 = (*env)->GetByteArrayElements(env, label, NULL);
}
rc = (jint)gtk_frame_new((gchar*)label1);
if (label) {
(*env)->ReleaseByteArrayElements(env, label, label1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_frame_set_label
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1frame_1set_1label
(JNIEnv *env, jclass that, jint frame, jbyteArray label)
{
jbyte *label1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_frame_set_label");
#endif
if (label) {
label1 = (*env)->GetByteArrayElements(env, label, NULL);
}
gtk_frame_set_label((GtkFrame*)frame, (gchar*)label1);
if (label) {
(*env)->ReleaseByteArrayElements(env, label, label1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_frame_set_shadow_type
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1frame_1set_1shadow_1type
(JNIEnv *env, jclass that, jint frame, jint type)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_frame_set_shadow_type");
#endif
gtk_frame_set_shadow_type((GtkFrame*)frame, (GtkShadowType)type);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_hbox_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hbox_1new
(JNIEnv *env, jclass that, jboolean homogeneous, jint spacing)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_hbox_new");
#endif
return (jint)gtk_hbox_new((gboolean)homogeneous, (gint)spacing);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_hscale_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hscale_1new
(JNIEnv *env, jclass that, jint adjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_hscale_new");
#endif
return (jint)gtk_hscale_new((GtkAdjustment*)adjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_hscrollbar_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hscrollbar_1new
(JNIEnv *env, jclass that, jint adjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_hscrollbar_new");
#endif
return (jint)gtk_hscrollbar_new((GtkAdjustment*)adjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_hseparator_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1hseparator_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_hseparator_new");
#endif
return (jint)gtk_hseparator_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1new
(JNIEnv *env, jclass that, jbyteArray str)
{
jint rc;
jbyte *str1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_new");
#endif
if (str) {
str1 = (*env)->GetByteArrayElements(env, str, NULL);
}
rc = (jint)gtk_label_new((gchar*)str1);
if (str) {
(*env)->ReleaseByteArrayElements(env, str, str1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_set_text
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1text
(JNIEnv *env, jclass that, jint label, jbyteArray str)
{
jbyte *str1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_set_text");
#endif
if (str) {
str1 = (*env)->GetByteArrayElements(env, str, NULL);
}
gtk_label_set_text((GtkLabel*)label, (gchar*)str1);
if (str) {
(*env)->ReleaseByteArrayElements(env, str, str1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_set_justify
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1justify
(JNIEnv *env, jclass that, jint label, jint jtype)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_set_justify");
#endif
gtk_label_set_justify((GtkLabel*)label, (GtkJustification)jtype);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_set_pattern
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1pattern
(JNIEnv *env, jclass that, jint label, jbyteArray pattern)
{
jbyte *pattern1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_set_pattern");
#endif
if (pattern) {
pattern1 = (*env)->GetByteArrayElements(env, pattern, NULL);
}
gtk_label_set_pattern((GtkLabel*)label, (gchar*)pattern1);
if (pattern) {
(*env)->ReleaseByteArrayElements(env, pattern, pattern1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_set_line_wrap
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1set_1line_1wrap
(JNIEnv *env, jclass that, jint label, jboolean wrap)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_set_line_wrap");
#endif
gtk_label_set_line_wrap((GtkLabel*)label, (gboolean)wrap);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_label_parse_uline
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1label_1parse_1uline
(JNIEnv *env, jclass that, jint label, jbyteArray string)
{
jint rc;
jbyte *string1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_label_parse_uline");
#endif
if (string) {
string1 = (*env)->GetByteArrayElements(env, string, NULL);
}
rc = (jint)gtk_label_parse_uline((GtkLabel*)label, (gchar*)string1);
if (string) {
(*env)->ReleaseByteArrayElements(env, string, string1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_list_clear_items
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1list_1clear_1items
(JNIEnv *env, jclass that, jint list, jint start, jint end)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_list_clear_items");
#endif
gtk_list_clear_items((GtkList*)list, (gint)start, (gint)end);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_list_select_item
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1list_1select_1item
(JNIEnv *env, jclass that, jint list, jint item)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_list_select_item");
#endif
gtk_list_select_item((GtkList*)list, (gint)item);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_check_version
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1check_1version
(JNIEnv *env, jclass that, jint required_major, jint required_minor, jint required_micro)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_check_version");
#endif
return (jint)gtk_check_version(required_major, required_minor, required_micro);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_init_check
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1init_1check
(JNIEnv *env, jclass that, jintArray argc, jintArray argv)
{
jboolean rc;
jint *argc1 = NULL;
jint *argv1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_init_check");
#endif
if (argc) {
argc1 = (*env)->GetIntArrayElements(env, argc, NULL);
}
if (argv) {
argv1 = (*env)->GetIntArrayElements(env, argv, NULL);
}
rc = (jboolean)gtk_init_check((int*)argc1, (char***)argv1);
if (argc) {
(*env)->ReleaseIntArrayElements(env, argc, argc1, 0);
}
if (argv) {
(*env)->ReleaseIntArrayElements(env, argv, argv1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_events_pending
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1events_1pending
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_events_pending");
#endif
return (jint)gtk_events_pending();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_main
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1main
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_main");
#endif
gtk_main();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_main_quit
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1main_1quit
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_main_quit");
#endif
gtk_main_quit();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_main_iteration
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1main_1iteration
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_main_iteration");
#endif
return (jint)gtk_main_iteration();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_grab_add
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1grab_1add
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_grab_add");
#endif
gtk_grab_add((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_grab_get_current
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1grab_1get_1current
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_grab_get_current");
#endif
return (jint)gtk_grab_get_current();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_grab_remove
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1grab_1remove
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_grab_remove");
#endif
gtk_grab_remove((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_timeout_add
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1timeout_1add
(JNIEnv *env, jclass that, jint interval, jint function, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_timeout_add");
#endif
return (jint)gtk_timeout_add((guint32)interval, (GtkFunction)function, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_timeout_remove
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1timeout_1remove
(JNIEnv *env, jclass that, jint timeout_handler_id)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_timeout_remove");
#endif
gtk_timeout_remove(timeout_handler_id);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_new");
#endif
return (jint)gtk_menu_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_insert
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1insert
(JNIEnv *env, jclass that, jint menu, jint child, jint position)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_insert");
#endif
gtk_menu_insert((GtkMenu*)menu, (GtkWidget*)child, (gint)position);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_popup
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1popup
(JNIEnv *env, jclass that, jint menu, jint parent_menu_shell, jint parent_menu_item, jint func, jint data, jint button, jint activate_time)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_popup");
#endif
gtk_menu_popup((GtkMenu*)menu, (GtkWidget*)parent_menu_shell, (GtkWidget*)parent_menu_item, (GtkMenuPositionFunc)func, (gpointer)data, button, (guint32)activate_time);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_popdown
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1popdown
(JNIEnv *env, jclass that, jint menu)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_popdown");
#endif
gtk_menu_popdown((GtkMenu*)menu);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_bar_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1bar_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_bar_new");
#endif
return (jint)gtk_menu_bar_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_bar_insert
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1bar_1insert
(JNIEnv *env, jclass that, jint menu_bar, jint child, jint position)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_bar_insert");
#endif
gtk_menu_bar_insert((GtkMenuBar*)menu_bar, (GtkWidget*)child, (gint)position);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_item_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_item_new");
#endif
return (jint)gtk_menu_item_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_item_new_with_label
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1new_1with_1label
(JNIEnv *env, jclass that, jbyteArray label)
{
jint rc;
jbyte *label1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_item_new_with_label");
#endif
if (label) {
label1 = (*env)->GetByteArrayElements(env, label, NULL);
}
rc = (jint)gtk_menu_item_new_with_label((gchar*)label1);
if (label) {
(*env)->ReleaseByteArrayElements(env, label, label1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_item_set_submenu
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1set_1submenu
(JNIEnv *env, jclass that, jint menu_item, jint submenu)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_item_set_submenu");
#endif
gtk_menu_item_set_submenu((GtkMenuItem*)menu_item, (GtkWidget*)submenu);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_menu_item_remove_submenu
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1menu_1item_1remove_1submenu
(JNIEnv *env, jclass that, jint menu_item)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_menu_item_remove_submenu");
#endif
gtk_menu_item_remove_submenu((GtkMenuItem*)menu_item);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_misc_set_alignment
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1misc_1set_1alignment
(JNIEnv *env, jclass that, jint misc, jfloat xalign, jfloat yalign)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_misc_set_alignment");
#endif
gtk_misc_set_alignment((GtkMisc*)misc, xalign, yalign);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_notebook_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_notebook_new");
#endif
return (jint)gtk_notebook_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_notebook_append_page
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1append_1page
(JNIEnv *env, jclass that, jint notebook, jint child, jint tab_label)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_notebook_append_page");
#endif
gtk_notebook_append_page((GtkNotebook*)notebook, (GtkWidget*)child, (GtkWidget*)tab_label);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_notebook_remove_page
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1remove_1page
(JNIEnv *env, jclass that, jint notebook, jint page_num)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_notebook_remove_page");
#endif
gtk_notebook_remove_page((GtkNotebook*)notebook, (gint)page_num);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_notebook_get_current_page
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1get_1current_1page
(JNIEnv *env, jclass that, jint notebook)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_notebook_get_current_page");
#endif
return (jint)gtk_notebook_get_current_page((GtkNotebook*)notebook);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_notebook_set_page
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1set_1page
(JNIEnv *env, jclass that, jint notebook, jint page_num)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_notebook_set_page");
#endif
gtk_notebook_set_page((GtkNotebook*)notebook, (gint)page_num);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_notebook_set_show_tabs
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1notebook_1set_1show_1tabs
(JNIEnv *env, jclass that, jint notebook, jboolean show_tabs)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_notebook_set_show_tabs");
#endif
gtk_notebook_set_show_tabs((GtkNotebook*)notebook, (gboolean)show_tabs);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_object_ref
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1ref
(JNIEnv *env, jclass that, jint object)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_ref");
#endif
gtk_object_ref((GtkObject*)object);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_object_set_user_data
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1set_1user_1data
(JNIEnv *env, jclass that, jint object, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_set_user_data");
#endif
gtk_object_set_user_data((GtkObject*)object, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_object_get_user_data
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1object_1get_1user_1data
(JNIEnv *env, jclass that, jint object)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_object_get_user_data");
#endif
return (jint)gtk_object_get_user_data((GtkObject*)object);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_pixmap_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1pixmap_1new
(JNIEnv *env, jclass that, jint pixmap, jint mask)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_pixmap_new");
#endif
return (jint)gtk_pixmap_new((GdkPixmap*)pixmap, (GdkBitmap*)mask);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_pixmap_set
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1pixmap_1set
(JNIEnv *env, jclass that, jint pixmap, jint val, jint mask)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_pixmap_set");
#endif
gtk_pixmap_set((GtkPixmap*)pixmap, (GdkPixmap*)val, (GdkBitmap*)mask);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_progress_configure
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1configure
(JNIEnv *env, jclass that, jint progress, jfloat value, jfloat min, jfloat max)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_progress_configure");
#endif
gtk_progress_configure((GtkProgress*)progress, value, min, max);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_progress_bar_new_with_adjustment
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1bar_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_progress_bar_new");
#endif
return (jint)gtk_progress_bar_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_progress_bar_set_bar_style
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1bar_1set_1bar_1style
(JNIEnv *env, jclass that, jint pbar, jint style)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_progress_bar_set_bar_style");
#endif
gtk_progress_bar_set_bar_style((GtkProgressBar*)pbar, (GtkProgressBarStyle)style);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_progress_bar_set_orientation
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1progress_1bar_1set_1orientation
(JNIEnv *env, jclass that, jint pbar, jint orientation)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_progress_bar_set_orientation");
#endif
gtk_progress_bar_set_orientation((GtkProgressBar*)pbar, (GtkProgressBarOrientation)orientation);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_radio_button_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1radio_1button_1new
(JNIEnv *env, jclass that, jint group)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_radio_button_new");
#endif
return (jint)gtk_radio_button_new((GSList*)group);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_radio_button_group
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1radio_1button_1group
(JNIEnv *env, jclass that, jint radio_button)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_radio_button_group");
#endif
return (jint)gtk_radio_button_group((GtkRadioButton*)radio_button);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_radio_menu_item_new_with_label
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1radio_1menu_1item_1new_1with_1label
(JNIEnv *env, jclass that, jint group, jbyteArray label)
{
jint rc;
jbyte *label1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_radio_menu_item_new_with_label");
#endif
if (label) {
label1 = (*env)->GetByteArrayElements(env, label, NULL);
}
rc = (jint)gtk_radio_menu_item_new_with_label((GSList*)group, (gchar*)label1);
if (label) {
(*env)->ReleaseByteArrayElements(env, label, label1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_range_get_adjustment
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1range_1get_1adjustment
(JNIEnv *env, jclass that, jint range)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_range_get_adjustment");
#endif
return (jint)gtk_range_get_adjustment((GtkRange*)range);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scale_set_digits
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scale_1set_1digits
(JNIEnv *env, jclass that, jint scale, jint digits)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scale_set_digits");
#endif
gtk_scale_set_digits((GtkScale*)scale, (gint)digits);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scale_set_draw_value
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scale_1set_1draw_1value
(JNIEnv *env, jclass that, jint scale, jboolean draw_value)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scale_set_draw_value");
#endif
gtk_scale_set_draw_value((GtkScale*)scale, (gboolean)draw_value);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scale_set_value_pos
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scale_1set_1value_1pos
(JNIEnv *env, jclass that, jint scale, jint pos)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scale_set_value_pos");
#endif
gtk_scale_set_value_pos((GtkScale*)scale, (GtkPositionType)pos);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scrolled_window_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1new
(JNIEnv *env, jclass that, jint hadjustment, jint vadjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scrolled_window_new");
#endif
return (jint)gtk_scrolled_window_new((GtkAdjustment*)hadjustment, (GtkAdjustment*)vadjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scrolled_window_get_hadjustment
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1get_1hadjustment
(JNIEnv *env, jclass that, jint scrolled_window)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scrolled_window_get_hadjustment");
#endif
return (jint)gtk_scrolled_window_get_hadjustment((GtkScrolledWindow*)scrolled_window);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scrolled_window_get_vadjustment
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1get_1vadjustment
(JNIEnv *env, jclass that, jint scrolled_window)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scrolled_window_get_vadjustment");
#endif
return (jint)gtk_scrolled_window_get_vadjustment((GtkScrolledWindow*)scrolled_window);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_scrolled_window_set_policy
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1scrolled_1window_1set_1policy
(JNIEnv *env, jclass that, jint scrolled_window, jint hscrollbar_policy, jint vscrollbar_policy)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_scrolled_window_set_policy");
#endif
gtk_scrolled_window_set_policy((GtkScrolledWindow*)scrolled_window, (GtkPolicyType)hscrollbar_policy, (GtkPolicyType)vscrollbar_policy);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_selection_owner_set
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1selection_1owner_1set
(JNIEnv *env, jclass that, jint widget, jint selection, jint time)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_selection_owner_set");
#endif
return (jint)gtk_selection_owner_set((GtkWidget*)widget, (GdkAtom)selection, (guint32)time);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_selection_convert
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1selection_1convert
(JNIEnv *env, jclass that, jint widget, jint selection, jint target, jint time)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_selection_convert");
#endif
return (jint)gtk_selection_convert((GtkWidget*)widget, (GdkAtom)selection, (GdkAtom)target, (guint32)time);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_signal_emit_stop_by_name
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1emit_1stop_1by_1name
(JNIEnv *env, jclass that, jint object, jbyteArray name)
{
jbyte *name1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_emit_stop_by_name");
#endif
if (name) {
name1 = (*env)->GetByteArrayElements(env, name, NULL);
}
gtk_signal_emit_stop_by_name((GtkObject*)object, (gchar*)name1);
if (name) {
(*env)->ReleaseByteArrayElements(env, name, name1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_signal_connect
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1connect
(JNIEnv *env, jclass that, jint object, jbyteArray name, jint func, jint func_data)
{
jint rc;
jbyte *name1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_connect");
#endif
if (name) {
name1 = (*env)->GetByteArrayElements(env, name, NULL);
}
rc = (jint)gtk_signal_connect((GtkObject*)object, (gchar*)name1, (GtkSignalFunc)func, (gpointer)func_data);
if (name) {
(*env)->ReleaseByteArrayElements(env, name, name1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_signal_connect_after
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1connect_1after
(JNIEnv *env, jclass that, jint object, jbyteArray name, jint func, jint func_data)
{
jint rc;
jbyte *name1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_connect_after");
#endif
if (name) {
name1 = (*env)->GetByteArrayElements(env, name, NULL);
}
rc = (jint)gtk_signal_connect_after((GtkObject*)object, (gchar*)name1, (GtkSignalFunc)func, (gpointer)func_data);
if (name) {
(*env)->ReleaseByteArrayElements(env, name, name1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_signal_handler_block_by_func
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1block_1by_1func
(JNIEnv *env, jclass that, jint object, jint func, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_handler_block_by_func");
#endif
gtk_signal_handler_block_by_func((GtkObject*)object, (GtkSignalFunc)func, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_signal_handler_unblock_by_func
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1signal_1handler_1unblock_1by_1func
(JNIEnv *env, jclass that, jint object, jint func, jint data)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_signal_handler_unblock_by_func");
#endif
gtk_signal_handler_unblock_by_func((GtkObject*)object, (GtkSignalFunc)func, (gpointer)data);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_style_copy
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1style_1copy
(JNIEnv *env, jclass that, jint style)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_style_copy");
#endif
return (jint)gtk_style_copy((GtkStyle*)style);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_style_unref
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1style_1unref
(JNIEnv *env, jclass that, jint style)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_style_unref");
#endif
gtk_style_unref((GtkStyle*)style);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_text_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1text_1new
(JNIEnv *env, jclass that, jint hadj, jint vadj)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_text_new");
#endif
return (jint)gtk_text_new((GtkAdjustment*)hadj, (GtkAdjustment*)vadj);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_text_set_word_wrap
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1text_1set_1word_1wrap
(JNIEnv *env, jclass that, jint text, jint word_wrap)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_text_set_word_wrap");
#endif
gtk_text_set_word_wrap((GtkText*)text, (gint)word_wrap);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_text_get_length
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1text_1get_1length
(JNIEnv *env, jclass that, jint text)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_text_get_length");
#endif
return (jint)gtk_text_get_length((GtkText*)text);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toggle_button_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toggle_1button_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toggle_button_new");
#endif
return (jint)gtk_toggle_button_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toggle_button_set_active
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toggle_1button_1set_1active
(JNIEnv *env, jclass that, jint toggle_button, jboolean is_active)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toggle_button_set_active");
#endif
gtk_toggle_button_set_active((GtkToggleButton*)toggle_button, (gboolean)is_active);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toggle_button_get_active
* Signature:
*/
JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toggle_1button_1get_1active
(JNIEnv *env, jclass that, jint toggle_button)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toggle_button_get_active");
#endif
return (jboolean)gtk_toggle_button_get_active((GtkToggleButton*)toggle_button);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toolbar_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1new
(JNIEnv *env, jclass that, jint orientation, jint style)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toolbar_new");
#endif
return (jint)gtk_toolbar_new((GtkOrientation)orientation, (GtkToolbarStyle)style);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toolbar_insert_element
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1insert_1element
(JNIEnv *env, jclass that, jint toolbar, jint type, jint widget, jbyteArray text, jbyteArray tooltip_text, jbyteArray tooltip_private_text, jint icon, jint callback, jint user_data, jint position)
{
jint rc;
jbyte *text1 = NULL;
jbyte *tooltip_text1 = NULL;
jbyte *tooltip_private_text1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toolbar_insert_element");
#endif
if (text) {
text1 = (*env)->GetByteArrayElements(env, text, NULL);
}
if (tooltip_text) {
tooltip_text1 = (*env)->GetByteArrayElements(env, tooltip_text, NULL);
}
if (tooltip_private_text) {
tooltip_private_text1 = (*env)->GetByteArrayElements(env, tooltip_private_text, NULL);
}
rc = (jint)gtk_toolbar_insert_element((GtkToolbar*)toolbar, (GtkToolbarChildType)type, (GtkWidget*)widget, (char*)text1, (char*)tooltip_text1, (char*)tooltip_private_text1, (GtkWidget*)icon, (GtkSignalFunc)callback, (gpointer)user_data, (gint)position);
if (text) {
(*env)->ReleaseByteArrayElements(env, text, text1, 0);
}
if (tooltip_text) {
(*env)->ReleaseByteArrayElements(env, tooltip_text, tooltip_text1, 0);
}
if (tooltip_private_text) {
(*env)->ReleaseByteArrayElements(env, tooltip_private_text, tooltip_private_text1, 0);
}
return rc;
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toolbar_insert_widget
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1insert_1widget
(JNIEnv *env, jclass that, jint toolbar, jint widget, jbyteArray tooltip_text, jbyteArray tooltip_private_text, jint position)
{
jbyte *tooltip_text1 = NULL;
jbyte *tooltip_private_text1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toolbar_insert_widget");
#endif
if (tooltip_text) {
tooltip_text1 = (*env)->GetByteArrayElements(env, tooltip_text, NULL);
}
if (tooltip_private_text) {
tooltip_private_text1 = (*env)->GetByteArrayElements(env, tooltip_private_text, NULL);
}
gtk_toolbar_insert_widget((GtkToolbar*)toolbar, (GtkWidget*)widget, (char*)tooltip_text1, (char*)tooltip_private_text1, (gint)position);
if (tooltip_text) {
(*env)->ReleaseByteArrayElements(env, tooltip_text, tooltip_text1, 0);
}
if (tooltip_private_text) {
(*env)->ReleaseByteArrayElements(env, tooltip_private_text, tooltip_private_text1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toolbar_set_orientation
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1set_1orientation
(JNIEnv *env, jclass that, jint toolbar, jint orientation)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toolbar_set_orientation");
#endif
gtk_toolbar_set_orientation((GtkToolbar*)toolbar, (GtkOrientation)orientation);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_toolbar_set_button_relief
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1toolbar_1set_1button_1relief
(JNIEnv *env, jclass that, jint toolbar, jint relief)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_toolbar_set_button_relief");
#endif
gtk_toolbar_set_button_relief((GtkToolbar*)toolbar, (GtkReliefStyle)relief);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_tooltips_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tooltips_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_tooltips_new");
#endif
return (jint)gtk_tooltips_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_tooltips_set_tip
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1tooltips_1set_1tip
(JNIEnv *env, jclass that, jint tooltips, jint widget, jbyteArray tip_text, jbyteArray tip_private)
{
jbyte *tip_text1 = NULL;
jbyte *tip_private1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_tooltips_set_tip");
#endif
if (tip_text) {
tip_text1 = (*env)->GetByteArrayElements(env, tip_text, NULL);
}
if (tip_private) {
tip_private1 = (*env)->GetByteArrayElements(env, tip_private, NULL);
}
gtk_tooltips_set_tip((GtkTooltips*)tooltips, (GtkWidget*)widget, (gchar*)tip_text1, (gchar*)tip_private1);
if (tip_text) {
(*env)->ReleaseByteArrayElements(env, tip_text, tip_text1, 0);
}
if (tip_private) {
(*env)->ReleaseByteArrayElements(env, tip_private, tip_private1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_vbox_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vbox_1new
(JNIEnv *env, jclass that, jboolean homogeneous, jint spacing)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_vbox_new");
#endif
return (jint)gtk_vbox_new((gboolean)homogeneous, (gint)spacing);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_vscale_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vscale_1new
(JNIEnv *env, jclass that, jint adjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_vscale_new");
#endif
return (jint)gtk_vscale_new((GtkAdjustment*)adjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_vscrollbar_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vscrollbar_1new
(JNIEnv *env, jclass that, jint adjustment)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_vscrollbar_new");
#endif
return (jint)gtk_vscrollbar_new((GtkAdjustment*)adjustment);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_vseparator_new
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1vseparator_1new
(JNIEnv *env, jclass that)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_vseparator_new");
#endif
return (jint)gtk_vseparator_new();
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_destroy
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1destroy
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_destroy");
#endif
gtk_widget_destroy((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_show
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1show
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_show");
#endif
gtk_widget_show((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_show_now
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1show_1now
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_show_now");
#endif
gtk_widget_show_now((GtkWidget*)widget);
}
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1show_1all
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_show_all");
#endif
gtk_widget_show_all((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_hide
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1hide
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_hide");
#endif
gtk_widget_hide((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_realize
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1realize
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_realize");
#endif
gtk_widget_realize((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_queue_draw
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1queue_1draw
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_queue_draw");
#endif
gtk_widget_queue_draw((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_size_request
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1size_1request
(JNIEnv *env, jclass that, jint widget, jobject requisition)
{
DECL_GLOB(pGlob)
GtkRequisition requisition_struct, *requisition1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_size_request");
#endif
if (requisition) {
requisition1 = &requisition_struct;
cacheGtkRequisitionFids(env, requisition, &PGLOB(GtkRequisitionFc));
getGtkRequisitionFields(env, requisition, requisition1, &PGLOB(GtkRequisitionFc));
}
gtk_widget_size_request((GtkWidget*)widget, (GtkRequisition*)requisition1);
if (requisition) {
setGtkRequisitionFields(env, requisition, requisition1, &PGLOB(GtkRequisitionFc));
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_size_allocate
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1size_1allocate
(JNIEnv *env, jclass that, jint widget, jobject allocation)
{
DECL_GLOB(pGlob)
GtkAllocation allocation_struct, *allocation1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_size_allocate");
#endif
if (allocation) {
allocation1 = &allocation_struct;
cacheGtkAllocationFids(env, allocation, &PGLOB(GtkAllocationFc));
getGtkAllocationFields(env, allocation, allocation1, &PGLOB(GtkAllocationFc));
}
gtk_widget_size_allocate((GtkWidget*)widget, (GtkAllocation*)allocation1);
if (allocation) {
setGtkAllocationFields(env, allocation, allocation1, &PGLOB(GtkAllocationFc));
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_add_accelerator
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1add_1accelerator
(JNIEnv *env, jclass that, jint widget, jbyteArray accel_signal, jint accel_group, jint accel_key, jint accel_mods, jint accel_flags)
{
jbyte *accel_signal1 = NULL;
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_add_accelerator");
#endif
if (accel_signal) {
accel_signal1 = (*env)->GetByteArrayElements(env, accel_signal, NULL);
}
gtk_widget_add_accelerator((GtkWidget*)widget, (gchar*)accel_signal1, (GtkAccelGroup*)accel_group, accel_key, accel_mods, (GtkAccelFlags)accel_flags);
if (accel_signal) {
(*env)->ReleaseByteArrayElements(env, accel_signal, accel_signal1, 0);
}
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_remove_accelerator
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1remove_1accelerator
(JNIEnv *env, jclass that, jint widget, jint accel_group, jint accel_key, jint accel_mods)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_remove_accelerator");
#endif
gtk_widget_remove_accelerator((GtkWidget*)widget, (GtkAccelGroup*)accel_group, accel_key, accel_mods);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_event
* Signature:
*/
JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1event
(JNIEnv *env, jclass that, jint widget, jint event)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_event");
#endif
return (jint)gtk_widget_event((GtkWidget*)widget, (GdkEvent*)event);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_reparent
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1reparent
(JNIEnv *env, jclass that, jint widget, jint new_parent)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_reparent");
#endif
gtk_widget_reparent((GtkWidget*)widget, (GtkWidget*)new_parent);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_grab_focus
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1grab_1focus
(JNIEnv *env, jclass that, jint widget)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_grab_focus");
#endif
gtk_widget_grab_focus((GtkWidget*)widget);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_set_state
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1state
(JNIEnv *env, jclass that, jint widget, jint state)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_set_state");
#endif
gtk_widget_set_state((GtkWidget*)widget, (GtkStateType)state);
}
/*
* Class: org_eclipse_swt_internal_gtk_OS
* Method: gtk_widget_set_sensitive
* Signature:
*/
JNIEXPORT void JNICALL Java_org_eclipse_swt_internal_gtk_OS_gtk_1widget_1set_1sensitive
(JNIEnv *env, jclass that, jint widget, jboolean sensitive)
{
#ifdef DEBUG_CALL_PRINTS
fprintf(stderr, "gtk_widget_set_sensitive&q