Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2004-04-29 18:44:12 +0000
committerGrant Gayed2004-04-29 18:44:12 +0000
commitfe63a1d1cb75f1d376b16b93fd612025a728d05a (patch)
treebca2b19f1c3090cdba7a61759191d67e07c7c3e0 /bundles/org.eclipse.swt/Eclipse SWT PI/gtk
parent6641a1acc4b2c8b489453c6769773fa83e8aa5b5 (diff)
downloadeclipse.platform.swt-fe63a1d1cb75f1d376b16b93fd612025a728d05a.tar.gz
eclipse.platform.swt-fe63a1d1cb75f1d376b16b93fd612025a728d05a.tar.xz
eclipse.platform.swt-fe63a1d1cb75f1d376b16b93fd612025a728d05a.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk.c20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.c37
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.h10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java19
5 files changed, 88 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk.c
index 214e76b3f8..31b8b70935 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk.c
@@ -514,6 +514,16 @@ JNIEXPORT void JNICALL ATK_NATIVE(memmove__ILorg_eclipse_swt_internal_accessibil
}
#endif
+#ifndef NO_memmove__ILorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2
+JNIEXPORT void JNICALL ATK_NATIVE(memmove__ILorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2)
+ (JNIEnv *env, jclass that, jint arg0, jobject arg1)
+{
+ NATIVE_ENTER(env, that, "memmove__ILorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2\n")
+ if (arg1) getAtkHypertextIfaceFields(env, arg1, (AtkHypertextIface *)arg0);
+ NATIVE_EXIT(env, that, "memmove__ILorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2\n")
+}
+#endif
+
#ifndef NO_memmove__ILorg_eclipse_swt_internal_accessibility_gtk_AtkObjectClass_2
JNIEXPORT void JNICALL ATK_NATIVE(memmove__ILorg_eclipse_swt_internal_accessibility_gtk_AtkObjectClass_2)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
@@ -608,6 +618,16 @@ JNIEXPORT void JNICALL ATK_NATIVE(memmove__Lorg_eclipse_swt_internal_accessibili
}
#endif
+#ifndef NO_memmove__Lorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2I
+JNIEXPORT void JNICALL ATK_NATIVE(memmove__Lorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2I)
+ (JNIEnv *env, jclass that, jobject arg0, jint arg1)
+{
+ NATIVE_ENTER(env, that, "memmove__Lorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2I\n")
+ if (arg0) setAtkHypertextIfaceFields(env, arg0, (AtkHypertextIface *)arg1);
+ NATIVE_EXIT(env, that, "memmove__Lorg_eclipse_swt_internal_accessibility_gtk_AtkHypertextIface_2I\n")
+}
+#endif
+
#ifndef NO_memmove__Lorg_eclipse_swt_internal_accessibility_gtk_AtkObjectClass_2I
JNIEXPORT void JNICALL ATK_NATIVE(memmove__Lorg_eclipse_swt_internal_accessibility_gtk_AtkObjectClass_2I)
(JNIEnv *env, jclass that, jobject arg0, jint arg1)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.c
index 1a5b526b74..0b18c5f3aa 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.c
@@ -129,6 +129,43 @@ void setAtkComponentIfaceFields(JNIEnv *env, jobject lpObject, AtkComponentIface
}
#endif
+#ifndef NO_AtkHypertextIface
+typedef struct AtkHypertextIface_FID_CACHE {
+ int cached;
+ jclass clazz;
+ jfieldID get_link, get_n_links, get_link_index;
+} AtkHypertextIface_FID_CACHE;
+
+AtkHypertextIface_FID_CACHE AtkHypertextIfaceFc;
+
+void cacheAtkHypertextIfaceFields(JNIEnv *env, jobject lpObject)
+{
+ if (AtkHypertextIfaceFc.cached) return;
+ AtkHypertextIfaceFc.clazz = (*env)->GetObjectClass(env, lpObject);
+ AtkHypertextIfaceFc.get_link = (*env)->GetFieldID(env, AtkHypertextIfaceFc.clazz, "get_link", "I");
+ AtkHypertextIfaceFc.get_n_links = (*env)->GetFieldID(env, AtkHypertextIfaceFc.clazz, "get_n_links", "I");
+ AtkHypertextIfaceFc.get_link_index = (*env)->GetFieldID(env, AtkHypertextIfaceFc.clazz, "get_link_index", "I");
+ AtkHypertextIfaceFc.cached = 1;
+}
+
+AtkHypertextIface *getAtkHypertextIfaceFields(JNIEnv *env, jobject lpObject, AtkHypertextIface *lpStruct)
+{
+ if (!AtkHypertextIfaceFc.cached) cacheAtkHypertextIfaceFields(env, lpObject);
+ lpStruct->get_link = (AtkHyperlink *(*)())(*env)->GetIntField(env, lpObject, AtkHypertextIfaceFc.get_link);
+ lpStruct->get_n_links = (gint (*)())(*env)->GetIntField(env, lpObject, AtkHypertextIfaceFc.get_n_links);
+ lpStruct->get_link_index = (gint (*)())(*env)->GetIntField(env, lpObject, AtkHypertextIfaceFc.get_link_index);
+ return lpStruct;
+}
+
+void setAtkHypertextIfaceFields(JNIEnv *env, jobject lpObject, AtkHypertextIface *lpStruct)
+{
+ if (!AtkHypertextIfaceFc.cached) cacheAtkHypertextIfaceFields(env, lpObject);
+ (*env)->SetIntField(env, lpObject, AtkHypertextIfaceFc.get_link, (jint)lpStruct->get_link);
+ (*env)->SetIntField(env, lpObject, AtkHypertextIfaceFc.get_n_links, (jint)lpStruct->get_n_links);
+ (*env)->SetIntField(env, lpObject, AtkHypertextIfaceFc.get_link_index, (jint)lpStruct->get_link_index);
+}
+#endif
+
#ifndef NO_AtkObjectClass
typedef struct AtkObjectClass_FID_CACHE {
int cached;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.h
index 2fe6c92658..819d2ffd85 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/atk_structs.h
@@ -35,6 +35,16 @@ void setAtkComponentIfaceFields(JNIEnv *env, jobject lpObject, AtkComponentIface
#define AtkComponentIface_sizeof() 0
#endif
+#ifndef NO_AtkHypertextIface
+AtkHypertextIface *getAtkHypertextIfaceFields(JNIEnv *env, jobject lpObject, AtkHypertextIface *lpStruct);
+void setAtkHypertextIfaceFields(JNIEnv *env, jobject lpObject, AtkHypertextIface *lpStruct);
+#define AtkHypertextIface_sizeof() sizeof(AtkHypertextIface)
+#else
+#define getAtkHypertextIfaceFields(a,b,c) NULL
+#define setAtkHypertextIfaceFields(a,b,c)
+#define AtkHypertextIface_sizeof() 0
+#endif
+
#ifndef NO_AtkObjectClass
AtkObjectClass *getAtkObjectClassFields(JNIEnv *env, jobject lpObject, AtkObjectClass *lpStruct);
void setAtkObjectClassFields(JNIEnv *env, jobject lpObject, AtkObjectClass *lpStruct);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java
index 663d15c6a4..b28b461456 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java
@@ -126,6 +126,7 @@ public class ATK extends OS {
public static final synchronized native int /*long*/ gtk_widget_get_toplevel (int /*long*/ widget);
public static final synchronized native void memmove (AtkActionIface dest, int /*long*/ src);
public static final synchronized native void memmove (AtkComponentIface dest, int /*long*/ src);
+ public static final synchronized native void memmove (AtkHypertextIface dest, int /*long*/ src);
public static final synchronized native void memmove (AtkObjectClass dest, int /*long*/ src);
public static final synchronized native void memmove (AtkObjectFactoryClass dest, int /*long*/ src);
public static final synchronized native void memmove (AtkSelectionIface dest, int /*long*/ src);
@@ -135,6 +136,7 @@ public class ATK extends OS {
public static final synchronized native void memmove (GTypeQuery dest, int /*long*/ src, int /*long*/ size);
public static final synchronized native void memmove (int /*long*/ dest, AtkActionIface src);
public static final synchronized native void memmove (int /*long*/ dest, AtkComponentIface src);
+ public static final synchronized native void memmove (int /*long*/ dest, AtkHypertextIface src);
public static final synchronized native void memmove (int /*long*/ dest, AtkObjectClass src);
public static final synchronized native void memmove (int /*long*/ dest, AtkObjectFactoryClass src);
public static final synchronized native void memmove (int /*long*/ dest, AtkSelectionIface src);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java
new file mode 100644
index 0000000000..ab0ddba294
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2003 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.
+ *******************************************************************************/
+package org.eclipse.swt.internal.accessibility.gtk;
+
+
+public class AtkHypertextIface {
+ public int /*long*/ get_link;
+ public int /*long*/ get_n_links;
+ public int /*long*/ get_link_index;
+} \ No newline at end of file

Back to the top