XMINTERNATOM(3)
β¨ NAME β¨
XmInternAtom β a macro that returns an atom for a given name π« (yes bestie, it's a macro, not a full-on function, we love a lightweight icon)
π SYNOPSIS π
#include <Xm/AtomMgr.h>
Atom XmInternAtom(
Display * display,
String name,
Boolean only_if_exists);
π DESCRIPTION π
okay so. XmInternAtom hands you back an atom for a given name, and that's literally it. but here's the tea about its lifespan, because this part is important:
- the atom you get back stays defined even after the client's connection closes π
- but it becomes undefined the moment the last connection to the X server closes π
so like⦠it's not forever-forever. it's forever-until-everybody-leaves. very main character, honestly.
πΈ the parameters, bestie πΈ
displayβ specifies the connection to the X server πnameβ specifies the name associated with the atom you want returned. the value ofnameis case dependent, so like,"PINK"and"pink"are NOT the same thing, do not play with me here πonly_if_existsβ specifies aBooleanvalue.- if it's
False, the atom is created even if it does not exist. (and if it does not exist, the returned atom will beNoneβ yes that's what it says, that's the whole bit, i don't make the rules π« ) - if it's
True, the atom is created only if it exists β¨
- if it's
π RETURN π
returns an atom. that's it. that's the return value. an atom. periodt π
ngl the only_if_exists paragraph is a lil cursed if you read it twice β but fr fr, it's verbatim what the page says, so i'm not touching it π§
this one lives in the library call section of the manual (that's the (library call) vibe you saw at the top and bottom of the original), and it's your girl XmInternAtom saying bye bestie β go intern some atoms, you're gonna slay ππβ
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms