diff options
author | Silenio Quarti <silenio> | 2005-09-07 16:17:01 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-09-07 16:17:01 +0000 |
commit | 8e78716f8c1d4debd68c5524c6e6e931e7b5a20b (patch) | |
tree | b879d2be8074ae8230019c6adc82ba37f5f8ca34 /bundles/org.eclipse.swt/Eclipse SWT PI | |
parent | fd7703d353b9d70a37716074044379efab89eff0 (diff) | |
download | eclipse.platform.swt-8e78716f8c1d4debd68c5524c6e6e931e7b5a20b.tar.gz eclipse.platform.swt-8e78716f8c1d4debd68c5524c6e6e931e7b5a20b.tar.xz eclipse.platform.swt-8e78716f8c1d4debd68c5524c6e6e931e7b5a20b.zip |
SWT.Settings callback
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
4 files changed, 22 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c index ff7d260ffd..6b51a2060b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c @@ -59,6 +59,18 @@ fail: } #endif +#ifndef NO_AEInstallEventHandler +JNIEXPORT jint JNICALL OS_NATIVE(AEInstallEventHandler) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jboolean arg4) +{ + jint rc = 0; + OS_NATIVE_ENTER(env, that, AEInstallEventHandler_FUNC); + rc = (jint)AEInstallEventHandler((AEEventClass)arg0, (AEEventID)arg1, (AEEventHandlerUPP)arg2, (long)arg3, arg4); + OS_NATIVE_EXIT(env, that, AEInstallEventHandler_FUNC); + return rc; +} +#endif + #ifndef NO_AEProcessAppleEvent JNIEXPORT jint JNICALL OS_NATIVE(AEProcessAppleEvent) (JNIEnv *env, jclass that, jobject arg0) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c index 526bdcea68..449f0465ce 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c @@ -14,11 +14,12 @@ #ifdef NATIVE_STATS -int OS_nativeFunctionCount = 854; -int OS_nativeFunctionCallCount[854]; +int OS_nativeFunctionCount = 855; +int OS_nativeFunctionCallCount[855]; char * OS_nativeFunctionNames[] = { "AECountItems", "AEGetNthPtr", + "AEInstallEventHandler", "AEProcessAppleEvent", "ATSFontGetPostScriptName", "ATSUBatchBreakLines", diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h index c95991ff4a..0daeac2817 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h @@ -23,6 +23,7 @@ extern char* OS_nativeFunctionNames[]; typedef enum { AECountItems_FUNC, AEGetNthPtr_FUNC, + AEInstallEventHandler_FUNC, AEProcessAppleEvent_FUNC, ATSFontGetPostScriptName_FUNC, ATSUBatchBreakLines_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java index 61f642a585..fbc82b0594 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java @@ -51,6 +51,11 @@ public class OS extends Platform { public static final int inToolbarButton = 13; public static final int italic = 2; public static final int k32ARGBPixelFormat = 0x00000020; + public static final int kAppearanceEventClass = ('a'<<24) + ('p'<<16) + ('p'<<8) + 'r'; + public static final int kAEAppearanceChanged = ('t'<<24) + ('h'<<16) + ('m'<<8) + 'e'; + public static final int kAESystemFontChanged = ('s'<<24) + ('y'<<16) + ('s'<<8) + 'f'; + public static final int kAESmallSystemFontChanged = ('s'<<24) + ('s'<<16) + ('f'<<8) + 'n'; + public static final int kAEViewsFontChanged = ('v'<<24) + ('f'<<16) + ('n'<<8) + 't'; public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't'; public static final int kAlertCautionAlert = 2; public static final int kAlertCautionIcon = ('c'<<24) + ('a'<<16) + ('u'<<8) + 't'; @@ -776,6 +781,7 @@ public static final native int kPMGraphicsContextCoreGraphics(); public static final native int ActiveNonFloatingWindow(); public static final native int AECountItems(AEDesc theAEDescList, int[] theCount); public static final native int AEGetNthPtr(AEDesc theAEDescList, int index, int desiredType, int[] theAEKeyword, int[] typeCode, int dataPtr, int maximumSize, int[] actualSize); +public static final native int AEInstallEventHandler(int theAEEventClass, int theAEEventID, int handler, int handlerRefcon, boolean isSysHandler); public static final native int AEProcessAppleEvent(EventRecord theEventRecord); public static final native int ATSFontGetPostScriptName(int iFont, int iOptions, int[] oName); public static final native int ATSUBatchBreakLines(int iTextLayout, int iRangeStart, int iRangeLength, int iLineWidth, int[] oBreakCount); |