This file is indexed.

/usr/share/doc/libghc-gtk3-doc/html/Graphics-UI-Gtk-Printing-PageSetup.html is in libghc-gtk3-doc 0.14.8-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.Printing.PageSetup</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-Printing-PageSetup.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Printing-PageSetup.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gtk3-0.14.8: Binding to the Gtk+ 3 graphical user interface library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Graphics.UI.Gtk.Printing.PageSetup</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail</a></li><li><a href="#g:2">Class Hierarchy</a></li><li><a href="#g:3">Types</a></li><li><a href="#g:4">Constructors</a></li><li><a href="#g:5">Methods</a></li><li><a href="#g:6">Attributes</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Stores page setup information</p><ul><li>Module available since Gtk+ version 2.10</li></ul></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:PageSetup">PageSetup</a></li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a href="#t:PageSetupClass">PageSetupClass</a> o</li><li class="src short"><a href="#v:castToPageSetup">castToPageSetup</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></li><li class="src short"><a href="#v:toPageSetup">toPageSetup</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></li><li class="src short"><a href="#v:pageSetupNew">pageSetupNew</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></li><li class="src short"><a href="#v:pageSetupNewFromFile">pageSetupNewFromFile</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string =&gt; string -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></li><li class="src short"><a href="#v:pageSetupCopy">pageSetupCopy</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></li><li class="src short"><a href="#v:pageSetupGetTopMargin">pageSetupGetTopMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupSetTopMargin">pageSetupSetTopMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:pageSetupGetBottomMargin">pageSetupGetBottomMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupSetBottomMargin">pageSetupSetBottomMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:pageSetupGetLeftMargin">pageSetupGetLeftMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupSetLeftMargin">pageSetupSetLeftMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:pageSetupGetRightMargin">pageSetupGetRightMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupSetRightMargin">pageSetupSetRightMargin</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:pageSetupSetPaperSizeAndDefaultMargins">pageSetupSetPaperSizeAndDefaultMargins</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:PaperSize">PaperSize</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:pageSetupGetPaperWidth">pageSetupGetPaperWidth</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupGetPaperHeight">pageSetupGetPaperHeight</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupGetPageWidth">pageSetupGetPageWidth</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupGetPageHeight">pageSetupGetPageHeight</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:pageSetupLoadFile">pageSetupLoadFile</a> :: (<a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) =&gt; self -&gt; string -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:pageSetupToFile">pageSetupToFile</a> :: (<a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string) =&gt; self -&gt; string -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:pageSetupOrientation">pageSetupOrientation</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="Graphics-UI-Gtk-Printing-PrintSettings.html#t:PageOrientation">PageOrientation</a></li><li class="src short"><a href="#v:pageSetupPaperSize">pageSetupPaperSize</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:PaperSize">PaperSize</a></li></ul></div><div id="interface"><h1 id="g:1">Detail</h1><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code> object stores the page size, orientation and margins. The
 idea is that you can get one of these from the page setup dialog and then
 pass it to the <code><a href="Graphics-UI-Gtk-Printing-PrintOperation.html#t:PrintOperation">PrintOperation</a></code> when printing. The benefit of splitting this
 out of the <code><a href="Graphics-UI-Gtk-Printing-PrintSettings.html#t:PrintSettings">PrintSettings</a></code> is that these affect the actual layout of the
 page, and thus need to be set long before user prints.</p><p>The margins specified in this object are the &quot;print margins&quot;, i.e. the
 parts of the page that the printer cannot print on. These are different from
 the layout margins that a word processor uses; they are typically used to
 determine the <em>minimal</em> size for the layout margins.</p><p>To obtain a <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code> use <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#v:pageSetupNew">pageSetupNew</a></code> to get the defaults, or use
 <code>printRunPageSetupDialog</code> to show the page setup dialog and receive the
 resulting page setup.</p><p>Printing support was added in Gtk+ 2.10.</p></div><h1 id="g:2">Class Hierarchy</h1><div class="doc"><pre>| <code><a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a></code>
| +----PageSetup
</pre></div><h1 id="g:3">Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:PageSetup" class="def">PageSetup</a> <a href="src/Graphics-UI-Gtk-Types.html#PageSetup" class="link">Source</a> <a href="#t:PageSetup" class="selflink">#</a></p><div class="subs instances"><p id="control.i:PageSetup" class="caption collapser" onclick="toggleSection('i:PageSetup')">Instances</p><div id="section.i:PageSetup" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PageSetup:Eq:1" class="instance expander" onclick="toggleSection('i:id:PageSetup:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-990" class="link">Source</a> <a href="#t:PageSetup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PageSetup:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PageSetup:Ord:2" class="instance expander" onclick="toggleSection('i:id:PageSetup:Ord:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-990" class="link">Source</a> <a href="#t:PageSetup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PageSetup:Ord:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PageSetup:GObjectClass:3" class="instance expander" onclick="toggleSection('i:id:PageSetup:GObjectClass:3')"></span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-1000" class="link">Source</a> <a href="#t:PageSetup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PageSetup:GObjectClass:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toGObject">toGObject</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> -&gt; <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a> <a href="#v:toGObject" class="selflink">#</a></p><p class="src"><a href="#v:unsafeCastGObject">unsafeCastGObject</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObject">GObject</a> -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> <a href="#v:unsafeCastGObject" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:PageSetup:PageSetupClass:4" class="instance expander" onclick="toggleSection('i:id:PageSetup:PageSetupClass:4')"></span> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-999" class="link">Source</a> <a href="#t:PageSetup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:PageSetup:PageSetupClass:4" class="inst-details hide"></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o =&gt; <a id="t:PageSetupClass" class="def">PageSetupClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#PageSetupClass" class="link">Source</a> <a href="#t:PageSetupClass" class="selflink">#</a></p><div class="subs instances"><p id="control.i:PageSetupClass" class="caption collapser" onclick="toggleSection('i:PageSetupClass')">Instances</p><div id="section.i:PageSetupClass" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:PageSetupClass:PageSetupClass:1" class="instance expander" onclick="toggleSection('i:ic:PageSetupClass:PageSetupClass:1')"></span> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></span> <a href="src/Graphics-UI-Gtk-Types.html#line-999" class="link">Source</a> <a href="#t:PageSetupClass" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:PageSetupClass:PageSetupClass:1" class="inst-details hide"></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:castToPageSetup" class="def">castToPageSetup</a> :: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> <a href="src/Graphics-UI-Gtk-Types.html#castToPageSetup" class="link">Source</a> <a href="#v:castToPageSetup" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:toPageSetup" class="def">toPageSetup</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> <a href="src/Graphics-UI-Gtk-Types.html#toPageSetup" class="link">Source</a> <a href="#v:toPageSetup" class="selflink">#</a></p></div><h1 id="g:4">Constructors</h1><div class="top"><p class="src"><a id="v:pageSetupNew" class="def">pageSetupNew</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupNew" class="link">Source</a> <a href="#v:pageSetupNew" class="selflink">#</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupNewFromFile" class="def">pageSetupNewFromFile</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupNewFromFile" class="link">Source</a> <a href="#v:pageSetupNewFromFile" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; string</td><td class="doc"><p><code>fileName</code> - the filename to read the page setup from</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Reads the page setup from the file <code>fileName</code>. Returns a new <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>
 object with the restored page setup.</p><ul><li>Available since Gtk+ version 2.12</li></ul></div></div><h1 id="g:5">Methods</h1><div class="top"><p class="src"><a id="v:pageSetupCopy" class="def">pageSetupCopy</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupCopy" class="link">Source</a> <a href="#v:pageSetupCopy" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></td><td class="doc"><p>returns a copy of <code>other</code></p></td></tr></table></div><div class="doc"><p>Copies a <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetTopMargin" class="def">pageSetupGetTopMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetTopMargin" class="link">Source</a> <a href="#v:pageSetupGetTopMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the top margin</p></td></tr></table></div><div class="doc"><p>Gets the top margin in units of <code>unit</code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupSetTopMargin" class="def">pageSetupSetTopMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupSetTopMargin" class="link">Source</a> <a href="#v:pageSetupSetTopMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p><code>margin</code> - the new top margin in units of <code>unit</code></p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the units for <code>margin</code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the top margin of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetBottomMargin" class="def">pageSetupGetBottomMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetBottomMargin" class="link">Source</a> <a href="#v:pageSetupGetBottomMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the bottom margin</p></td></tr></table></div><div class="doc"><p>Gets the bottom margin in units of <code>unit</code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupSetBottomMargin" class="def">pageSetupSetBottomMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupSetBottomMargin" class="link">Source</a> <a href="#v:pageSetupSetBottomMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p><code>margin</code> - the new bottom margin in units of <code>unit</code></p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the units for <code>margin</code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the bottom margin of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetLeftMargin" class="def">pageSetupGetLeftMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetLeftMargin" class="link">Source</a> <a href="#v:pageSetupGetLeftMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the left margin</p></td></tr></table></div><div class="doc"><p>Gets the left margin in units of <code>unit</code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupSetLeftMargin" class="def">pageSetupSetLeftMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupSetLeftMargin" class="link">Source</a> <a href="#v:pageSetupSetLeftMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p><code>margin</code> - the new left margin in units of <code>unit</code></p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the units for <code>margin</code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the left margin of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetRightMargin" class="def">pageSetupGetRightMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetRightMargin" class="link">Source</a> <a href="#v:pageSetupGetRightMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the right margin</p></td></tr></table></div><div class="doc"><p>Gets the right margin in units of <code>unit</code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupSetRightMargin" class="def">pageSetupSetRightMargin</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupSetRightMargin" class="link">Source</a> <a href="#v:pageSetupSetRightMargin" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p><code>margin</code> - the new right margin in units of <code>unit</code></p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the units for <code>margin</code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the right margin of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupSetPaperSizeAndDefaultMargins" class="def">pageSetupSetPaperSizeAndDefaultMargins</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupSetPaperSizeAndDefaultMargins" class="link">Source</a> <a href="#v:pageSetupSetPaperSizeAndDefaultMargins" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:PaperSize">PaperSize</a></td><td class="doc"><p><code>size</code> - a <code><a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:PaperSize">PaperSize</a></code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the paper size of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code> and modifies the margins according
 to the new paper size.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetPaperWidth" class="def">pageSetupGetPaperWidth</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetPaperWidth" class="link">Source</a> <a href="#v:pageSetupGetPaperWidth" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the paper width.</p></td></tr></table></div><div class="doc"><p>Returns the paper width in units of <code>unit</code>.</p><p>Note that this function takes orientation, but not margins into
 consideration. See <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#v:pageSetupGetPageWidth">pageSetupGetPageWidth</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetPaperHeight" class="def">pageSetupGetPaperHeight</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetPaperHeight" class="link">Source</a> <a href="#v:pageSetupGetPaperHeight" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the paper height.</p></td></tr></table></div><div class="doc"><p>Returns the paper height in units of <code>unit</code>.</p><p>Note that this function takes orientation, but not margins into
 consideration. See <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#v:pageSetupGetPageHeight">pageSetupGetPageHeight</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetPageWidth" class="def">pageSetupGetPageWidth</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetPageWidth" class="link">Source</a> <a href="#v:pageSetupGetPageWidth" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the page width.</p></td></tr></table></div><div class="doc"><p>Returns the page width in units of <code>unit</code>.</p><p>Note that this function takes orientation and margins into consideration.
 See <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#v:pageSetupGetPaperWidth">pageSetupGetPaperWidth</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupGetPageHeight" class="def">pageSetupGetPageHeight</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupGetPageHeight" class="link">Source</a> <a href="#v:pageSetupGetPageHeight" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:Unit">Unit</a></td><td class="doc"><p><code>unit</code> - the unit for the return value</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the page height.</p></td></tr></table></div><div class="doc"><p>Returns the page height in units of <code>unit</code>.</p><p>Note that this function takes orientation and margins into consideration.
 See <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#v:pageSetupGetPaperHeight">pageSetupGetPaperHeight</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupLoadFile" class="def">pageSetupLoadFile</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupLoadFile" class="link">Source</a> <a href="#v:pageSetupLoadFile" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; string</td><td class="doc"><p><code>fileName</code> - the filename to read the page setup from</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> on success</p></td></tr></table></div><div class="doc"><p>Reads the page setup from the file <code>fileName</code>. See <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#v:pageSetupToFile">pageSetupToFile</a></code>.</p><ul><li>Available since Gtk+ version 2.14</li></ul></div></div><div class="top"><p class="src"><a id="v:pageSetupToFile" class="def">pageSetupToFile</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupToFile" class="link">Source</a> <a href="#v:pageSetupToFile" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self, <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-UTFString.html#t:GlibString">GlibString</a> string)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; string</td><td class="doc"><p><code>fileName</code> - the file to save to</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> on success</p></td></tr></table></div><div class="doc"><p>This function saves the information from <code>setup</code> to <code>fileName</code>.</p><ul><li>Available since Gtk+ version 2.12</li></ul></div></div><h1 id="g:6">Attributes</h1><div class="top"><p class="src"><a id="v:pageSetupOrientation" class="def">pageSetupOrientation</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="Graphics-UI-Gtk-Printing-PrintSettings.html#t:PageOrientation">PageOrientation</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupOrientation" class="link">Source</a> <a href="#v:pageSetupOrientation" class="selflink">#</a></p><div class="doc"><p>The page orientation of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:pageSetupPaperSize" class="def">pageSetupPaperSize</a> :: <a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetupClass">PageSetupClass</a> self =&gt; <a href="file:///usr/share/doc/libghc-glib-doc/html/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="Graphics-UI-Gtk-Printing-PaperSize.html#t:PaperSize">PaperSize</a> <a href="src/Graphics-UI-Gtk-Printing-PageSetup.html#pageSetupPaperSize" class="link">Source</a> <a href="#v:pageSetupPaperSize" class="selflink">#</a></p><div class="doc"><p>The paper size of the <code><a href="Graphics-UI-Gtk-Printing-PageSetup.html#t:PageSetup">PageSetup</a></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>