Gtk2::Gdk::Bitmap(3)

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

πŸ’– NAME πŸ’–

Gtk2::Gdk::Bitmap β€” bestie, this is the Bitmap class, and yes she's serving old-school X11 energy πŸŽ€


🌸 HIERARCHY 🌸

okay so the family tree goes like this, and you're gonna want to memorize it because the inheritance chain is literally the whole vibe:

Glib::Object
+----Gtk2::Gdk::Drawable
     +----Gtk2::Gdk::Pixmap
          +----Gtk2::Gdk::Bitmap

so Gtk2::Gdk::Bitmap is a Gtk2::Gdk::Pixmap, which is a Gtk2::Gdk::Drawable, which is a Glib::Object. the way that it inherits down four whole levels? it's giving legacy dynasty πŸ‘‘ everything a Drawable or a Pixmap can do, a Bitmap can do too, iykyk.


✨ METHODS ✨

πŸ¦‹ bitmap = Gtk2::Gdk::Bitmap->create_from_data ($drawable, $data, $width, $height)

this is the one method, the main character, the moment 🌟 you hand her a drawable to copy the depth and visual info from, some raw data, and the dimensions, and she hands you back a fresh Gtk2::Gdk::Bitmap.

the args, in order, no cap:

  • $drawable β€” a Gtk2::Gdk::Drawable, or undef. that's right, she'll accept undef here, she's flexible like that πŸ’…
  • $data β€” a string. the raw bitmap data, fr fr.
  • $width β€” an integer. how wide bestie is.
  • $height β€” an integer. how tall bestie is.

so the whole call looks like:

my $bitmap = Gtk2::Gdk::Bitmap->create_from_data ($drawable, $data, $width, $height);

four args, one icon, periodt πŸŽ€


🫢 SEE ALSO 🫢

  • Gtk2 β€” the parent module, go read her, she's iconic.

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

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

ngl, a 2003–2011 copyright window is literally giving legacy code that still slays. respect the elders πŸ™ˆ

and that's the whole page, bestie!! this was perl v5.42.0, dated 2025-07-25, and it's the Gtk2::Gdk::Bitmap(3) manual page, user-contributed Perl documentation, no less. mwah πŸ’‹ go make something cute with it ✨🌈

πŸ“¦ where this page comes from