1Gtk2::PaperSize(3) User Contributed Perl Documentation Gtk2::PaperSize(3)
2
3
4
6 Gtk2::PaperSize
7
9 Glib::Boxed
10 +----Gtk2::PaperSize
11
13 papersize = Gtk2::PaperSize->new ($name)
14
15 * $name (string or undef)
16
17 papersize = Gtk2::PaperSize->new_custom ($name, $display_name, $width,
18 $height, $unit)
19
20 * $name (string)
21 * $display_name (string)
22 * $width (double)
23 * $height (double)
24 * $unit (Gtk2::Unit)
25
26 papersize = Gtk2::PaperSize->new_from_ppd ($ppd_name, $ppd_dis‐
27 play_name, $width, $height)
28
29 * $ppd_name (string)
30 * $ppd_display_name (string)
31 * $width (double)
32 * $height (double)
33
34 double = $size->get_default_bottom_margin ($unit)
35
36 * $unit (Gtk2::Unit)
37
38 string = Gtk2::PaperSize->get_default
39
40 double = $size->get_default_left_margin ($unit)
41
42 * $unit (Gtk2::Unit)
43
44 double = $size->get_default_right_margin ($unit)
45
46 * $unit (Gtk2::Unit)
47
48 double = $size->get_default_top_margin ($unit)
49
50 * $unit (Gtk2::Unit)
51
52 string = $size->get_display_name
53
54 double = $size->get_height ($unit)
55
56 * $unit (Gtk2::Unit)
57
58 boolean = $size->is_custom
59
60 boolean = $size1->is_equal ($size2)
61
62 * $size2 (Gtk2::PaperSize)
63
64 string = $size->get_name
65
66 string or undef = $size->get_ppd_name
67
68 $size->set_size ($width, $height, $unit)
69
70 * $width (double)
71 * $height (double)
72 * $unit (Gtk2::Unit)
73
74 double = $size->get_width ($unit)
75
76 * $unit (Gtk2::Unit)
77
79 enum Gtk2::Unit
80
81 * 'pixel' / 'GTK_UNIT_PIXEL'
82 * 'points' / 'GTK_UNIT_POINTS'
83 * 'inch' / 'GTK_UNIT_INCH'
84 * 'mm' / 'GTK_UNIT_MM'
85
87 Gtk2, Glib::Boxed
88
90 Copyright (C) 2003-2007 by the gtk2-perl team.
91
92 This software is licensed under the LGPL. See Gtk2 for a full notice.
93
94
95
96perl v5.8.8 2007-03-18 Gtk2::PaperSize(3)