Gtk2::Gdk::Bitmap(3)
π 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β aGtk2::Gdk::Drawable, orundef. that's right, she'll acceptundefhere, 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 π
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
- 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