Gtk2::P...nPreview(3)

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

πŸ’– 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:

  • Gtk2
  • Glib::Interface

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