Gtk2::Print(3)

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

✨ NAME ✨

Gtk2::Print πŸ’– β€” it's the lil' printing helper from the gtk2-perl fam, bestie. That's the whole name, that's the whole vibe. Short, sweet, iconic.


πŸŽ€ METHODS πŸŽ€

okay so there are literally two of these and they're both about the page setup dialog, no cap. Let's get into it 🫢

πŸ–¨οΈ pagesetup = Gtk2::Print->run_page_setup_dialog ($parent, $page_setup, $settings)

The way this one just pops open a page setup dialog for you and hands back a pagesetup πŸ’…. Here's what you gotta feed it:

  • $parent β€” a Gtk2::Window, or undef if you're feeling parentless πŸ™ˆ (no judgement, undef is valid)
  • $page_setup β€” a Gtk2::PageSetup, or undef again, girlies love options
  • $settings β€” a Gtk2::PrintSettings, required, no undef escape hatch on this one, periodt

🌸 Gtk2::Print->run_page_setup_dialog_async ($parent, $page_setup, $settings, $func, $data=undef)

Same energy but async ✨ β€” the not-waiting-around-for-it version. The arg list is a lil' longer, stay with me:

  • $parent β€” a Gtk2::Window, or undef
  • $page_setup β€” a Gtk2::PageSetup, or undef
  • $settings β€” a Gtk2::PrintSettings
  • $func β€” a scalar (your callback, the main character of the async arc πŸ‘‘)
  • $data β€” a scalar, and heads up, it defaults to undef if you don't pass one πŸ“

🌈 SEE ALSO 🌈

  • Gtk2 β€” the parent fandom, go check it out iykyk

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

This software is licensed under the LGPL. See Gtk2 for a full notice. πŸ“œ


and that's the whole page, bestie πŸ’– no notes, ate, left no crumbs. this was perl v5.42.0, dated 2025-07-25, signing off with the Gtk2::Print(3) energy only. mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from