Lines Matching defs:atom

37  * by using a pre-exisiting atom like <code>XA_WM_CLASS</code>. A <code>display</code> has to be specified
145 if (at.atom != 0) {
146 atomToAtom.put(Long.valueOf(at.atom), at);
153 static XAtom lookup(long atom) {
155 return atomToAtom.get(Long.valueOf(atom));
168 static XAtom get(long atom) {
169 XAtom xatom = lookup(atom);
171 xatom = new XAtom(XToolkit.getDisplay(), atom);
186 this.name = XlibWrapper.XGetAtomName(display, atom);
194 static String asString(long atom) {
195 XAtom at = lookup(atom);
197 return Long.toString(atom);
207 return name + ":" + atom;
209 return Long.toString(atom);
214 long atom = 0;
216 /* name of atom */
243 * @param atom a predefined XAtom.
246 public XAtom(long display, long atom) {
247 this.atom = atom;
267 atom = XlibWrapper.InternAtom(display,name,0);
287 if (atom == 0) {
293 XlibWrapper.SetProperty(display,window,atom,str);
304 if (atom == 0) {
315 setAtomData(window, XA_UTF8_STRING.atom, bdata);
323 if (atom == 0) {
346 if (atom == 0) {
352 return XlibWrapper.GetProperty(display,window,atom);
364 if (atom == 0) {
396 if (atom == 0) {
404 atom, XA_CARDINAL, 32, XConstants.PropModeReplace,
420 * Property type is the same as current atom, property is current atom.
426 if (atom == 0) {
438 if (getter.getActualType() != atom
454 * Property type is <code>type</code>, property is current atom.
460 if (atom == 0) {
488 * Property type is the same as current atom, property is current atom.
493 if (atom == 0) {
500 atom, atom, 32, XConstants.PropModeReplace,
509 * Property type is <code>type</code>, property is current atom.
514 if (atom == 0) {
521 atom, type, 32, XConstants.PropModeReplace,
530 * Property type is <code>type</code>, property is current atom.
535 if (atom == 0) {
542 atom, type, 8, XConstants.PropModeReplace,
553 if (atom == 0) {
559 XlibWrapper.XDeleteProperty(XToolkit.getDisplay(), window, atom);
569 if (atom == 0) {
576 window.getWindow(), atom);
596 if (atom == 0) {
624 atom = XlibWrapper.InternAtom(display,name, onlyIfExists?1:0);
632 if (atom == 0) {
635 atom = XlibWrapper.InternAtom(display, name, 1);
639 if (atom == 0) {
650 public void setValues(long display, String name, long atom) {
652 this.atom = atom;
663 * @return array of atoms, array of length 0 if the atom list is empty
667 if (atom == 0) {
701 * @return list of atoms, empty list if the atom list is empty
746 return atom;
750 Native.putLong(ptr, atom);
757 * Allocated memory to hold the list of native atom data and returns unsafe pointer to it
781 return (atom == ot.atom && display == ot.display);
784 return (int)((atom ^ display)& 0xFFFFL);
792 if (atom == 0) {
800 atom, XA_WINDOW, 32, XConstants.PropModeReplace,
815 if (atom == 0) {