src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h

Print this page




  32 @interface AWTView : NSView<NSTextInputClient, CDragSourceHolder, CDropTargetHolder> {
  33 @private
  34     jobject m_cPlatformView;
  35 
  36     // Handler for the tracking area needed for Enter/Exit events management.
  37     NSTrackingArea* rolloverTrackingArea;
  38 
  39     // TODO: NSMenu *contextualMenu;
  40 
  41     // dnd support (see AppKit/NSDragging.h, NSDraggingSource/Destination):
  42     CDragSource *_dragSource;
  43     CDropTarget *_dropTarget;
  44 
  45     // Input method data
  46     jobject fInputMethodLOCKABLE;
  47     BOOL fKeyEventsNeeded;
  48     BOOL fProcessingKeystroke;
  49 
  50     BOOL fEnablePressAndHold;
  51     BOOL fInPressAndHold;
  52     BOOL fPAHNeedsToSelect;
  53 
  54     id cglLayer; // is a sublayer of view.layer
  55 
  56     BOOL mouseIsOver;
  57 }
  58 
  59 @property (nonatomic, retain) id cglLayer;
  60 @property (nonatomic) BOOL mouseIsOver;
  61 
  62 - (id) initWithRect:(NSRect) rect platformView:(jobject)cPlatformView windowLayer:(CALayer*)windowLayer;
  63 - (void) deliverJavaMouseEvent: (NSEvent *) event;
  64 - (jobject) awtComponent:(JNIEnv *)env;
  65 
  66 // Input method-related events
  67 - (void)setInputMethod:(jobject)inputMethod;
  68 - (void)abandonInput;
  69 
  70 @end


  32 @interface AWTView : NSView<NSTextInputClient, CDragSourceHolder, CDropTargetHolder> {
  33 @private
  34     jobject m_cPlatformView;
  35 
  36     // Handler for the tracking area needed for Enter/Exit events management.
  37     NSTrackingArea* rolloverTrackingArea;
  38 
  39     // TODO: NSMenu *contextualMenu;
  40 
  41     // dnd support (see AppKit/NSDragging.h, NSDraggingSource/Destination):
  42     CDragSource *_dragSource;
  43     CDropTarget *_dropTarget;
  44 
  45     // Input method data
  46     jobject fInputMethodLOCKABLE;
  47     BOOL fKeyEventsNeeded;
  48     BOOL fProcessingKeystroke;
  49 
  50     BOOL fEnablePressAndHold;
  51     BOOL fInPressAndHold;

  52 
  53     id cglLayer; // is a sublayer of view.layer
  54 
  55     BOOL mouseIsOver;
  56 }
  57 
  58 @property (nonatomic, retain) id cglLayer;
  59 @property (nonatomic) BOOL mouseIsOver;
  60 
  61 - (id) initWithRect:(NSRect) rect platformView:(jobject)cPlatformView windowLayer:(CALayer*)windowLayer;
  62 - (void) deliverJavaMouseEvent: (NSEvent *) event;
  63 - (jobject) awtComponent:(JNIEnv *)env;
  64 
  65 // Input method-related events
  66 - (void)setInputMethod:(jobject)inputMethod;
  67 - (void)abandonInput;
  68 
  69 @end