585 return jRect; |
585 return jRect; |
586 } |
586 } |
587 |
587 |
588 /* |
588 /* |
589 * Class: sun_lwawt_macosx_CWrapper$NSView |
589 * Class: sun_lwawt_macosx_CWrapper$NSView |
590 * Method: enterFullScreenMode |
|
591 * Signature: (J)V |
|
592 */ |
|
593 JNIEXPORT void JNICALL |
|
594 Java_sun_lwawt_macosx_CWrapper_00024NSView_enterFullScreenMode |
|
595 (JNIEnv *env, jclass cls, jlong viewPtr) |
|
596 { |
|
597 JNF_COCOA_ENTER(env); |
|
598 |
|
599 NSView *view = (NSView *)jlong_to_ptr(viewPtr); |
|
600 [ThreadUtilities performOnMainThreadWaiting:NO block:^(){ |
|
601 NSScreen *screen = [[view window] screen]; |
|
602 NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO], NSFullScreenModeAllScreens, nil]; |
|
603 [view enterFullScreenMode:screen withOptions:opts]; |
|
604 }]; |
|
605 |
|
606 JNF_COCOA_EXIT(env); |
|
607 } |
|
608 |
|
609 /* |
|
610 * Class: sun_lwawt_macosx_CWrapper$NSView |
|
611 * Method: exitFullScreenMode |
|
612 * Signature: (J)V |
|
613 */ |
|
614 JNIEXPORT void JNICALL |
|
615 Java_sun_lwawt_macosx_CWrapper_00024NSView_exitFullScreenMode |
|
616 (JNIEnv *env, jclass cls, jlong viewPtr) |
|
617 { |
|
618 JNF_COCOA_ENTER(env); |
|
619 |
|
620 NSView *view = (NSView *)jlong_to_ptr(viewPtr); |
|
621 [ThreadUtilities performOnMainThreadWaiting:NO block:^(){ |
|
622 [view exitFullScreenModeWithOptions:nil]; |
|
623 }]; |
|
624 |
|
625 JNF_COCOA_EXIT(env); |
|
626 } |
|
627 |
|
628 /* |
|
629 * Class: sun_lwawt_macosx_CWrapper$NSView |
|
630 * Method: window |
590 * Method: window |
631 * Signature: (J)J |
591 * Signature: (J)J |
632 */ |
592 */ |
633 JNIEXPORT jlong JNICALL |
593 JNIEXPORT jlong JNICALL |
634 Java_sun_lwawt_macosx_CWrapper_00024NSView_window |
594 Java_sun_lwawt_macosx_CWrapper_00024NSView_window |