Gnome2:...Factory(3)
β¨ NAME β¨
Gnome2::ThumbnailFactory β bestie, it's literally just a wrapper for GnomeThumbnailFactory π
This is a page from the User Contributed Perl Documentation, and it lives at Gnome2:...Factory(3), iykyk.
πΈ HIERARCHY πΈ
Okay so here's the family tree, and yes it's giving very much inheritance-core:
Glib::Object
+----Gnome2::ThumbnailFactory
So Gnome2::ThumbnailFactory is a Glib::Object at heart. It said "I get it from my parent" and honestly? Same. π
π METHODS π
thumbnailfactory = Gnome2::ThumbnailFactory->new ($size)
Make a whole new factory, no cap. You gotta hand it a size:
$sizeβ aGnome2::ThumbnailSize. Pick your vibe from the enum down below, bestie.
boolean = $factory->can_thumbnail ($uri, $mime_type, $mtime)
Asks the universe: "can I even make a thumbnail out of this??" Returns a boolean, so it's a yes or a no, periodt.
$uriβ astring$mime_typeβ astring$mtimeβ a timestamp
$factory->create_failed_thumbnail ($uri, $mtime)
Making the "nope, couldn't do it" thumbnail and writing it down for later. Lowkey petty, highkey useful. π«Ά
$uriβ astring$mtimeβ a timestamp
pixbuf = $factory->generate_thumbnail ($uri, $mime_type)
The main character moment β¨ β actually generates a thumbnail and gives you back a pixbuf.
$uriβ astring$mime_typeβ astring
boolean = $factory->has_valid_failed_thumbnail ($uri, $mtime)
Checks whether that failed-thumbnail record you made earlier is still valid. Returns a boolean β so, yes or no bestie.
$uriβ astring$mtimeβ a timestamp
string = $factory->lookup ($uri, $mtime)
Goes looking for a thumbnail and hands you back a string if it finds one.
$uriβ astring$mtimeβ a timestamp
$factory->save_thumbnail ($thumbnail, $uri, $original_mtime)
Saves the thumbnail you already made. No return value, it just does the thing π
$thumbnailβ aGtk2::Gdk::Pixbuf$uriβ astring$original_mtimeβ a timestamp
π ENUMS AND FLAGS π
enum Gnome2::ThumbnailSize
Only two options and both of them ate, honestly:
'normal'/'GNOME_THUMBNAIL_SIZE_NORMAL'β the standard-size vibe'large'/'GNOME_THUMBNAIL_SIZE_LARGE'β the big-size vibe, main character energy fr fr
π SEE ALSO π
Go read these next, bestie, they're iconic:
Gnome2Glib::Object
π COPYRIGHT π
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice.
π bestie reminder: that's the whole page, every flag, every arg, every type β nothing skipped, no cap.
Okurrr, that's a wrap! π This lil' page came from perl v5.42.0 and got dated 2025-07-25, and it's the Gnome2:...Factory(3) page from the User Contributed Perl Documentation. Slay, bye! ππ
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· 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