403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gtk-doc/html/gtk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gtk-doc/html/gtk/GtkPageSetup.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPageSetup</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="Printing.html" title="Printing">
<link rel="prev" href="GtkPrintSettings.html" title="GtkPrintSettings">
<link rel="next" href="gtk-GtkPaperSize.html" title="GtkPaperSize">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="Builder.html" title="Interface builder">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
<link rel="chapter" href="gtk-migrating-entry-icons.html" title="Migrating from SexyIconEntry to GtkEntry">
<link rel="chapter" href="gtk-migrating-label-links.html" title="Migrating from SexyUrlLabel to GtkLabel">
<link rel="chapter" href="gtk-migrating-ClientSideWindows.html" title="Migrating to client-side windows">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="api-index-full.html" title="Index of all symbols">
<link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="api-index-2-2.html" title="Index of new symbols in 2.2">
<link rel="index" href="api-index-2-4.html" title="Index of new symbols in 2.4">
<link rel="index" href="api-index-2-6.html" title="Index of new symbols in 2.6">
<link rel="index" href="api-index-2-8.html" title="Index of new symbols in 2.8">
<link rel="index" href="api-index-2-10.html" title="Index of new symbols in 2.10">
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
<link rel="index" href="api-index-2-16.html" title="Index of new symbols in 2.16">
<link rel="index" href="api-index-2-18.html" title="Index of new symbols in 2.18">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkPrintSettings.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="gtk-GtkPaperSize.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkPageSetup.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#GtkPageSetup.description" class="shortcut">Description</a>
                 | 
                <a href="#GtkPageSetup.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry" title="GtkPageSetup">
<a name="GtkPageSetup"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkPageSetup.top_of_page"></a>GtkPageSetup</span></h2>
<p>GtkPageSetup — Stores page setup information</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="GtkPageSetup.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;

                    <a class="link" href="GtkPageSetup.html#GtkPageSetup-struct" title="GtkPageSetup">GtkPageSetup</a>;
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      <a class="link" href="GtkPageSetup.html#gtk-page-setup-new" title="gtk_page_setup_new ()">gtk_page_setup_new</a>                  (void);
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      <a class="link" href="GtkPageSetup.html#gtk-page-setup-copy" title="gtk_page_setup_copy ()">gtk_page_setup_copy</a>                 (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *other);
<a class="link" href="GtkPrintSettings.html#GtkPageOrientation" title="enum GtkPageOrientation">GtkPageOrientation</a>  <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-orientation" title="gtk_page_setup_get_orientation ()">gtk_page_setup_get_orientation</a>      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-orientation" title="gtk_page_setup_set_orientation ()">gtk_page_setup_set_orientation</a>      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="GtkPrintSettings.html#GtkPageOrientation" title="enum GtkPageOrientation">GtkPageOrientation</a> orientation);
<a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize">GtkPaperSize</a> *      <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-size" title="gtk_page_setup_get_paper_size ()">gtk_page_setup_get_paper_size</a>       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-paper-size" title="gtk_page_setup_set_paper_size ()">gtk_page_setup_set_paper_size</a>       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize">GtkPaperSize</a> *size);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-top-margin" title="gtk_page_setup_get_top_margin ()">gtk_page_setup_get_top_margin</a>       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-top-margin" title="gtk_page_setup_set_top_margin ()">gtk_page_setup_set_top_margin</a>       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-bottom-margin" title="gtk_page_setup_get_bottom_margin ()">gtk_page_setup_get_bottom_margin</a>    (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-bottom-margin" title="gtk_page_setup_set_bottom_margin ()">gtk_page_setup_set_bottom_margin</a>    (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-left-margin" title="gtk_page_setup_get_left_margin ()">gtk_page_setup_get_left_margin</a>      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-left-margin" title="gtk_page_setup_set_left_margin ()">gtk_page_setup_set_left_margin</a>      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-right-margin" title="gtk_page_setup_get_right_margin ()">gtk_page_setup_get_right_margin</a>     (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-right-margin" title="gtk_page_setup_set_right_margin ()">gtk_page_setup_set_right_margin</a>     (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-set-paper-size-and-default-margins" title="gtk_page_setup_set_paper_size_and_default_margins ()">gtk_page_setup_set_paper_size_and_default_margins</a>
                                                        (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize">GtkPaperSize</a> *size);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-width" title="gtk_page_setup_get_paper_width ()">gtk_page_setup_get_paper_width</a>      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-height" title="gtk_page_setup_get_paper_height ()">gtk_page_setup_get_paper_height</a>     (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-page-width" title="gtk_page_setup_get_page_width ()">gtk_page_setup_get_page_width</a>       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-page-height" title="gtk_page_setup_get_page_height ()">gtk_page_setup_get_page_height</a>      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);

<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      <a class="link" href="GtkPageSetup.html#gtk-page-setup-new-from-file" title="gtk_page_setup_new_from_file ()">gtk_page_setup_new_from_file</a>        (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *file_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      <a class="link" href="GtkPageSetup.html#gtk-page-setup-new-from-key-file" title="gtk_page_setup_new_from_key_file ()">gtk_page_setup_new_from_key_file</a>    (<a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
>GKeyFile</a> *key_file,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *group_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="GtkPageSetup.html#gtk-page-setup-load-file" title="gtk_page_setup_load_file ()">gtk_page_setup_load_file</a>            (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         const char *file_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="GtkPageSetup.html#gtk-page-setup-load-key-file" title="gtk_page_setup_load_key_file ()">gtk_page_setup_load_key_file</a>        (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
>GKeyFile</a> *key_file,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *group_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-file" title="gtk_page_setup_to_file ()">gtk_page_setup_to_file</a>              (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         const char *file_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
void                <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-key-file" title="gtk_page_setup_to_key_file ()">gtk_page_setup_to_key_file</a>          (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
>GKeyFile</a> *key_file,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *group_name);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="GtkPageSetup.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----GtkPageSetup
</pre>
</div>
<div class="refsect1" title="Description">
<a name="GtkPageSetup.description"></a><h2>Description</h2>
<p>
A GtkPageSetup 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 <a class="link" href="gtk-High-level-Printing-API.html#GtkPrintOperation"><span class="type">GtkPrintOperation</span></a> when printing.
The benefit of splitting this out of the <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> is that
these affect the actual layout of the page, and thus need to be set
long before user prints.
</p>
<p><a name="print-margins"></a>
The margins specified in this object are the "print margins", 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 <span class="emphasis"><em>minimal</em></span> size for the layout
margins.
</p>
<p>
To obtain a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> use <a class="link" href="GtkPageSetup.html#gtk-page-setup-new" title="gtk_page_setup_new ()"><code class="function">gtk_page_setup_new()</code></a>
to get the defaults, or use <a class="link" href="gtk-High-level-Printing-API.html#gtk-print-run-page-setup-dialog" title="gtk_print_run_page_setup_dialog ()"><code class="function">gtk_print_run_page_setup_dialog()</code></a> to show
the page setup dialog and receive the resulting page setup.
</p>
<div class="example">
<a name="id1057242"></a><p class="title"><b>Example 48. A page setup dialog</b></p>
<div class="example-contents"><pre class="programlisting">
static GtkPrintSettings *settings = NULL;
static GtkPageSetup *page_setup = NULL;
static void
do_page_setup (void)
{
  GtkPageSetup *new_page_setup;
  if (settings == NULL)
    settings = gtk_print_settings_new ();
  new_page_setup = gtk_print_run_page_setup_dialog (GTK_WINDOW (main_window),
                                                    page_setup, settings);
  if (page_setup)
    g_object_unref (page_setup);
  page_setup = new_page_setup;
}
</pre></div>
</div>
<br class="example-break"><p>
Printing support was added in GTK+ 2.10.
</p>
</div>
<div class="refsect1" title="Details">
<a name="GtkPageSetup.details"></a><h2>Details</h2>
<div class="refsect2" title="GtkPageSetup">
<a name="GtkPageSetup-struct"></a><h3>GtkPageSetup</h3>
<pre class="programlisting">typedef struct _GtkPageSetup GtkPageSetup;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_new ()">
<a name="gtk-page-setup-new"></a><h3>gtk_page_setup_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      gtk_page_setup_new                  (void);</pre>
<p>
Creates a new <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.

</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_copy ()">
<a name="gtk-page-setup-copy"></a><h3>gtk_page_setup_copy ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      gtk_page_setup_copy                 (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *other);</pre>
<p>
Copies a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
<td> the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> to copy
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a copy of <em class="parameter"><code>other</code></em>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_orientation ()">
<a name="gtk-page-setup-get-orientation"></a><h3>gtk_page_setup_get_orientation ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrintSettings.html#GtkPageOrientation" title="enum GtkPageOrientation">GtkPageOrientation</a>  gtk_page_setup_get_orientation      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup);</pre>
<p>
Gets the page orientation of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the page orientation

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_orientation ()">
<a name="gtk-page-setup-set-orientation"></a><h3>gtk_page_setup_set_orientation ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_orientation      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="GtkPrintSettings.html#GtkPageOrientation" title="enum GtkPageOrientation">GtkPageOrientation</a> orientation);</pre>
<p>
Sets the page orientation of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>orientation</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPrintSettings.html#GtkPageOrientation" title="enum GtkPageOrientation"><span class="type">GtkPageOrientation</span></a> value
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_paper_size ()">
<a name="gtk-page-setup-get-paper-size"></a><h3>gtk_page_setup_get_paper_size ()</h3>
<pre class="programlisting"><a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize">GtkPaperSize</a> *      gtk_page_setup_get_paper_size       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup);</pre>
<p>
Gets the paper size of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the paper size

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_paper_size ()">
<a name="gtk-page-setup-set-paper-size"></a><h3>gtk_page_setup_set_paper_size ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_paper_size       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize">GtkPaperSize</a> *size);</pre>
<p>
Sets the paper size of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> without
changing the margins. See 
<a class="link" href="GtkPageSetup.html#gtk-page-setup-set-paper-size-and-default-margins" title="gtk_page_setup_set_paper_size_and_default_margins ()"><code class="function">gtk_page_setup_set_paper_size_and_default_margins()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> a <a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize"><span class="type">GtkPaperSize</span></a> 
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_top_margin ()">
<a name="gtk-page-setup-get-top-margin"></a><h3>gtk_page_setup_get_top_margin ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_top_margin       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Gets the top margin in units of <em class="parameter"><code>unit</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the top margin

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_top_margin ()">
<a name="gtk-page-setup-set-top-margin"></a><h3>gtk_page_setup_set_top_margin ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_top_margin       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Sets the top margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>margin</code></em> :</span></p></td>
<td> the new top margin in units of <em class="parameter"><code>unit</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the units for <em class="parameter"><code>margin</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_bottom_margin ()">
<a name="gtk-page-setup-get-bottom-margin"></a><h3>gtk_page_setup_get_bottom_margin ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_bottom_margin    (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Gets the bottom margin in units of <em class="parameter"><code>unit</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the bottom margin

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_bottom_margin ()">
<a name="gtk-page-setup-set-bottom-margin"></a><h3>gtk_page_setup_set_bottom_margin ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_bottom_margin    (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Sets the bottom margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>margin</code></em> :</span></p></td>
<td> the new bottom margin in units of <em class="parameter"><code>unit</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the units for <em class="parameter"><code>margin</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_left_margin ()">
<a name="gtk-page-setup-get-left-margin"></a><h3>gtk_page_setup_get_left_margin ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_left_margin      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Gets the left margin in units of <em class="parameter"><code>unit</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the left margin

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_left_margin ()">
<a name="gtk-page-setup-set-left-margin"></a><h3>gtk_page_setup_set_left_margin ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_left_margin      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Sets the left margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>margin</code></em> :</span></p></td>
<td> the new left margin in units of <em class="parameter"><code>unit</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the units for <em class="parameter"><code>margin</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_right_margin ()">
<a name="gtk-page-setup-get-right-margin"></a><h3>gtk_page_setup_get_right_margin ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_right_margin     (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Gets the right margin in units of <em class="parameter"><code>unit</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the right margin

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_right_margin ()">
<a name="gtk-page-setup-set-right-margin"></a><h3>gtk_page_setup_set_right_margin ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_right_margin     (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> margin,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Sets the right margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>margin</code></em> :</span></p></td>
<td> the new right margin in units of <em class="parameter"><code>unit</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the units for <em class="parameter"><code>margin</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_set_paper_size_and_default_margins ()">
<a name="gtk-page-setup-set-paper-size-and-default-margins"></a><h3>gtk_page_setup_set_paper_size_and_default_margins ()</h3>
<pre class="programlisting">void                gtk_page_setup_set_paper_size_and_default_margins
                                                        (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize">GtkPaperSize</a> *size);</pre>
<p>
Sets the paper size of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> and modifies
the margins according to the new paper size.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td> a <a class="link" href="gtk-GtkPaperSize.html#GtkPaperSize" title="GtkPaperSize"><span class="type">GtkPaperSize</span></a> 
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_paper_width ()">
<a name="gtk-page-setup-get-paper-width"></a><h3>gtk_page_setup_get_paper_width ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_paper_width      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Returns the paper width in units of <em class="parameter"><code>unit</code></em>.
</p>
<p>
Note that this function takes orientation, but 
not margins into consideration. 
See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-page-width" title="gtk_page_setup_get_page_width ()"><code class="function">gtk_page_setup_get_page_width()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the paper width.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_paper_height ()">
<a name="gtk-page-setup-get-paper-height"></a><h3>gtk_page_setup_get_paper_height ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_paper_height     (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Returns the paper height in units of <em class="parameter"><code>unit</code></em>.
</p>
<p>
Note that this function takes orientation, but 
not margins into consideration.
See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-page-height" title="gtk_page_setup_get_page_height ()"><code class="function">gtk_page_setup_get_page_height()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the paper height.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_page_width ()">
<a name="gtk-page-setup-get-page-width"></a><h3>gtk_page_setup_get_page_width ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_page_width       (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Returns the page width in units of <em class="parameter"><code>unit</code></em>.
</p>
<p>
Note that this function takes orientation and
margins into consideration. 
See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-width" title="gtk_page_setup_get_paper_width ()"><code class="function">gtk_page_setup_get_paper_width()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the page width.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_get_page_height ()">
<a name="gtk-page-setup-get-page-height"></a><h3>gtk_page_setup_get_page_height ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_page_setup_get_page_height      (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a class="link" href="gtk-GtkPaperSize.html#GtkUnit" title="enum GtkUnit">GtkUnit</a> unit);</pre>
<p>
Returns the page height in units of <em class="parameter"><code>unit</code></em>.
</p>
<p>
Note that this function takes orientation and
margins into consideration. 
See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-height" title="gtk_page_setup_get_paper_height ()"><code class="function">gtk_page_setup_get_paper_height()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
<td> the unit for the return value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the page height.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_new_from_file ()">
<a name="gtk-page-setup-new-from-file"></a><h3>gtk_page_setup_new_from_file ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      gtk_page_setup_new_from_file        (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *file_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Reads the page setup from the file <em class="parameter"><code>file_name</code></em>. Returns a 
new <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> object with the restored page setup, 
or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> if an error occurred. See <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-file" title="gtk_page_setup_to_file ()"><code class="function">gtk_page_setup_to_file()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
<td> the filename to read the page setup from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> return location for an error, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the restored <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_new_from_key_file ()">
<a name="gtk-page-setup-new-from-key-file"></a><h3>gtk_page_setup_new_from_key_file ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *      gtk_page_setup_new_from_key_file    (<a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
>GKeyFile</a> *key_file,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *group_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Reads the page setup from the group <em class="parameter"><code>group_name</code></em> in the key file
<em class="parameter"><code>key_file</code></em>. Returns a new <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> object with the restored
page setup, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> if an error occurred.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_file</code></em> :</span></p></td>
<td> the <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
><span class="type">GKeyFile</span></a> to retrieve the page_setup from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group_name</code></em> :</span></p></td>
<td> the name of the group in the key_file to read, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
             to use the default name "Page Setup"
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> return location for an error, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the restored <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_load_file ()">
<a name="gtk-page-setup-load-file"></a><h3>gtk_page_setup_load_file ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            gtk_page_setup_load_file            (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         const char *file_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Reads the page setup from the file <em class="parameter"><code>file_name</code></em>.
See <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-file" title="gtk_page_setup_to_file ()"><code class="function">gtk_page_setup_to_file()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
<td> the filename to read the page setup from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> return location for an error, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> on success

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_load_key_file ()">
<a name="gtk-page-setup-load-key-file"></a><h3>gtk_page_setup_load_key_file ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            gtk_page_setup_load_key_file        (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
>GKeyFile</a> *key_file,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *group_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Reads the page setup from the group <em class="parameter"><code>group_name</code></em> in the key file
<em class="parameter"><code>key_file</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_file</code></em> :</span></p></td>
<td> the <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
><span class="type">GKeyFile</span></a> to retrieve the page_setup from
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group_name</code></em> :</span></p></td>
<td> the name of the group in the key_file to read, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
             to use the default name "Page Setup"
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> return location for an error, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> on success

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_to_file ()">
<a name="gtk-page-setup-to-file"></a><h3>gtk_page_setup_to_file ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            gtk_page_setup_to_file              (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         const char *file_name,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
This function saves the information from <em class="parameter"><code>setup</code></em> to <em class="parameter"><code>file_name</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_name</code></em> :</span></p></td>
<td> the file to save to
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> return location for errors, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
><code class="literal">TRUE</code></a> on success

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_to_key_file ()">
<a name="gtk-page-setup-to-key-file"></a><h3>gtk_page_setup_to_key_file ()</h3>
<pre class="programlisting">void                gtk_page_setup_to_key_file          (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
>GKeyFile</a> *key_file,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *group_name);</pre>
<p>
This function adds the page setup from <em class="parameter"><code>setup</code></em> to <em class="parameter"><code>key_file</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td> a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_file</code></em> :</span></p></td>
<td> the <a
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
><span class="type">GKeyFile</span></a> to save the page setup to
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group_name</code></em> :</span></p></td>
<td> the group to add the settings to in <em class="parameter"><code>key_file</code></em>, 
     or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> to use the default name "Page Setup"
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit