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

Print this page




  45     BOOL isEnabled;
  46     NSWindow *nsWindow;
  47 }
  48 
  49 // An instance of either AWTWindow_Normal or AWTWindow_Panel
  50 @property (nonatomic, retain) NSWindow *nsWindow;
  51 
  52 @property (nonatomic, retain) JNFWeakJObjectWrapper *javaPlatformWindow;
  53 @property (nonatomic, retain) CMenuBar *javaMenuBar;
  54 @property (nonatomic) NSSize javaMinSize;
  55 @property (nonatomic) NSSize javaMaxSize;
  56 @property (nonatomic) jint styleBits;
  57 @property (nonatomic) BOOL isEnabled;
  58 
  59 - (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow
  60                     styleBits:(jint)styleBits
  61                     frameRect:(NSRect)frameRect
  62                   contentView:(NSView *)contentView;
  63 
  64 - (BOOL) isTopmostWindowUnderMouse;

  65 
  66 // NSWindow overrides delegate methods
  67 - (BOOL) canBecomeKeyWindow;
  68 - (BOOL) canBecomeMainWindow;
  69 - (BOOL) worksWhenModal;
  70 - (void)sendEvent:(NSEvent *)event;
  71 
  72 @end
  73 
  74 @interface AWTWindow_Normal : NSWindow
  75 - (id) initWithDelegate:(AWTWindow *)delegate
  76               frameRect:(NSRect)rect
  77               styleMask:(NSUInteger)styleMask
  78             contentView:(NSView *)view;
  79 @end
  80 
  81 @interface AWTWindow_Panel : NSPanel
  82 - (id) initWithDelegate:(AWTWindow *)delegate
  83               frameRect:(NSRect)rect
  84               styleMask:(NSUInteger)styleMask


  45     BOOL isEnabled;
  46     NSWindow *nsWindow;
  47 }
  48 
  49 // An instance of either AWTWindow_Normal or AWTWindow_Panel
  50 @property (nonatomic, retain) NSWindow *nsWindow;
  51 
  52 @property (nonatomic, retain) JNFWeakJObjectWrapper *javaPlatformWindow;
  53 @property (nonatomic, retain) CMenuBar *javaMenuBar;
  54 @property (nonatomic) NSSize javaMinSize;
  55 @property (nonatomic) NSSize javaMaxSize;
  56 @property (nonatomic) jint styleBits;
  57 @property (nonatomic) BOOL isEnabled;
  58 
  59 - (id) initWithPlatformWindow:(JNFWeakJObjectWrapper *)javaPlatformWindow
  60                     styleBits:(jint)styleBits
  61                     frameRect:(NSRect)frameRect
  62                   contentView:(NSView *)contentView;
  63 
  64 - (BOOL) isTopmostWindowUnderMouse;
  65 + (int) getTopmostWindowUnderMouseID;
  66 
  67 // NSWindow overrides delegate methods
  68 - (BOOL) canBecomeKeyWindow;
  69 - (BOOL) canBecomeMainWindow;
  70 - (BOOL) worksWhenModal;
  71 - (void)sendEvent:(NSEvent *)event;
  72 
  73 @end
  74 
  75 @interface AWTWindow_Normal : NSWindow
  76 - (id) initWithDelegate:(AWTWindow *)delegate
  77               frameRect:(NSRect)rect
  78               styleMask:(NSUInteger)styleMask
  79             contentView:(NSView *)view;
  80 @end
  81 
  82 @interface AWTWindow_Panel : NSPanel
  83 - (id) initWithDelegate:(AWTWindow *)delegate
  84               frameRect:(NSRect)rect
  85               styleMask:(NSUInteger)styleMask