Gtk2::PaperSize(3)
π Gtk2::PaperSize π
okay bestie, so this is the Gtk2::PaperSize page from the User Contributed Perl Documentation β it's a lil wrapper around GtkPaperSize and honestly it's giving "I just want to know how big my paper is" main character energy π
β¨ HIERARCHY β¨
it sits in the boxed-object family tree like this:
Glib::Boxed
+----Gtk2::PaperSize
so yeah, it's a Glib::Boxed and Gtk2::PaperSize is its one and only child. iconic. π
πΈ METHODS πΈ
papersize = Gtk2::PaperSize->new ($name)
$nameβ astring, orundefif you're feeling mysterious π
papersize = Gtk2::PaperSize->new_custom ($name, $display_name, $width, $height, $unit)
make your very own bespoke paper size, no cap β¨
$nameβstring$display_nameβstring$widthβdouble$heightβdouble$unitβGtk2::Unit
papersize = Gtk2::PaperSize->new_from_key_file ($key_file, $group_name)
$key_fileβGlib::KeyFile$group_nameβstring
β οΈ heads up bestie: this one may croak with aGlib::Errorin$@if it fails. so wrap it in anevalor she will simply pass away π
Since: gtk+ 2.12
papersize = Gtk2::PaperSize->new_from_ppd ($ppd_name, $ppd_display_name, $width, $height)
$ppd_nameβstring$ppd_display_nameβstring$widthβdouble$heightβdouble
double = $size->get_default_bottom_margin ($unit)
$unitβGtk2::Unit
string = Gtk2::PaperSize->get_default
no args, just vibes π¦
double = $size->get_default_left_margin ($unit)
$unitβGtk2::Unit
double = $size->get_default_right_margin ($unit)
$unitβGtk2::Unit
double = $size->get_default_top_margin ($unit)
$unitβGtk2::Unit
string = $size->get_display_name
double = $size->get_height ($unit)
$unitβGtk2::Unit
boolean = $size->is_custom
boolean = $size1->is_equal ($size2)
$size2βGtk2::PaperSize
string = $size->get_name
list = Gtk2::PaperSize::get_paper_sizes ($include_custom)
$include_customβboolean
Since: gtk+ 2.12
string or undef = $size->get_ppd_name
yeah it can literally be undef, that's just how she is π
$size->set_size ($width, $height, $unit)
$widthβdouble$heightβdouble$unitβGtk2::Unit
$size->to_key_file ($key_file, $group_name)
$key_fileβGlib::KeyFile$group_nameβstring
Since: gtk+ 2.12
double = $size->get_width ($unit)
$unitβGtk2::Unit
π ENUMS AND FLAGS π
enum Gtk2::Unit
'pixel'/'GTK_UNIT_PIXEL''points'/'GTK_UNIT_POINTS''inch'/'GTK_UNIT_INCH''mm'/'GTK_UNIT_MM'
π«Ά SEE ALSO π«Ά
Gtk2Glib::Boxed
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay that's the whole page, you ate that fr fr π₯ β this was Gtk2::PaperSize(3), brought to you by perl v5.42.0, dated 2025-07-25. mwah, go forth and measure paper πβ¨
π¦ 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