📄 gtkpagesetup.html
字号:
<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" lang="en"><a name="id4173413"></a><h3><a name="gtk-page-setup-get-left-margin"></a>gtk_page_setup_get_left_margin ()</h3><a class="indexterm" name="id4173429"></a><pre class="programlisting"><ahref="/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">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" lang="en"><a name="id4173533"></a><h3><a name="gtk-page-setup-set-left-margin"></a>gtk_page_setup_set_left_margin ()</h3><a class="indexterm" name="id4173549"></a><pre class="programlisting">void gtk_page_setup_set_left_margin (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> margin, <a class="link" href="gtk-GtkPaperSize.html#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" lang="en"><a name="id4173678"></a><h3><a name="gtk-page-setup-get-right-margin"></a>gtk_page_setup_get_right_margin ()</h3><a class="indexterm" name="id4173694"></a><pre class="programlisting"><ahref="/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">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" lang="en"><a name="id4173798"></a><h3><a name="gtk-page-setup-set-right-margin"></a>gtk_page_setup_set_right_margin ()</h3><a class="indexterm" name="id4173814"></a><pre class="programlisting">void gtk_page_setup_set_right_margin (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> margin, <a class="link" href="gtk-GtkPaperSize.html#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" lang="en"><a name="id4173943"></a><h3><a name="gtk-page-setup-set-paper-size-and-default-margins"></a>gtk_page_setup_set_paper_size_and_default_margins ()</h3><a class="indexterm" name="id4173960"></a><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">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 modifiesthe 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"><span class="type">GtkPaperSize</span></a> </td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4174066"></a><h3><a name="gtk-page-setup-get-paper-width"></a>gtk_page_setup_get_paper_width ()</h3><a class="indexterm" name="id4174082"></a><pre class="programlisting"><ahref="/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">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"><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" lang="en"><a name="id4174202"></a><h3><a name="gtk-page-setup-get-paper-height"></a>gtk_page_setup_get_paper_height ()</h3><a class="indexterm" name="id4174218"></a><pre class="programlisting"><ahref="/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">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"><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" lang="en"><a name="id4174339"></a><h3><a name="gtk-page-setup-get-page-width"></a>gtk_page_setup_get_page_width ()</h3><a class="indexterm" name="id4174355"></a><pre class="programlisting"><ahref="/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,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -