Gtk2::PaperSize3pm
Wrapper for gtkpapersize
Hierarchy
Glib::Boxed+----Gtk2::PaperSize
Methods
papersize = Gtk2::PaperSize->new ($name)
- •
-
$name(string or undef)
papersize = Gtk2::PaperSize->new_custom ($name, $display_name, $width, $height, $unit)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
papersize = Gtk2::PaperSize->new_from_key_file ($key_file, $group_name)
•
|
|
|---|---|
•
|
|
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)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
double = $size->get_default_bottom_margin ($unit)
- •
-
$unit(Gtk2::Unit)
string = Gtk2::PaperSize->get_default
double = $size->get_default_left_margin ($unit)
- •
-
$unit(Gtk2::Unit)
double = $size->get_default_right_margin ($unit)
- •
-
$unit(Gtk2::Unit)
double = $size->get_default_top_margin ($unit)
- •
-
$unit(Gtk2::Unit)
string = $size->get_display_name
double = $size->get_height ($unit)
- •
-
$unit(Gtk2::Unit)
boolean = $size->is_custom
boolean = $size1->is_equal ($size2)
- •
-
$size2(Gtk2::PaperSize)
string = $size->get_name
list = Gtk2::PaperSize::get_paper_sizes ($include_custom)
- •
-
$include_custom(boolean)
Since: gtk+ 2.12
string or undef = $size->get_ppd_name
$size->set_size ($width, $height, $unit)
•
|
|
|---|---|
•
|
|
•
|
|
$size->to_key_file ($key_file, $group_name)
•
|
|
|---|---|
•
|
|
Since: gtk+ 2.12
double = $size->get_width ($unit)
- •
-
$unit(Gtk2::Unit)
Enums and flags
enum Gtk2::Unit
•
|
'pixel' / 'GTK_UNIT_PIXEL' |
|---|---|
•
|
'points' / 'GTK_UNIT_POINTS' |
•
|
'inch' / 'GTK_UNIT_INCH' |
•
|
'mm' / 'GTK_UNIT_MM' |
Releases
5 releases since Debian 5.0 (Lenny); the text changed 4 times.