⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkpagesetup.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                                                         <a class="link" href="gtk-GtkPaperSize.html#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 andmargins into consideration. See <a class="link" href="GtkPageSetup.html#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>&#160;:</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>&#160;:</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>&#160;:</span></p></td><td> the page width.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4174475"></a><h3><a name="gtk-page-setup-get-page-height"></a>gtk_page_setup_get_page_height ()</h3><a class="indexterm" name="id4174491"></a><pre class="programlisting"><ahref="/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">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 andmargins into consideration. See <a class="link" href="GtkPageSetup.html#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>&#160;:</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>&#160;:</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>&#160;:</span></p></td><td> the page height.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4174611"></a><h3><a name="gtk-page-setup-new-from-file"></a>gtk_page_setup_new_from_file ()</h3><a class="indexterm" name="id4174627"></a><pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a>*       gtk_page_setup_new_from_file        (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *file_name,                                                         <ahref="/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 <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.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"><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>&#160;:</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>&#160;:</span></p></td><td> return location for an error, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</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" lang="en"><a name="id4174772"></a><h3><a name="gtk-page-setup-new-from-key-file"></a>gtk_page_setup_new_from_key_file ()</h3><a class="indexterm" name="id4174788"></a><pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a>*       gtk_page_setup_new_from_key_file    (<ahref="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile">GKeyFile</a> *key_file,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *group_name,                                                         <ahref="/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 restoredpage setup, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.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>&#160;:</span></p></td><td> the <ahref="/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>&#160;:</span></p></td><td> the name of the group in the key_file to read, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.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>&#160;:</span></p></td><td> return location for an error, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</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" lang="en"><a name="id4174971"></a><h3><a name="gtk-page-setup-to-file"></a>gtk_page_setup_to_file ()</h3><a class="indexterm" name="id4174986"></a><pre class="programlisting"><ahref="/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,                                                         <ahref="/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>&#160;:</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>&#160;:</span></p></td><td> the file to save to</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> return location for errors, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/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" lang="en"><a name="id4175138"></a><h3><a name="gtk-page-setup-to-key-file"></a>gtk_page_setup_to_key_file ()</h3><a class="indexterm" name="id4175155"></a><pre class="programlisting">void                gtk_page_setup_to_key_file          (<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a> *setup,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile">GKeyFile</a> *key_file,                                                         const <ahref="/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>&#160;:</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>&#160;:</span></p></td><td> the <ahref="/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>&#160;:</span></p></td><td> the group to add the settings to in <em class="parameter"><code>key_file</code></em>,      or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.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 class="refsect1" lang="en"><a name="id4175302"></a><div class="refsect2" lang="en"><a name="id4175303"></a></div><hr><div class="refsect2" lang="en"><a name="id4175304"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -