Gtk2::Gdk::Atom(3)
π 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 toFALSE, so if you just don't say anything, it assumesFALSE
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 toFALSEπ
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 β
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
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms