.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::PaperSize 3" .TH Gtk2::PaperSize 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Gtk2::PaperSize \- wrapper for GtkPaperSize .SH HIERARCHY .IX Header "HIERARCHY" .Vb 2 \& Glib::Boxed \& +\-\-\-\-Gtk2::PaperSize .Ve .SH METHODS .IX Header "METHODS" .SS "papersize = Gtk2::PaperSize\->\fBnew\fP ($name)" .IX Subsection "papersize = Gtk2::PaperSize->new ($name)" .IP \(bu 4 \&\f(CW$name\fR (string or undef) .ie n .SS "papersize = Gtk2::PaperSize\->\fBnew_custom\fP ($name, $display_name, $width, $height, $unit)" .el .SS "papersize = Gtk2::PaperSize\->\fBnew_custom\fP ($name, \f(CW$display_name\fP, \f(CW$width\fP, \f(CW$height\fP, \f(CW$unit\fP)" .IX Subsection "papersize = Gtk2::PaperSize->new_custom ($name, $display_name, $width, $height, $unit)" .IP \(bu 4 \&\f(CW$name\fR (string) .IP \(bu 4 \&\f(CW$display_name\fR (string) .IP \(bu 4 \&\f(CW$width\fR (double) .IP \(bu 4 \&\f(CW$height\fR (double) .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .ie n .SS "papersize = Gtk2::PaperSize\->\fBnew_from_key_file\fP ($key_file, $group_name)" .el .SS "papersize = Gtk2::PaperSize\->\fBnew_from_key_file\fP ($key_file, \f(CW$group_name\fP)" .IX Subsection "papersize = Gtk2::PaperSize->new_from_key_file ($key_file, $group_name)" .IP \(bu 4 \&\f(CW$key_file\fR (Glib::KeyFile) .IP \(bu 4 \&\f(CW$group_name\fR (string) .PP May croak with a Glib::Error in $@ on failure. .PP Since: gtk+ 2.12 .ie n .SS "papersize = Gtk2::PaperSize\->\fBnew_from_ppd\fP ($ppd_name, $ppd_display_name, $width, $height)" .el .SS "papersize = Gtk2::PaperSize\->\fBnew_from_ppd\fP ($ppd_name, \f(CW$ppd_display_name\fP, \f(CW$width\fP, \f(CW$height\fP)" .IX Subsection "papersize = Gtk2::PaperSize->new_from_ppd ($ppd_name, $ppd_display_name, $width, $height)" .IP \(bu 4 \&\f(CW$ppd_name\fR (string) .IP \(bu 4 \&\f(CW$ppd_display_name\fR (string) .IP \(bu 4 \&\f(CW$width\fR (double) .IP \(bu 4 \&\f(CW$height\fR (double) .ie n .SS "double = $size\->\fBget_default_bottom_margin\fP ($unit)" .el .SS "double = \f(CW$size\fP\->\fBget_default_bottom_margin\fP ($unit)" .IX Subsection "double = $size->get_default_bottom_margin ($unit)" .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .SS "string = Gtk2::PaperSize\->\fBget_default\fP" .IX Subsection "string = Gtk2::PaperSize->get_default" .ie n .SS "double = $size\->\fBget_default_left_margin\fP ($unit)" .el .SS "double = \f(CW$size\fP\->\fBget_default_left_margin\fP ($unit)" .IX Subsection "double = $size->get_default_left_margin ($unit)" .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .ie n .SS "double = $size\->\fBget_default_right_margin\fP ($unit)" .el .SS "double = \f(CW$size\fP\->\fBget_default_right_margin\fP ($unit)" .IX Subsection "double = $size->get_default_right_margin ($unit)" .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .ie n .SS "double = $size\->\fBget_default_top_margin\fP ($unit)" .el .SS "double = \f(CW$size\fP\->\fBget_default_top_margin\fP ($unit)" .IX Subsection "double = $size->get_default_top_margin ($unit)" .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .ie n .SS "string = $size\->\fBget_display_name\fP" .el .SS "string = \f(CW$size\fP\->\fBget_display_name\fP" .IX Subsection "string = $size->get_display_name" .ie n .SS "double = $size\->\fBget_height\fP ($unit)" .el .SS "double = \f(CW$size\fP\->\fBget_height\fP ($unit)" .IX Subsection "double = $size->get_height ($unit)" .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .ie n .SS "boolean = $size\->\fBis_custom\fP" .el .SS "boolean = \f(CW$size\fP\->\fBis_custom\fP" .IX Subsection "boolean = $size->is_custom" .ie n .SS "boolean = $size1\->\fBis_equal\fP ($size2)" .el .SS "boolean = \f(CW$size1\fP\->\fBis_equal\fP ($size2)" .IX Subsection "boolean = $size1->is_equal ($size2)" .IP \(bu 4 \&\f(CW$size2\fR (Gtk2::PaperSize) .ie n .SS "string = $size\->\fBget_name\fP" .el .SS "string = \f(CW$size\fP\->\fBget_name\fP" .IX Subsection "string = $size->get_name" .SS "list = Gtk2::PaperSize::get_paper_sizes ($include_custom)" .IX Subsection "list = Gtk2::PaperSize::get_paper_sizes ($include_custom)" .IP \(bu 4 \&\f(CW$include_custom\fR (boolean) .PP Since: gtk+ 2.12 .ie n .SS "string or undef = $size\->\fBget_ppd_name\fP" .el .SS "string or undef = \f(CW$size\fP\->\fBget_ppd_name\fP" .IX Subsection "string or undef = $size->get_ppd_name" .ie n .SS "$size\->\fBset_size\fP ($width, $height, $unit)" .el .SS "\f(CW$size\fP\->\fBset_size\fP ($width, \f(CW$height\fP, \f(CW$unit\fP)" .IX Subsection "$size->set_size ($width, $height, $unit)" .IP \(bu 4 \&\f(CW$width\fR (double) .IP \(bu 4 \&\f(CW$height\fR (double) .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .ie n .SS "$size\->\fBto_key_file\fP ($key_file, $group_name)" .el .SS "\f(CW$size\fP\->\fBto_key_file\fP ($key_file, \f(CW$group_name\fP)" .IX Subsection "$size->to_key_file ($key_file, $group_name)" .IP \(bu 4 \&\f(CW$key_file\fR (Glib::KeyFile) .IP \(bu 4 \&\f(CW$group_name\fR (string) .PP Since: gtk+ 2.12 .ie n .SS "double = $size\->\fBget_width\fP ($unit)" .el .SS "double = \f(CW$size\fP\->\fBget_width\fP ($unit)" .IX Subsection "double = $size->get_width ($unit)" .IP \(bu 4 \&\f(CW$unit\fR (Gtk2::Unit) .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Gtk2::Unit" .IX Subsection "enum Gtk2::Unit" .IP \(bu 4 \&'pixel' / 'GTK_UNIT_PIXEL' .IP \(bu 4 \&'points' / 'GTK_UNIT_POINTS' .IP \(bu 4 \&'inch' / 'GTK_UNIT_INCH' .IP \(bu 4 \&'mm' / 'GTK_UNIT_MM' .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Boxed .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the LGPL. See Gtk2 for a full notice.