1Gtk2::PaperSize(3)    User Contributed Perl Documentation   Gtk2::PaperSize(3)
2
3
4

NAME

6       Gtk2::PaperSize - wrapper for GtkPaperSize
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::PaperSize
11

METHODS

13   papersize = Gtk2::PaperSize->new ($name)
14       •   $name (string or undef)
15
16   papersize = Gtk2::PaperSize->new_custom ($name, $display_name, $width,
17       $height, $unit)
18       •   $name (string)
19
20       •   $display_name (string)
21
22       •   $width (double)
23
24       •   $height (double)
25
26       •   $unit (Gtk2::Unit)
27
28   papersize = Gtk2::PaperSize->new_from_key_file ($key_file, $group_name)
29       •   $key_file (Glib::KeyFile)
30
31       •   $group_name (string)
32
33       May croak with a Glib::Error in $@ on failure.
34
35       Since: gtk+ 2.12
36
37   papersize = Gtk2::PaperSize->new_from_ppd ($ppd_name, $ppd_display_name,
38       $width, $height)
39       •   $ppd_name (string)
40
41       •   $ppd_display_name (string)
42
43       •   $width (double)
44
45       •   $height (double)
46
47   double = $size->get_default_bottom_margin ($unit)
48       •   $unit (Gtk2::Unit)
49
50   string = Gtk2::PaperSize->get_default
51   double = $size->get_default_left_margin ($unit)
52       •   $unit (Gtk2::Unit)
53
54   double = $size->get_default_right_margin ($unit)
55       •   $unit (Gtk2::Unit)
56
57   double = $size->get_default_top_margin ($unit)
58       •   $unit (Gtk2::Unit)
59
60   string = $size->get_display_name
61   double = $size->get_height ($unit)
62       •   $unit (Gtk2::Unit)
63
64   boolean = $size->is_custom
65   boolean = $size1->is_equal ($size2)
66       •   $size2 (Gtk2::PaperSize)
67
68   string = $size->get_name
69   list = Gtk2::PaperSize::get_paper_sizes ($include_custom)
70       •   $include_custom (boolean)
71
72       Since: gtk+ 2.12
73
74   string or undef = $size->get_ppd_name
75   $size->set_size ($width, $height, $unit)
76       •   $width (double)
77
78       •   $height (double)
79
80       •   $unit (Gtk2::Unit)
81
82   $size->to_key_file ($key_file, $group_name)
83       •   $key_file (Glib::KeyFile)
84
85       •   $group_name (string)
86
87       Since: gtk+ 2.12
88
89   double = $size->get_width ($unit)
90       •   $unit (Gtk2::Unit)
91

ENUMS AND FLAGS

93   enum Gtk2::Unit
94       •   'pixel' / 'GTK_UNIT_PIXEL'
95
96       •   'points' / 'GTK_UNIT_POINTS'
97
98       •   'inch' / 'GTK_UNIT_INCH'
99
100       •   'mm' / 'GTK_UNIT_MM'
101

SEE ALSO

103       Gtk2, Glib::Boxed
104
106       Copyright (C) 2003-2011 by the gtk2-perl team.
107
108       This software is licensed under the LGPL.  See Gtk2 for a full notice.
109
110
111
112perl v5.32.1                      2021-01-27                Gtk2::PaperSize(3)
Impressum