Gtk2::PaperSize(3) User Contributed Perl Documentation Gtk2::PaperSize(3) NAME Gtk2::PaperSize - wrapper for GtkPaperSize HIERARCHY Glib::Boxed +----Gtk2::PaperSize METHODS papersize = Gtk2::PaperSize->new ($name) o $name (string or undef) papersize = Gtk2::PaperSize->new_custom ($name, $display_name, $width, $height, $unit) o $name (string) o $display_name (string) o $width (double) o $height (double) o $unit (Gtk2::Unit) papersize = Gtk2::PaperSize->new_from_key_file ($key_file, $group_name) o $key_file (Glib::KeyFile) o $group_name (string) May croak with a Glib::Error in $@ on failure. Since: gtk+ 2.12 papersize = Gtk2::PaperSize->new_from_ppd ($ppd_name, $ppd_display_name, $width, $height) o $ppd_name (string) o $ppd_display_name (string) o $width (double) o $height (double) double = $size->get_default_bottom_margin ($unit) o $unit (Gtk2::Unit) string = Gtk2::PaperSize->get_default double = $size->get_default_left_margin ($unit) o $unit (Gtk2::Unit) double = $size->get_default_right_margin ($unit) o $unit (Gtk2::Unit) double = $size->get_default_top_margin ($unit) o $unit (Gtk2::Unit) string = $size->get_display_name double = $size->get_height ($unit) o $unit (Gtk2::Unit) boolean = $size->is_custom boolean = $size1->is_equal ($size2) o $size2 (Gtk2::PaperSize) string = $size->get_name list = Gtk2::PaperSize::get_paper_sizes ($include_custom) o $include_custom (boolean) Since: gtk+ 2.12 string or undef = $size->get_ppd_name $size->set_size ($width, $height, $unit) o $width (double) o $height (double) o $unit (Gtk2::Unit) $size->to_key_file ($key_file, $group_name) o $key_file (Glib::KeyFile) o $group_name (string) Since: gtk+ 2.12 double = $size->get_width ($unit) o $unit (Gtk2::Unit) ENUMS AND FLAGS enum Gtk2::Unit o 'pixel' / 'GTK_UNIT_PIXEL' o 'points' / 'GTK_UNIT_POINTS' o 'inch' / 'GTK_UNIT_INCH' o 'mm' / 'GTK_UNIT_MM' SEE ALSO Gtk2, Glib::Boxed COPYRIGHT Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.38.0 2023-07-25 Gtk2::PaperSize(3)