Gtk2::Gdk::Atom(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– Gtk2::Gdk::Atom πŸ’–

okay bestie, so we're looking at Gtk2::Gdk::Atom β€” the manual page, that is (yes the header said Gtk2::Gdk::Atom(3), we're not copying that, we're living it). This is the little Perl wrapper around GDK's atom situation, and honestly? It's giving short-and-sweet icon energy. Let's go. πŸ¦‹


✨ METHODS ✨

🌸 atom = Gtk2::Gdk::Atom->new ($atom_name, $only_if_exists=FALSE)

so like, here's the constructor, and here's what you're feeding it:

  • $atom_name (string) β€” the name of the atom, a plain ol' string, no cap
  • $only_if_exists (boolean) β€” and it defaults to FALSE, so if you just don't say anything, it assumes FALSE
atom = Gtk2::Gdk::Atom->new ($atom_name, $only_if_exists=FALSE)

🌈 atom = Gtk2::Gdk::Atom->intern ($atom_name, $only_if_exists=FALSE)

this one's intern, which is the same shape as new, and it's also serving the exact same arg list:

  • $atom_name (string) β€” the atom name, string type, periodt
  • $only_if_exists (boolean) β€” again, defaults to FALSE πŸŽ€
atom = Gtk2::Gdk::Atom->intern ($atom_name, $only_if_exists=FALSE)

πŸ’… string = $atom->name

just… hands you back the name. as a string. no arguments, no drama, main character simplicity. ✨

🧚 unsigned = $atom->to_xatom

and this one gives you back an unsigned number β€” the xatom. that's it, that's the whole vibe. πŸ“

πŸ‘‘ unsigned = $atom->to_xatom_for_display ($display)

the display-aware sibling of the one above! returns an unsigned too, but it needs to know which display you mean:

  • $display (Gtk2::Gdk::Display) β€” you gotta hand it a display object
πŸ’€ heads up: this one's only been around Since: gtk+ 2.2 β€” so if you're on something older, it's not gonna be there for you, bestie.
unsigned = $atom->to_xatom_for_display ($display)

πŸ”₯ SEE ALSO πŸ”₯

Gtk2 β€” yeah, go read that one too, it's the whole family πŸ’œ


Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


okay and that's the whole page, we ate and left no crumbs 🫢 β€” this was the Gtk2::Gdk::Atom(3) man page, straight outta perl v5.42.0, dated 2025-07-25, byeee πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from