X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=libjava%2Fgnu%2Fgcj%2Fxlib%2FWindow.java;fp=libjava%2Fgnu%2Fgcj%2Fxlib%2FWindow.java;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=ae3dbfd688bc2b5c132ed14ab861940794949b6f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libjava/gnu/gcj/xlib/Window.java b/libjava/gnu/gcj/xlib/Window.java deleted file mode 100644 index ae3dbfd6..00000000 --- a/libjava/gnu/gcj/xlib/Window.java +++ /dev/null @@ -1,104 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -package gnu.gcj.xlib; - -import gnu.gcj.RawData; -import java.awt.Rectangle; - -/** - * An X11 window. - * - * @author Rolf W. Rasmussen - */ -public class Window extends Drawable -{ - // Must correspond with X.h definitions: - public static final int COPY_FROM_PARENT = 0; - public static final int INPUT_OUTPUT = 1; - public static final int INPUT_ONLY = 2; - - public Window(Window parent, Rectangle bounds, - WindowAttributes attributes) - { - this(parent, bounds, attributes, null); - } - - public Window(Window parent, Rectangle bounds, - WindowAttributes attributes, Visual visual) - { - this(parent, bounds, 0, attributes, COPY_FROM_PARENT, visual); - } - - public Window(Window parent, Rectangle bounds, int borderWidth, - WindowAttributes attributes, int windowIOClass, - Visual visual) - { - this(parent.display, - parent.createChildXID(bounds, borderWidth, attributes, - windowIOClass, visual)); - this.owned = true; - } - - protected Window(Display display, int xid) - { - super(display, xid); - display.addXID(xid, this); - } - - protected void finalize() - { - display.removeXID(xid); - if (owned) - { - destroy(); - owned = false; - } - } - - protected native void destroy(); - - protected native int createChildXID(Rectangle bounds, - int borderWidth, - WindowAttributes attributes, - int windowIOClass, - Visual visual); - - public native void setAttributes(WindowAttributes attributes); - - public native void map(); - public native void unmap(); - - protected boolean owned = false; - - public native void setProperty(int nameAtom, int typeAtom, byte[] data); - - public void setProperty(int nameAtom, int typeAtom, String data) - { - int length = data.length(); - byte[] byteData = new byte[length]; - - for (int i=0; i