46 // 'level' is one of the keys defined above 47 public static native void setLevel(long window, int level); 48 49 public static native void makeKeyAndOrderFront(long window); 50 public static native void makeMainWindow(long window); 51 public static native boolean canBecomeMainWindow(long window); 52 public static native boolean isKeyWindow(long window); 53 54 public static native void orderFront(long window); 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 } | 46 // 'level' is one of the keys defined above 47 public static native void setLevel(long window, int level); 48 49 public static native void makeKeyAndOrderFront(long window); 50 public static native void makeMainWindow(long window); 51 public static native boolean canBecomeMainWindow(long window); 52 public static native boolean isKeyWindow(long window); 53 54 public static native void orderFront(long window); 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, float red, float green, 67 float blue, float alpha); 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 90 public static final class NSObject { 91 public static native void release(long object); 92 } 93 94 public static final class NSScreen { 95 public static native Rectangle2D frame(long screen); 96 public static native Rectangle2D visibleFrame(long screen); 97 public static native long screenByDisplayId(int displayID); 98 } 99 } |