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

Print this page




  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         public static native long screen(long window);
  76     }
  77 
  78     public static final class NSView {
  79         public static native void addSubview(long view, long subview);
  80         public static native void removeFromSuperview(long view);
  81 
  82         public static native void setFrame(long view, int x, int y, int w, int h);
  83         public static native Rectangle2D frame(long view);
  84         public static native long window(long view);
  85 
  86         public static native void enterFullScreenMode(long view);
  87         public static native void exitFullScreenMode(long view);
  88 
  89         public static native void setHidden(long view, boolean hidden);
  90     }
  91 
  92     public static final class NSObject {
  93         public static native void release(long object);
  94     }
  95 
  96     public static final class NSScreen {
  97         public static native Rectangle2D frame(long screen);
  98         public static native Rectangle2D visibleFrame(long screen);
  99         public static native long screenByDisplayId(int displayID);
 100     }
 101 
 102     public static final class NSColor {
 103         public static native long clearColor();
 104     }
 105 }


  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 
  90     public static final class NSObject {
  91         public static native void release(long object);
  92     }
  93 






  94     public static final class NSColor {
  95         public static native long clearColor();
  96     }
  97 }