Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/macosx/native_NOTIOS/sun/awt/AWTWindow.h
38829 views
/*1* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _AWTWINDOW_H26#define _AWTWINDOW_H2728#import <Cocoa/Cocoa.h>29#import <JavaNativeFoundation/JavaNativeFoundation.h>3031#import "CMenuBar.h"32#import "LWCToolkit.h"333435@class AWTView;3637@interface AWTWindow : NSObject <NSWindowDelegate> {38@private39JNFWeakJObjectWrapper *javaPlatformWindow;40CMenuBar *javaMenuBar;41NSSize javaMinSize;42NSSize javaMaxSize;43jint styleBits;44BOOL isEnabled;45NSWindow *nsWindow;46AWTWindow *ownerWindow;47jint preFullScreenLevel;48BOOL isMinimizing;49}5051// An instance of either AWTWindow_Normal or AWTWindow_Panel52@property (nonatomic, retain) NSWindow *nsWindow;5354@property (nonatomic, retain) JNFWeakJObjectWrapper *javaPlatformWindow;55@property (nonatomic, retain) CMenuBar *javaMenuBar;56@property (nonatomic, retain) AWTWindow *ownerWindow;57@property (nonatomic) NSSize javaMinSize;58@property (nonatomic) NSSize javaMaxSize;59@property (nonatomic) jint styleBits;60@property (nonatomic) BOOL isEnabled;61@property (nonatomic) jint preFullScreenLevel;62@property (nonatomic) BOOL isMinimizing;636465- (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow66ownerWindow:owner67styleBits:(jint)styleBits68frameRect:(NSRect)frameRect69contentView:(NSView *)contentView;7071- (BOOL) isTopmostWindowUnderMouse;7273// NSWindow overrides delegate methods74- (BOOL) canBecomeKeyWindow;75- (BOOL) canBecomeMainWindow;76- (BOOL) worksWhenModal;77- (void)sendEvent:(NSEvent *)event;7879+ (void) setLastKeyWindow:(AWTWindow *)window;80+ (AWTWindow *) lastKeyWindow;8182@end8384@interface AWTWindow_Normal : NSWindow85- (id) initWithDelegate:(AWTWindow *)delegate86frameRect:(NSRect)rect87styleMask:(NSUInteger)styleMask88contentView:(NSView *)view;89@end9091@interface AWTWindow_Panel : NSPanel92- (id) initWithDelegate:(AWTWindow *)delegate93frameRect:(NSRect)rect94styleMask:(NSUInteger)styleMask95contentView:(NSView *)view;96@end9798#endif _AWTWINDOW_H99100101