src/macosx/classes/sun/lwawt/macosx/CWrapper.java

Print this page




  51         public static native void makeMainWindow(long window);
  52         public static native boolean canBecomeMainWindow(long window);
  53         public static native boolean isKeyWindow(long window);
  54 
  55         public static native void orderFront(long window);
  56         public static native void orderFrontRegardless(long window);
  57         public static native void orderWindow(long window, int ordered, long relativeTo);
  58         public static native void orderOut(long window);
  59 
  60         public static native void addChildWindow(long parent, long child, int ordered);
  61         public static native void removeChildWindow(long parent, long child);
  62 
  63         public static native void setFrame(long window, int x, int y, int w, int h, boolean display);
  64 
  65         public static native void setAlphaValue(long window, float alpha);
  66         public static native void setOpaque(long window, boolean opaque);
  67         public static native void setBackgroundColor(long window, long color);
  68 
  69         public static native void miniaturize(long window);
  70         public static native void deminiaturize(long window);

  71         public static native void zoom(long window);
  72 
  73         public static native void makeFirstResponder(long window, long responder);
  74     }
  75 
  76     public static final class NSView {
  77         public static native void addSubview(long view, long subview);
  78         public static native void removeFromSuperview(long view);
  79 
  80         public static native void setFrame(long view, int x, int y, int w, int h);
  81         public static native Rectangle2D frame(long view);
  82         public static native long window(long view);
  83 
  84         public static native void enterFullScreenMode(long view);
  85         public static native void exitFullScreenMode(long view);
  86 
  87         public static native void setHidden(long view, boolean hidden);
  88 
  89         public static native void setToolTip(long view, String msg);
  90     }


  51         public static native void makeMainWindow(long window);
  52         public static native boolean canBecomeMainWindow(long window);
  53         public static native boolean isKeyWindow(long window);
  54 
  55         public static native void orderFront(long window);
  56         public static native void orderFrontRegardless(long window);
  57         public static native void orderWindow(long window, int ordered, long relativeTo);
  58         public static native void orderOut(long window);
  59 
  60         public static native void addChildWindow(long parent, long child, int ordered);
  61         public static native void removeChildWindow(long parent, long child);
  62 
  63         public static native void setFrame(long window, int x, int y, int w, int h, boolean display);
  64 
  65         public static native void setAlphaValue(long window, float alpha);
  66         public static native void setOpaque(long window, boolean opaque);
  67         public static native void setBackgroundColor(long window, long color);
  68 
  69         public static native void miniaturize(long window);
  70         public static native void deminiaturize(long window);
  71         public static native boolean isZoomed(long window);
  72         public static native void zoom(long window);
  73 
  74         public static native void makeFirstResponder(long window, long responder);
  75     }
  76 
  77     public static final class NSView {
  78         public static native void addSubview(long view, long subview);
  79         public static native void removeFromSuperview(long view);
  80 
  81         public static native void setFrame(long view, int x, int y, int w, int h);
  82         public static native Rectangle2D frame(long view);
  83         public static native long window(long view);
  84 
  85         public static native void enterFullScreenMode(long view);
  86         public static native void exitFullScreenMode(long view);
  87 
  88         public static native void setHidden(long view, boolean hidden);
  89 
  90         public static native void setToolTip(long view, String msg);
  91     }