1Gtk2::PageSetup(3) User Contributed Perl Documentation Gtk2::PageSetup(3)
2
3
4
6 Gtk2::PageSetup
7
9 Glib::Object
10 +----Gtk2::PageSetup
11
13 pagesetup = Gtk2::PageSetup->new
14 pagesetup = Gtk2::PageSetup->new_from_file ($file_name)
15 · $file_name (localized file name)
16
17 May croak with a Glib::Error in $@ on failure.
18
19 Since: gtk+ 2.12
20
21 pagesetup = Gtk2::PageSetup->new_from_key_file ($key_file, $group_name)
22 · $key_file (Glib::KeyFile)
23
24 · $group_name (string or undef)
25
26 May croak with a Glib::Error in $@ on failure.
27
28 Since: gtk+ 2.12
29
30 double = $setup->get_bottom_margin ($unit)
31 · $unit (Gtk2::Unit)
32
33 $setup->set_bottom_margin ($margin, $unit)
34 · $margin (double)
35
36 · $unit (Gtk2::Unit)
37
38 double = $setup->get_left_margin ($unit)
39 · $unit (Gtk2::Unit)
40
41 $setup->set_left_margin ($margin, $unit)
42 · $margin (double)
43
44 · $unit (Gtk2::Unit)
45
46 $setup->load_file ($file_name)
47 · $file_name (string)
48
49 May croak with a Glib::Error in $@ on failure.
50
51 Since: gtk+ 2.14
52
53 $setup->load_key_file ($key_file, $group_name)
54 · $key_file (Glib::KeyFile)
55
56 · $group_name (string or undef)
57
58 May croak with a Glib::Error in $@ on failure.
59
60 Since: gtk+ 2.14
61
62 pageorientation = $setup->get_orientation
63 $setup->set_orientation ($orientation)
64 · $orientation (Gtk2::PageOrientation)
65
66 double = $setup->get_page_height ($unit)
67 · $unit (Gtk2::Unit)
68
69 double = $setup->get_page_width ($unit)
70 · $unit (Gtk2::Unit)
71
72 double = $setup->get_paper_height ($unit)
73 · $unit (Gtk2::Unit)
74
75 $setup->set_paper_size_and_default_margins ($size)
76 · $size (Gtk2::PaperSize)
77
78 papersize = $setup->get_paper_size
79 $setup->set_paper_size ($size)
80 · $size (Gtk2::PaperSize)
81
82 double = $setup->get_paper_width ($unit)
83 · $unit (Gtk2::Unit)
84
85 double = $setup->get_right_margin ($unit)
86 · $unit (Gtk2::Unit)
87
88 $setup->set_right_margin ($margin, $unit)
89 · $margin (double)
90
91 · $unit (Gtk2::Unit)
92
93 $setup->to_file ($file_name)
94 · $file_name (localized file name)
95
96 May croak with a Glib::Error in $@ on failure.
97
98 Since: gtk+ 2.12
99
100 $setup->to_key_file ($key_file, $group_name)
101 · $key_file (Glib::KeyFile)
102
103 · $group_name (string or undef)
104
105 Since: gtk+ 2.12
106
107 double = $setup->get_top_margin ($unit)
108 · $unit (Gtk2::Unit)
109
110 $setup->set_top_margin ($margin, $unit)
111 · $margin (double)
112
113 · $unit (Gtk2::Unit)
114
116 enum Gtk2::PageOrientation
117 · 'portrait' / 'GTK_PAGE_ORIENTATION_PORTRAIT'
118
119 · 'landscape' / 'GTK_PAGE_ORIENTATION_LANDSCAPE'
120
121 · 'reverse-portrait' / 'GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT'
122
123 · 'reverse-landscape' / 'GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE'
124
125 enum Gtk2::Unit
126 · 'pixel' / 'GTK_UNIT_PIXEL'
127
128 · 'points' / 'GTK_UNIT_POINTS'
129
130 · 'inch' / 'GTK_UNIT_INCH'
131
132 · 'mm' / 'GTK_UNIT_MM'
133
135 Gtk2, Glib::Object
136
138 Copyright (C) 2003-2008 by the gtk2-perl team.
139
140 This software is licensed under the LGPL. See Gtk2 for a full notice.
141
142
143
144perl v5.12.0 2010-05-02 Gtk2::PageSetup(3)