New upstream version 3.24.0
This commit is contained in:
@ -90,7 +90,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -106,7 +106,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -122,7 +122,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -138,7 +138,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -162,7 +162,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -170,7 +170,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -178,7 +178,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -186,7 +186,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gdouble</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -218,7 +218,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkPageSetup.html#gtk-page-setup-load-file" title="gtk_page_setup_load_file ()">gtk_page_setup_load_file</a> <span class="c_punctuation">()</span>
|
||||
@ -226,7 +226,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<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> <span class="c_punctuation">()</span>
|
||||
@ -234,7 +234,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkPageSetup.html#gtk-page-setup-to-file" title="gtk_page_setup_to_file ()">gtk_page_setup_to_file</a> <span class="c_punctuation">()</span>
|
||||
@ -250,7 +250,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GVariant</span> *
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
|
||||
</td>
|
||||
<td class="function_name">
|
||||
<a class="link" href="GtkPageSetup.html#gtk-page-setup-to-gvariant" title="gtk_page_setup_to_gvariant ()">gtk_page_setup_to_gvariant</a> <span class="c_punctuation">()</span>
|
||||
@ -274,7 +274,7 @@
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GtkPageSetup.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="screen"> GObject
|
||||
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
||||
<span class="lineart">╰──</span> GtkPageSetup
|
||||
</pre>
|
||||
</div>
|
||||
@ -327,22 +327,22 @@ and receive the resulting page setup.</p>
|
||||
17
|
||||
18
|
||||
19</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="usertype">GtkPrintSettings</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">settings </span><span class="symbol">=</span><span class="normal"> NULL</span><span class="symbol">;</span>
|
||||
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">GtkPageSetup</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">page_setup </span><span class="symbol">=</span><span class="normal"> NULL</span><span class="symbol">;</span>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="usertype">GtkPrintSettings</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">settings </span><span class="symbol">=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
||||
<span class="keyword">static</span><span class="normal"> </span><span class="usertype">GtkPageSetup</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">page_setup </span><span class="symbol">=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
||||
|
||||
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
||||
<span class="function">do_page_setup</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
||||
<span class="cbracket">{</span>
|
||||
<span class="normal"> </span><span class="usertype">GtkPageSetup</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">new_page_setup</span><span class="symbol">;</span>
|
||||
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">settings </span><span class="symbol">==</span><span class="normal"> NULL</span><span class="symbol">)</span>
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">settings </span><span class="symbol">==</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
||||
<span class="normal"> settings </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkPrintSettings.html#gtk-print-settings-new">gtk_print_settings_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
||||
|
||||
<span class="normal"> new_page_setup </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gtk3-High-level-Printing-API.html#gtk-print-run-page-setup-dialog">gtk_print_run_page_setup_dialog</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">main_window</span><span class="symbol">),</span>
|
||||
<span class="normal"> page_setup</span><span class="symbol">,</span><span class="normal"> settings</span><span class="symbol">);</span>
|
||||
|
||||
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">page_setup</span><span class="symbol">)</span>
|
||||
<span class="normal"> </span><span class="function">g_object_unref</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">page_setup</span><span class="symbol">);</span>
|
||||
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">page_setup</span><span class="symbol">);</span>
|
||||
|
||||
<span class="normal"> page_setup </span><span class="symbol">=</span><span class="normal"> new_page_setup</span><span class="symbol">;</span>
|
||||
<span class="cbracket">}</span></pre></td>
|
||||
@ -519,7 +519,7 @@ changing the margins. See
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-top-margin"></a><h3>gtk_page_setup_get_top_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_top_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Gets the top margin in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -557,7 +557,7 @@ gtk_page_setup_get_top_margin (<em class="parameter"><code><a class="link" href=
|
||||
<a name="gtk-page-setup-set-top-margin"></a><h3>gtk_page_setup_set_top_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_page_setup_set_top_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><span class="type">gdouble</span> margin</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> margin</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Sets the top margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -594,7 +594,7 @@ gtk_page_setup_set_top_margin (<em class="parameter"><code><a class="link" href=
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-bottom-margin"></a><h3>gtk_page_setup_get_bottom_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_bottom_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Gets the bottom margin in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -632,7 +632,7 @@ gtk_page_setup_get_bottom_margin (<em class="parameter"><code><a class="link" hr
|
||||
<a name="gtk-page-setup-set-bottom-margin"></a><h3>gtk_page_setup_set_bottom_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_page_setup_set_bottom_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><span class="type">gdouble</span> margin</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> margin</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Sets the bottom margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -669,7 +669,7 @@ gtk_page_setup_set_bottom_margin (<em class="parameter"><code><a class="link" hr
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-left-margin"></a><h3>gtk_page_setup_get_left_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_left_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Gets the left margin in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -707,7 +707,7 @@ gtk_page_setup_get_left_margin (<em class="parameter"><code><a class="link" href
|
||||
<a name="gtk-page-setup-set-left-margin"></a><h3>gtk_page_setup_set_left_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_page_setup_set_left_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><span class="type">gdouble</span> margin</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> margin</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Sets the left margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -744,7 +744,7 @@ gtk_page_setup_set_left_margin (<em class="parameter"><code><a class="link" href
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-right-margin"></a><h3>gtk_page_setup_get_right_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_right_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Gets the right margin in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -782,7 +782,7 @@ gtk_page_setup_get_right_margin (<em class="parameter"><code><a class="link" hre
|
||||
<a name="gtk-page-setup-set-right-margin"></a><h3>gtk_page_setup_set_right_margin ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_page_setup_set_right_margin (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><span class="type">gdouble</span> margin</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> margin</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Sets the right margin of the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -852,7 +852,7 @@ the margins according to the new paper size.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-paper-width"></a><h3>gtk_page_setup_get_paper_width ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_paper_width (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Returns the paper width in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -891,7 +891,7 @@ See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-page-width" title
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-paper-height"></a><h3>gtk_page_setup_get_paper_height ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_paper_height (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Returns the paper height in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -930,7 +930,7 @@ See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-page-height" titl
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-page-width"></a><h3>gtk_page_setup_get_page_width ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_page_width (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Returns the page width in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -969,7 +969,7 @@ See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-width" titl
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-get-page-height"></a><h3>gtk_page_setup_get_page_height ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
||||
gtk_page_setup_get_page_height (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkPaperSize.html#GtkUnit" title="enum GtkUnit"><span class="type">GtkUnit</span></a> unit</code></em>);</pre>
|
||||
<p>Returns the page height in units of <em class="parameter"><code>unit</code></em>
|
||||
@ -1009,12 +1009,12 @@ See <a class="link" href="GtkPageSetup.html#gtk-page-setup-get-paper-height" tit
|
||||
<div class="refsect2">
|
||||
<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"><span class="returnvalue">GtkPageSetup</span></a> *
|
||||
gtk_page_setup_new_from_file (<em class="parameter"><code>const <span class="type">gchar</span> *file_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
gtk_page_setup_new_from_file (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</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 <code class="literal">NULL</code> 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>
|
||||
or <a href="https://developer.gnome.org/glib/unstable/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>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-page-setup-new-from-file.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -1031,7 +1031,7 @@ or <code class="literal">NULL</code> if an error occurred. See <a class="link" h
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1047,14 +1047,14 @@ or <code class="literal">NULL</code> if an error occurred. See <a class="link" h
|
||||
<div class="refsect2">
|
||||
<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"><span class="returnvalue">GtkPageSetup</span></a> *
|
||||
gtk_page_setup_new_from_key_file (<em class="parameter"><code><span class="type">GKeyFile</span> *key_file</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *group_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
gtk_page_setup_new_from_key_file (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> *key_file</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group_name</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</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 <code class="literal">NULL</code> if an error occurred.</p>
|
||||
page setup, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-page-setup-new-from-key-file.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
@ -1066,18 +1066,18 @@ page setup, or <code class="literal">NULL</code> if an error occurred.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>key_file</p></td>
|
||||
<td class="parameter_description"><p>the <span class="type">GKeyFile</span> to retrieve the page_setup from</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/glib/unstable/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> to retrieve the page_setup from</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>group_name</p></td>
|
||||
<td class="parameter_description"><p>the name of the group in the key_file to read, or <code class="literal">NULL</code>
|
||||
<td class="parameter_description"><p>the name of the group in the key_file to read, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
to use the default name “Page Setup”. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1093,7 +1093,7 @@ to use the default name “Page Setup”. </p></td>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-new-from-gvariant"></a><h3>gtk_page_setup_new_from_gvariant ()</h3>
|
||||
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *
|
||||
gtk_page_setup_new_from_gvariant (<em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>);</pre>
|
||||
gtk_page_setup_new_from_gvariant (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *variant</code></em>);</pre>
|
||||
<p>Desrialize a page setup from an a{sv} variant in
|
||||
the format produced by <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-gvariant" title="gtk_page_setup_to_gvariant ()"><code class="function">gtk_page_setup_to_gvariant()</code></a>.</p>
|
||||
<div class="refsect3">
|
||||
@ -1106,7 +1106,7 @@ the format produced by <a class="link" href="GtkPageSetup.html#gtk-page-setup-to
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>variant</p></td>
|
||||
<td class="parameter_description"><p>an a{sv} <span class="type">GVariant</span></p></td>
|
||||
<td class="parameter_description"><p>an a{sv} <a href="https://developer.gnome.org/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -1121,10 +1121,10 @@ the format produced by <a class="link" href="GtkPageSetup.html#gtk-page-setup-to
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-load-file"></a><h3>gtk_page_setup_load_file ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_page_setup_load_file (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</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>
|
||||
@ -1149,7 +1149,7 @@ See <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-file" title="gtk_p
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1157,18 +1157,18 @@ See <a class="link" href="GtkPageSetup.html#gtk-page-setup-to-file" title="gtk_p
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-page-setup-load-file.returns"></a><h4>Returns</h4>
|
||||
<p> <code class="literal">TRUE</code> on success</p>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.14</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-load-key-file"></a><h3>gtk_page_setup_load_key_file ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_page_setup_load_key_file (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><span class="type">GKeyFile</span> *key_file</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *group_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> *key_file</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group_name</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</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>
|
||||
@ -1189,18 +1189,18 @@ gtk_page_setup_load_key_file (<em class="parameter"><code><a class="link" href="
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>key_file</p></td>
|
||||
<td class="parameter_description"><p>the <span class="type">GKeyFile</span> to retrieve the page_setup from</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/glib/unstable/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> to retrieve the page_setup from</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>group_name</p></td>
|
||||
<td class="parameter_description"><p>the name of the group in the key_file to read, or <code class="literal">NULL</code>
|
||||
<td class="parameter_description"><p>the name of the group in the key_file to read, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
to use the default name “Page Setup”. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p>return location for an error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1208,17 +1208,17 @@ to use the default name “Page Setup”. </p></td>
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-page-setup-load-key-file.returns"></a><h4>Returns</h4>
|
||||
<p> <code class="literal">TRUE</code> on success</p>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.14</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-to-file"></a><h3>gtk_page_setup_to_file ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_page_setup_to_file (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
|
||||
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</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>
|
||||
@ -1243,7 +1243,7 @@ gtk_page_setup_to_file (<em class="parameter"><code><a class="link" href="GtkPag
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>error</p></td>
|
||||
<td class="parameter_description"><p>return location for errors, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_description"><p>return location for errors, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1251,7 +1251,7 @@ gtk_page_setup_to_file (<em class="parameter"><code><a class="link" href="GtkPag
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-page-setup-to-file.returns"></a><h4>Returns</h4>
|
||||
<p> <code class="literal">TRUE</code> on success</p>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
|
||||
</div>
|
||||
<p class="since">Since: 2.12</p>
|
||||
</div>
|
||||
@ -1260,8 +1260,8 @@ gtk_page_setup_to_file (<em class="parameter"><code><a class="link" href="GtkPag
|
||||
<a name="gtk-page-setup-to-key-file"></a><h3>gtk_page_setup_to_key_file ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_page_setup_to_key_file (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>,
|
||||
<em class="parameter"><code><span class="type">GKeyFile</span> *key_file</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *group_name</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> *key_file</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group_name</code></em>);</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>
|
||||
@ -1281,14 +1281,14 @@ gtk_page_setup_to_key_file (<em class="parameter"><code><a class="link" href="Gt
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>key_file</p></td>
|
||||
<td class="parameter_description"><p>the <span class="type">GKeyFile</span> to save the page setup to</p></td>
|
||||
<td class="parameter_description"><p>the <a href="https://developer.gnome.org/glib/unstable/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> to save the page setup to</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>group_name</p></td>
|
||||
<td class="parameter_description"><p>the group to add the settings to in <em class="parameter"><code>key_file</code></em>
|
||||
,
|
||||
or <code class="literal">NULL</code> to use the default name “Page Setup”</p></td>
|
||||
or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to use the default name “Page Setup”</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1299,10 +1299,10 @@ or <code class="literal">NULL</code> to use the default name “Page Setup”</p
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-page-setup-to-gvariant"></a><h3>gtk_page_setup_to_gvariant ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">GVariant</span> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
|
||||
gtk_page_setup_to_gvariant (<em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *setup</code></em>);</pre>
|
||||
<p>Serialize page setup to an a{sv} variant.</p>
|
||||
<p>Return: (transfer none): a new, floating, <span class="type">GVariant</span></p>
|
||||
<p>Return: (transfer none): a new, floating, <a href="https://developer.gnome.org/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a></p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-page-setup-to-gvariant.parameters"></a><h4>Parameters</h4>
|
||||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||||
|
Reference in New Issue
Block a user