src/macosx/native/sun/awt/AWTWindow.h

Print this page

        

*** 33,52 **** #import "LWCToolkit.h" @class AWTView; ! @interface AWTWindow : NSPanel <NSWindowDelegate> { @private JNFWeakJObjectWrapper *javaPlatformWindow; CMenuBar *javaMenuBar; NSSize javaMinSize; NSSize javaMaxSize; jint styleBits; BOOL isEnabled; } @property (nonatomic, retain) JNFWeakJObjectWrapper *javaPlatformWindow; @property (nonatomic, retain) CMenuBar *javaMenuBar; @property (nonatomic) NSSize javaMinSize; @property (nonatomic) NSSize javaMaxSize; @property (nonatomic) jint styleBits; --- 33,55 ---- #import "LWCToolkit.h" @class AWTView; ! @interface AWTWindow : NSObject <NSWindowDelegate> { @private JNFWeakJObjectWrapper *javaPlatformWindow; CMenuBar *javaMenuBar; NSSize javaMinSize; NSSize javaMaxSize; jint styleBits; BOOL isEnabled; } + // An instance of either AWTWindow_Normal or AWTWindow_Panel + @property (nonatomic, retain) NSWindow *nsWindow; + @property (nonatomic, retain) JNFWeakJObjectWrapper *javaPlatformWindow; @property (nonatomic, retain) CMenuBar *javaMenuBar; @property (nonatomic) NSSize javaMinSize; @property (nonatomic) NSSize javaMaxSize; @property (nonatomic) jint styleBits;
*** 55,64 **** - (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow styleBits:(jint)styleBits frameRect:(NSRect)frameRect contentView:(NSView *)contentView; - - (void) adjustGrowBoxWindow; - (BOOL) isTopmostWindowUnderMouse; @end #endif _AWTWINDOW_H --- 58,87 ---- - (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow styleBits:(jint)styleBits frameRect:(NSRect)frameRect contentView:(NSView *)contentView; - (BOOL) isTopmostWindowUnderMouse; + + // NSWindow overrides delegate methods + - (BOOL) canBecomeKeyWindow; + - (BOOL) canBecomeMainWindow; + - (BOOL) worksWhenModal; + - (void)sendEvent:(NSEvent *)event; + + @end + + @interface AWTWindow_Normal : NSWindow + - (id) initWithDelegate:(AWTWindow *)delegate + frameRect:(NSRect)rect + styleMask:(NSUInteger)styleMask + contentView:(NSView *)view; + @end + + @interface AWTWindow_Panel : NSPanel + - (id) initWithDelegate:(AWTWindow *)delegate + frameRect:(NSRect)rect + styleMask:(NSUInteger)styleMask + contentView:(NSView *)view; @end #endif _AWTWINDOW_H