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

📄 gtkitemfactory.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td> a widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the full path to <em class="parameter"><code>widget</code></em> if it has been created by an item  factory, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> otherwise. This value is owned by GTK+ and must not be  modified or freed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4539441"></a><h3><a name="gtk-item-factory-get-item"></a>gtk_item_factory_get_item ()</h3><a class="indexterm" name="id4539458"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_item_factory_get_item           (<a class="link" href="GtkItemFactory.html" title="GtkItemFactory">GtkItemFactory</a> *ifactory,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *path);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_item_factory_get_item</code> has been deprecated since version 2.4 and should not be used in newly-written code. </p></div><p>Obtains the menu item which corresponds to <em class="parameter"><code>path</code></em>. </p><p>If the widget corresponding to <em class="parameter"><code>path</code></em> is a menu item which opens a submenu, then the item is returned. If you are interested in the submenu, use <a class="link" href="GtkItemFactory.html#gtk-item-factory-get-widget"><code class="function">gtk_item_factory_get_widget()</code></a> instead.</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>ifactory</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></p></td><td> the path to the menu item</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the menu item for the given path, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>path</code></em> doesn't  lead to a menu item</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4539607"></a><h3><a name="gtk-item-factory-get-widget"></a>gtk_item_factory_get_widget ()</h3><a class="indexterm" name="id4539624"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_item_factory_get_widget         (<a class="link" href="GtkItemFactory.html" title="GtkItemFactory">GtkItemFactory</a> *ifactory,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *path);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_item_factory_get_widget</code> has been deprecated since version 2.4 and should not be used in newly-written code. </p></div><p>Obtains the widget which corresponds to <em class="parameter"><code>path</code></em>. </p><p>If the widget corresponding to <em class="parameter"><code>path</code></em> is a menu item which opens a submenu, then the submenu is returned. If you are interested in the menu item, use <a class="link" href="GtkItemFactory.html#gtk-item-factory-get-item"><code class="function">gtk_item_factory_get_item()</code></a> instead.</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>ifactory</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></p></td><td> the path to the widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the widget for the given path, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>path</code></em> doesn't lead  to a widget</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4539773"></a><h3><a name="gtk-item-factory-get-widget-by-action"></a>gtk_item_factory_get_widget_by_action ()</h3><a class="indexterm" name="id4539789"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_item_factory_get_widget_by_action                                                        (<a class="link" href="GtkItemFactory.html" title="GtkItemFactory">GtkItemFactory</a> *ifactory,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> action);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_item_factory_get_widget_by_action</code> has been deprecated since version 2.4 and should not be used in newly-written code. </p></div><p>Obtains the widget which was constructed from the <a class="link" href="GtkItemFactory.html#GtkItemFactoryEntry"><span class="type">GtkItemFactoryEntry</span></a>with the given <em class="parameter"><code>action</code></em>.</p><p>If there are multiple items with the same action, the result is undefined.</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>ifactory</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></p></td><td> an action as specified in the <em class="parameter"><code>callback_action</code></em> field  of <a class="link" href="GtkItemFactory.html#GtkItemFactoryEntry"><span class="type">GtkItemFactoryEntry</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the widget which corresponds to the given action, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>  if no widget was found</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4539940"></a><h3><a name="gtk-item-factory-get-item-by-action"></a>gtk_item_factory_get_item_by_action ()</h3><a class="indexterm" name="id4539956"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_item_factory_get_item_by_action (<a class="link" href="GtkItemFactory.html" title="GtkItemFactory">GtkItemFactory</a> *ifactory,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> action);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_item_factory_get_item_by_action</code> has been deprecated since version 2.4 and should not be used in newly-written code. </p></div><p>Obtains the menu item which was constructed from the first <a class="link" href="GtkItemFactory.html#GtkItemFactoryEntry"><span class="type">GtkItemFactoryEntry</span></a> with the given <em class="parameter"><code>action</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>ifactory</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>action</code></em>&#160;:</span></p></td><td> an action as specified in the <em class="parameter"><code>callback_action</code></em> field  of <a class="link" href="GtkItemFactory.html#GtkItemFactoryEntry"><span class="type">GtkItemFactoryEntry</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the menu item which corresponds to the given action, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>  if no menu item was found</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4540100"></a><h3><a name="gtk-item-factory-create-item"></a>gtk_item_factory_create_item ()</h3><a class="indexterm" name="id4540117"></a><pre class="programlisting">void                gtk_item_factory_create_item        (<a class="link" href="GtkItemFactory.html" title="GtkItemFactory">GtkItemFactory</a> *ifactory,                                                         <a class="link" href="GtkItemFactory.html#GtkItemFactoryEntry">GtkItemFactoryEntry</a> *entry,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> callback_data,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> callback_type);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_item_factory_create_item</code> has been deprecated since version 2.4 and should not be used in newly-written code. </p></div><p>Creates an item for <em class="parameter"><code>entry</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>ifactory</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>entry</code></em>&#160;:</span></p></td><td> the <a class="link" href="GtkItemFactory.html#GtkItemFactoryEntry"><span class="type">GtkItemFactoryEntry</span></a> to create an item for</td></tr><tr><td><p><span class="term"><em class="parameter"><code>callback_data</code></em>&#160;:</span></p></td><td> data passed to the callback function of <em class="parameter"><code>entry</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>callback_type</code></em>&#160;:</span></p></td><td> 1 if the callback function of <em class="parameter"><code>entry</code></em> is of type   <a class="link" href="GtkItemFactory.html#GtkItemFactoryCallback1"><span class="type">GtkItemFactoryCallback1</span></a>, 2 if it is of type <a class="link" href="GtkItemFactory.html#GtkItemFactoryCallback2"><span class="type">GtkItemFactoryCallback2</span></a> </td></tr></tbody></table></div></div><hr>

⌨️ 快捷键说明

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