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

📄 gtkfilechooserbutton.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
more space, you should call <a class="link" href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a>,<a class="link" href="GtkFileChooserButton.html#gtk-file-chooser-button-set-width-chars"><code class="function">gtk_file_chooser_button_set_width_chars()</code></a>, or pack the button insuch a way that other interface elements give space to the widget.</p></div></div><div class="refsect1" lang="en"><a name="id4033798"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id4033808"></a><h3><a name="GtkFileChooserButton-struct"></a>GtkFileChooserButton</h3><a class="indexterm" name="id4033821"></a><pre class="programlisting">typedef struct _GtkFileChooserButton GtkFileChooserButton;</pre><p>This should not be accessed directly.  Use the accessor functions below. </p></div><hr><div class="refsect2" lang="en"><a name="id4033838"></a><h3><a name="gtk-file-chooser-button-new"></a>gtk_file_chooser_button_new ()</h3><a class="indexterm" name="id4033855"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_file_chooser_button_new         (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *title,                                                         <a class="link" href="GtkFileChooser.html#GtkFileChooserAction">GtkFileChooserAction</a> action);</pre><p>Creates a new file-selecting button widget.</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>title</code></em>&#160;:</span></p></td><td> the title of the browse dialog.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></p></td><td> the open mode for the widget.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new button widget.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id4033945"></a><h3><a name="gtk-file-chooser-button-new-with-backend"></a>gtk_file_chooser_button_new_with_backend ()</h3><a class="indexterm" name="id4033962"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_file_chooser_button_new_with_backend                                                        (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *title,                                                         <a class="link" href="GtkFileChooser.html#GtkFileChooserAction">GtkFileChooserAction</a> action,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *backend);</pre><p>Creates a new file-selecting button widget using <em class="parameter"><code>backend</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>title</code></em>&#160;:</span></p></td><td> the title of the browse dialog.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></p></td><td> the open mode for the widget.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>backend</code></em>&#160;:</span></p></td><td> the name of the <span class="type">GtkFileSystem</span> backend to use.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new button widget.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id4034092"></a><h3><a name="gtk-file-chooser-button-new-with-dialog"></a>gtk_file_chooser_button_new_with_dialog ()</h3><a class="indexterm" name="id4034108"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_file_chooser_button_new_with_dialog                                                        (<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *dialog);</pre><p>Creates a <a class="link" href="GtkFileChooserButton.html" title="GtkFileChooserButton"><span class="type">GtkFileChooserButton</span></a> widget which uses <em class="parameter"><code>dialog</code></em> as itsfile-picking window.</p><p>Note that <em class="parameter"><code>dialog</code></em> must be a <a class="link" href="GtkDialog.html" title="GtkDialog"><span class="type">GtkDialog</span></a> (or subclass) whichimplements the <a class="link" href="GtkFileChooser.html" title="GtkFileChooser"><span class="type">GtkFileChooser</span></a> interface and must not have<a class="link" href="GtkDialog.html#GTK-DIALOG-DESTROY-WITH-PARENT:CAPS"><code class="literal">GTK_DIALOG_DESTROY_WITH_PARENT</code></a> set.</p><p>Also note that the dialog needs to have its confirmative buttonadded with response <a class="link" href="GtkDialog.html#GTK-RESPONSE-ACCEPT:CAPS"><code class="literal">GTK_RESPONSE_ACCEPT</code></a> or <a class="link" href="GtkDialog.html#GTK-RESPONSE-OK:CAPS"><code class="literal">GTK_RESPONSE_OK</code></a> inorder for the button to take over the file selected in the dialog.</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>dialog</code></em>&#160;:</span></p></td><td> the widget to use as dialog</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new button widget.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id4034260"></a><h3><a name="gtk-file-chooser-button-get-title"></a>gtk_file_chooser_button_get_title ()</h3><a class="indexterm" name="id4034277"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_file_chooser_button_get_title   (<a class="link" href="GtkFileChooserButton.html" title="GtkFileChooserButton">GtkFileChooserButton</a> *button);</pre><p>Retrieves the title of the browse dialog used by <em class="parameter"><code>button</code></em>. The returned valueshould not be modified or freed.</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>button</code></em>&#160;:</span></p></td><td> the button widget to examine.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a pointer to the browse dialog's title.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id4034354"></a><h3><a name="gtk-file-chooser-button-set-title"></a>gtk_file_chooser_button_set_title ()</h3><a class="indexterm" name="id4034370"></a><pre class="programlisting">void                gtk_file_chooser_button_set_title   (<a class="link" href="GtkFileChooserButton.html" title="GtkFileChooserButton">GtkFileChooserButton</a> *button,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *title);</pre><p>Modifies the <em class="parameter"><code>title</code></em> of the browse dialog used by <em class="parameter"><code>button</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>button</code></em>&#160;:</span></p></td><td> the button widget to modify.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></p></td><td> the new browse dialog title.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id4034462"></a><h3><a name="gtk-file-chooser-button-get-width-chars"></a>gtk_file_chooser_button_get_width_chars ()</h3><a class="indexterm" name="id4034478"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_file_chooser_button_get_width_chars                                                        (<a class="link" href="GtkFileChooserButton.html" title="GtkFileChooserButton">GtkFileChooserButton</a> *button);</pre><p>Retrieves the width in characters of the <em class="parameter"><code>button</code></em> widget's entry and/or label.</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>button</code></em>&#160;:</span></p></td><td> the button widget to examine.</td></tr>

⌨️ 快捷键说明

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