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

Print this page

        

*** 33,51 **** #import "LWCToolkit.h" @class AWTView; ! @interface AWTWindow : NSPanel <NSWindowDelegate> { @private JNFWeakJObjectWrapper *javaPlatformWindow; CMenuBar *javaMenuBar; NSSize javaMinSize; NSSize javaMaxSize; jint styleBits; } @property (nonatomic, retain) JNFWeakJObjectWrapper *javaPlatformWindow; @property (nonatomic, retain) CMenuBar *javaMenuBar; @property (nonatomic) NSSize javaMinSize; @property (nonatomic) NSSize javaMaxSize; @property (nonatomic) jint styleBits; --- 33,54 ---- #import "LWCToolkit.h" @class AWTView; ! @interface AWTWindow : NSObject <NSWindowDelegate> { @private JNFWeakJObjectWrapper *javaPlatformWindow; CMenuBar *javaMenuBar; NSSize javaMinSize; NSSize javaMaxSize; jint styleBits; } + // 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;
*** 53,61 **** - (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow styleBits:(jint)styleBits frameRect:(NSRect)frameRect contentView:(NSView *)contentView; ! - (void) adjustGrowBoxWindow; @end #endif _AWTWINDOW_H --- 56,83 ---- - (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow styleBits:(jint)styleBits frameRect:(NSRect)frameRect contentView:(NSView *)contentView; ! // 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