x & C -> x if we know that x & ~C == 0
[official-gcc.git] / libjava / gnu / gcj / xlib / XColor.java
blob74ad6d7071a1acb7c2202795c9053e07d6208910
1 /* Copyright (C) 2000 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 package gnu.gcj.xlib;
11 import gnu.gcj.RawData;
13 /**
14 * A color or color-cell on the X server.
16 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
18 public final class XColor
20 public XColor(int r, int g, int b)
22 this();
23 setRGB(r, g, b);
26 public XColor()
28 init();
31 private native void init();
32 protected native void finalize();
34 public final native void setRGB(int r, int g, int b);
35 public final native int getRed();
36 public final native int getGreen();
37 public final native int getBlue();
38 public final native byte getFlags();
39 public final native long getPixelValue();
41 RawData structure = null;