---
name: "Gtk2::PageSetup"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::PageSetup"
---

# Gtk2::PageSetup(3pm)

wrapper for GtkPageSetup

## NAME

Gtk2::PageSetup - wrapper for GtkPageSetup

## HIERARCHY

```
  Glib::Object
  +----Gtk2::PageSetup
```

## METHODS

### pagesetup = Gtk2::PageSetup-\>new

### pagesetup = Gtk2::PageSetup-\>new\_from\_file ($file\_name)

- •

  `$file_name` (localized file name)

May croak with a Glib::Error in $@ on failure.

Since: gtk+ 2.12

### pagesetup = Gtk2::PageSetup-\>new\_from\_key\_file ($key\_file, $group\_name)

- •

  `$key_file` (Glib::KeyFile)

- •

  `$group_name` (string or undef)

May croak with a Glib::Error in $@ on failure.

Since: gtk+ 2.12

### double = $setup-\>get\_bottom\_margin ($unit)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>set\_bottom\_margin ($margin, $unit)

- •

  `$margin` (double)

- •

  `$unit` (Gtk2::Unit)

### double = $setup-\>get\_left\_margin ($unit)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>set\_left\_margin ($margin, $unit)

- •

  `$margin` (double)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>load\_file ($file\_name)

- •

  `$file_name` (string)

May croak with a Glib::Error in $@ on failure.

Since: gtk+ 2.14

### $setup-\>load\_key\_file ($key\_file, $group\_name)

- •

  `$key_file` (Glib::KeyFile)

- •

  `$group_name` (string or undef)

May croak with a Glib::Error in $@ on failure.

Since: gtk+ 2.14

### pageorientation = $setup-\>get\_orientation

### $setup-\>set\_orientation ($orientation)

- •

  `$orientation` (Gtk2::PageOrientation)

### double = $setup-\>get\_page\_height ($unit)

- •

  `$unit` (Gtk2::Unit)

### double = $setup-\>get\_page\_width ($unit)

- •

  `$unit` (Gtk2::Unit)

### double = $setup-\>get\_paper\_height ($unit)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>set\_paper\_size\_and\_default\_margins ($size)

- •

  `$size` (Gtk2::PaperSize)

### papersize = $setup-\>get\_paper\_size

### $setup-\>set\_paper\_size ($size)

- •

  `$size` (Gtk2::PaperSize)

### double = $setup-\>get\_paper\_width ($unit)

- •

  `$unit` (Gtk2::Unit)

### double = $setup-\>get\_right\_margin ($unit)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>set\_right\_margin ($margin, $unit)

- •

  `$margin` (double)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>to\_file ($file\_name)

- •

  `$file_name` (localized file name)

May croak with a Glib::Error in $@ on failure.

Since: gtk+ 2.12

### $setup-\>to\_key\_file ($key\_file, $group\_name)

- •

  `$key_file` (Glib::KeyFile)

- •

  `$group_name` (string or undef)

Since: gtk+ 2.12

### double = $setup-\>get\_top\_margin ($unit)

- •

  `$unit` (Gtk2::Unit)

### $setup-\>set\_top\_margin ($margin, $unit)

- •

  `$margin` (double)

- •

  `$unit` (Gtk2::Unit)

## ENUMS AND FLAGS

### enum Gtk2::PageOrientation

- •

  'portrait' / 'GTK\_PAGE\_ORIENTATION\_PORTRAIT'

- •

  'landscape' / 'GTK\_PAGE\_ORIENTATION\_LANDSCAPE'

- •

  'reverse-portrait' / 'GTK\_PAGE\_ORIENTATION\_REVERSE\_PORTRAIT'

- •

  'reverse-landscape' / 'GTK\_PAGE\_ORIENTATION\_REVERSE\_LANDSCAPE'

### enum Gtk2::Unit

- •

  'pixel' / 'GTK\_UNIT\_PIXEL'

- •

  'points' / 'GTK\_UNIT\_POINTS'

- •

  'inch' / 'GTK\_UNIT\_INCH'

- •

  'mm' / 'GTK\_UNIT\_MM'

## SEE ALSO

Gtk2, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
