Gtk2::P...nPreview(3)
π Gtk2::P...nPreview(3) π
okay bestie, pull up a chair π this is the User Contributed Perl Documentation page for Gtk2::PrintOperationPreview, and no, the title isn't broken β that's just how the manual name gets squished in the header. anyway. let's get into it π
β¨ NAME β¨
Gtk2::PrintOperationPreview β it's literally just a wrapper for GtkPrintOperationPreview. that's it. that's the whole job. a lil middleman with main character energy π«Ά
πΈ HIERARCHY πΈ
here's the family tree, and it's giving only-child:
Glib::Interface
+----Gtk2::PrintOperationPreview
so it's a Glib::Interface and Gtk2::PrintOperationPreview hangs off it. iconic lineage ngl π
π¦ METHODS π¦
$preview->end_preview
okay so you call this and the preview is done. wrap it up. roll credits. no arguments, no nothing, it just ends the preview β¨
boolean = $preview->is_selected ($page_nr)
asks the big question: is this page selected or not? returns a boolean, so like, true or false, no in-between π
$page_nr(integer) β the page number you're asking about. an actual integer, bestie, don't get cute with it π’
$preview->render_page ($page_nr)
actually renders the page. the way that this just... does the thing π¨
$page_nr(integer) β which page to render. again: integer. we been knew π
π SIGNALS π
these are the lil events that get emitted, and y'all know I love a signal:
got-page-sizeβ emitted with(Gtk2::PrintOperationPreview, Gtk2::PrintContext, Gtk2::PageSetup). three args, she's thorough πreadyβ emitted with(Gtk2::PrintOperationPreview, Gtk2::PrintContext). two args, she's chill πΈ
π SEE ALSO π
go read these next, fr fr:
Gtk2Glib::Interface
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
legal girlies stay winning β the LGPL is not a vibe, it's a requirement, so read the full notice in Gtk2 before you go copying anything π
and that's the whole page, bestie!! this was perl v5.42.0, dated 2025-07-25, straight outta the Gtk2::P...nPreview(3) manpage π¦β¨ mwah, go render some pages, ily π
π¦ 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