Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 104280 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java (-1 / +13 lines)
Lines 103-109 Link Here
103
 * @see SWT
103
 * @see SWT
104
 */
104
 */
105
public class Shell extends Decorations {
105
public class Shell extends Decorations {
106
	int shellHandle, windowGroup;
106
	/**
107
	 * the handle to the OS shell resource 
108
	 * (Warning: This field is platform dependent)
109
	 * <p>
110
	 * <b>IMPORTANT:</b> This field is <em>not</em> part of the SWT
111
	 * public API. It is marked public only so that it can be shared
112
	 * within the packages provided by SWT. It is not available on all
113
	 * platforms and should never be accessed from application code.
114
	 * </p>
115
	 */
116
	public int shellHandle;
117
	
118
	int windowGroup;
107
	boolean resized, moved, drawing, reshape, update, activate, disposed, opened;
119
	boolean resized, moved, drawing, reshape, update, activate, disposed, opened;
108
	int invalRgn;
120
	int invalRgn;
109
	Control lastActive;
121
	Control lastActive;
(-)Eclipse SWT PI/carbon/library/os.c (+12 lines)
Lines 2435-2440 Link Here
2435
}
2435
}
2436
#endif
2436
#endif
2437
2437
2438
#ifndef NO_ChangeWindowAttributes
2439
JNIEXPORT jint JNICALL OS_NATIVE(ChangeWindowAttributes)
2440
	(JNIEnv *env, jclass that, jint window, jint setAttributes, jint clearAttributes)
2441
{
2442
    jint rc = 0;
2443
	OS_NATIVE_ENTER(env, that, ChangeWindowAttributes_FUNC);
2444
    rc = (jint) ChangeWindowAttributes((WindowRef)window, (WindowAttributes) setAttributes, (WindowAttributes) clearAttributes);
2445
	OS_NATIVE_EXIT(env, that, ChangeWindowAttributes_FUNC);
2446
	return rc;
2447
}
2448
#endif
2449
2438
#ifndef NO_CPSEnableForegroundOperation
2450
#ifndef NO_CPSEnableForegroundOperation
2439
JNIEXPORT jint JNICALL OS_NATIVE(CPSEnableForegroundOperation)
2451
JNIEXPORT jint JNICALL OS_NATIVE(CPSEnableForegroundOperation)
2440
	(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2, jint arg3, jint arg4)
2452
	(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2, jint arg3, jint arg4)
(-)Eclipse SWT PI/carbon/library/os_stats.h (+1 lines)
Lines 212-217 Link Here
212
	CGShadingCreateRadial_FUNC,
212
	CGShadingCreateRadial_FUNC,
213
	CGShadingRelease_FUNC,
213
	CGShadingRelease_FUNC,
214
	CGWarpMouseCursorPosition_FUNC,
214
	CGWarpMouseCursorPosition_FUNC,
215
	ChangeWindowAttributes_FUNC,
215
	CPSEnableForegroundOperation_FUNC,
216
	CPSEnableForegroundOperation_FUNC,
216
	CPSSetProcessName_FUNC,
217
	CPSSetProcessName_FUNC,
217
	CalcMenuSize_FUNC,
218
	CalcMenuSize_FUNC,
(-)Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java (+4 lines)
Lines 41-46 Link Here
41
	public static final int inStructure = 15;
41
	public static final int inStructure = 15;
42
	public static final int inZoomIn = 7;
42
	public static final int inZoomIn = 7;
43
	public static final int inZoomOut = 8;
43
	public static final int inZoomOut = 8;
44
	public static final int inToolbarButton = 13;	
44
	public static final int italic = 2;
45
	public static final int italic = 2;
45
	public static final int k32ARGBPixelFormat = 0x00000020;
46
	public static final int k32ARGBPixelFormat = 0x00000020;
46
	public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't';
47
	public static final int kAEQuitApplication = ('q'<<24) + ('u'<<16) + ('i'<<8) + 't';
Lines 386-391 Link Here
386
	public static final int kEventWindowHidden = 25;
387
	public static final int kEventWindowHidden = 25;
387
	public static final int kEventWindowHitTest = 1003;
388
	public static final int kEventWindowHitTest = 1003;
388
	public static final int kEventWindowShown = 24;
389
	public static final int kEventWindowShown = 24;
390
	public static final int kEventWindowToolbarSwitchMode = 150;
389
	public static final int kEventWindowUpdate = 1;
391
	public static final int kEventWindowUpdate = 1;
390
	public static final int kFMIterationCompleted = -980;
392
	public static final int kFMIterationCompleted = -980;
391
	public static final int kFloatingWindowClass = 5;
393
	public static final int kFloatingWindowClass = 5;
Lines 687-692 Link Here
687
	public static final int kWindowResizableAttribute = (1 << 4);
689
	public static final int kWindowResizableAttribute = (1 << 4);
688
	public static final int kWindowStandardHandlerAttribute = (1 << 25);
690
	public static final int kWindowStandardHandlerAttribute = (1 << 25);
689
	public static final int kWindowStructureRgn = 32;
691
	public static final int kWindowStructureRgn = 32;
692
	public static final int kWindowToolbarButtonAttribute = (1 << 6);
690
	public static final int kWindowUpdateRgn= 34;
693
	public static final int kWindowUpdateRgn= 34;
691
	public static final int mouseDown = 1;
694
	public static final int mouseDown = 1;
692
	public static final int noErr = 0;
695
	public static final int noErr = 0;
Lines 941-946 Link Here
941
public static final native int CGShadingCreateRadial (int colorspace, CGPoint start, float startRadius, CGPoint end, float endRadius, int function, boolean extendStart, boolean extendEnd);
944
public static final native int CGShadingCreateRadial (int colorspace, CGPoint start, float startRadius, CGPoint end, float endRadius, int function, boolean extendStart, boolean extendEnd);
942
public static final native void CGShadingRelease (int shading);
945
public static final native void CGShadingRelease (int shading);
943
public static final native int CGWarpMouseCursorPosition (CGPoint newCursorPosition);
946
public static final native int CGWarpMouseCursorPosition (CGPoint newCursorPosition);
947
public static final native int ChangeWindowAttributes(int windowHandle, int setAttributes, int clearAttributes);
944
public static final native int CPSEnableForegroundOperation(int[] psn, int arg2, int arg3, int arg4, int arg5);
948
public static final native int CPSEnableForegroundOperation(int[] psn, int arg2, int arg3, int arg4, int arg5);
945
public static final native int CPSSetProcessName(int[] psn, byte[] name);
949
public static final native int CPSSetProcessName(int[] psn, byte[] name);
946
public static final native int CallNextEventHandler(int nextHandler, int eventRefHandle);
950
public static final native int CallNextEventHandler(int nextHandler, int eventRefHandle);

Return to bug 104280