55 public static native void orderFrontRegardless(long window); 56 public static native void orderWindow(long window, int ordered, long relativeTo); 57 public static native void orderOut(long window); 58 59 public static native void addChildWindow(long parent, long child, int ordered); 60 public static native void removeChildWindow(long parent, long child); 61 62 public static native void setFrame(long window, int x, int y, int w, int h, boolean display); 63 64 public static native void setAlphaValue(long window, float alpha); 65 public static native void setOpaque(long window, boolean opaque); 66 public static native void setBackgroundColor(long window, long color); 67 68 public static native void miniaturize(long window); 69 public static native void deminiaturize(long window); 70 public static native void zoom(long window); 71 72 public static native void makeFirstResponder(long window, long responder); 73 74 public static native long screen(long window); 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 89 public static final class NSObject { 90 public static native void release(long object); 91 } 92 93 public static final class NSScreen { 94 public static native Rectangle2D frame(long screen); 95 public static native Rectangle2D visibleFrame(long screen); 96 public static native long screenByDisplayId(int displayID); 97 } 98 99 public static final class NSColor { 100 public static native long clearColor(); 101 } 102 } | 55 public static native void orderFrontRegardless(long window); 56 public static native void orderWindow(long window, int ordered, long relativeTo); 57 public static native void orderOut(long window); 58 59 public static native void addChildWindow(long parent, long child, int ordered); 60 public static native void removeChildWindow(long parent, long child); 61 62 public static native void setFrame(long window, int x, int y, int w, int h, boolean display); 63 64 public static native void setAlphaValue(long window, float alpha); 65 public static native void setOpaque(long window, boolean opaque); 66 public static native void setBackgroundColor(long window, long color); 67 68 public static native void miniaturize(long window); 69 public static native void deminiaturize(long window); 70 public static native void zoom(long window); 71 72 public static native void makeFirstResponder(long window, long responder); 73 74 public static native long screen(long window); 75 76 public static native void toggleFullScreen(long window, long sender); 77 } 78 79 public static final class NSView { 80 public static native void addSubview(long view, long subview); 81 public static native void removeFromSuperview(long view); 82 83 public static native void setFrame(long view, int x, int y, int w, int h); 84 public static native Rectangle2D frame(long view); 85 public static native long window(long view); 86 } 87 88 public static final class NSObject { 89 public static native void release(long object); 90 } 91 92 public static final class NSScreen { 93 public static native Rectangle2D frame(long screen); 94 public static native Rectangle2D visibleFrame(long screen); 95 public static native long screenByDisplayId(int displayID); 96 97 /** [[[NSScreen screens] objectAtIndex:i] retain]. */ 98 public static native long screens(int i); 99 } 100 101 public static final class NSMenu { 102 public static native void setMenuBarVisible(boolean visible); 103 } 104 105 public static final class NSColor { 106 public static native long clearColor(); 107 } 108 } |