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

📄 gtktooltips.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<a name="gtk-tooltips-enable"></a>gtk_tooltips_enable ()</h3><a class="indexterm" name="id4587625"></a><pre class="programlisting">void                gtk_tooltips_enable                 (<a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_enable</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Allows the user to see your tooltips as they navigate your application.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4587693"></a><h3><a name="gtk-tooltips-disable"></a>gtk_tooltips_disable ()</h3><a class="indexterm" name="id4587709"></a><pre class="programlisting">void                gtk_tooltips_disable                (<a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_disable</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Causes all tooltips in <em class="parameter"><code>tooltips</code></em> to become inactive. Any widgets that have tips associated with that group will no longer display their tips until they are enabled again with <a class="link" href="GtkTooltips.html#gtk-tooltips-enable"><code class="function">gtk_tooltips_enable()</code></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4587795"></a><h3><a name="gtk-tooltips-set-delay"></a>gtk_tooltips_set_delay ()</h3><a class="indexterm" name="id4587811"></a><pre class="programlisting">void                gtk_tooltips_set_delay              (<a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> delay);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_set_delay</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Sets the time between the user moving the mouse over a widget and the widget's tooltip appearing.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>delay</code></em>&#160;:</span></p></td><td>an integer value representing milliseconds.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4587902"></a><h3><a name="gtk-tooltips-set-tip"></a>gtk_tooltips_set_tip ()</h3><a class="indexterm" name="id4587917"></a><pre class="programlisting">void                gtk_tooltips_set_tip                (<a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *tip_text,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *tip_private);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_set_tip</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Adds a tooltip containing the message <em class="parameter"><code>tip_text</code></em> to the specified <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> you wish to associate the tip with.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tip_text</code></em>&#160;:</span></p></td><td>a string containing the tip itself.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tip_private</code></em>&#160;:</span></p></td><td>a string of any further information that may be useful if the user gets stuck.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4588074"></a><h3><a name="gtk-tooltips-data-get"></a>gtk_tooltips_data_get ()</h3><a class="indexterm" name="id4588090"></a><pre class="programlisting"><a class="link" href="GtkTooltips.html#GtkTooltipsData">GtkTooltipsData</a>*    gtk_tooltips_data_get               (<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_data_get</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Retrieves any <a class="link" href="GtkTooltips.html#GtkTooltipsData"><span class="type">GtkTooltipsData</span></a> previously associated with the given widget.</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 <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a <a class="link" href="GtkTooltips.html#GtkTooltipsData"><span class="type">GtkTooltipsData</span></a> struct, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the widget has no tooltip.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4588196"></a><h3><a name="gtk-tooltips-force-window"></a>gtk_tooltips_force_window ()</h3><a class="indexterm" name="id4588212"></a><pre class="programlisting">void                gtk_tooltips_force_window           (<a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_force_window</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Ensures that the window used for displaying the given <em class="parameter"><code>tooltips</code></em> is created.</p><p>Applications should never have to call this function, since GTK+ takescare of this.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td>a <span class="type">GtkToolTips</span></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4588293"></a><h3><a name="gtk-tooltips-get-info-from-tip-window"></a>gtk_tooltips_get_info_from_tip_window ()</h3><a class="indexterm" name="id4588309"></a><a class="indexterm" name="id4588318"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_tooltips_get_info_from_tip_window                                                        (<a class="link" href="GtkWindow.html" title="GtkWindow">GtkWindow</a> *tip_window,                                                         <a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> **tooltips,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> **current_widget);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tooltips_get_info_from_tip_window</code> has been deprecated since version 2.12 and should not be used in newly-written code. </p></div><p>Determines the tooltips and the widget they belong to from the window in which they are displayed. </p><p>This function is mostly intended for use by accessibility technologies;applications should have little use for it.</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>tip_window</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td> the return location for the tooltips which are displayed    in <em class="parameter"><code>tip_window</code></em>, 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"><em class="parameter"><code>current_widget</code></em>&#160;:</span></p></td><td> the return location for the widget whose tooltips    are displayed, 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> if <em class="parameter"><code>tip_window</code></em> is displaying tooltips, otherwise <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div></div><div class="refsect1" lang="en"><a name="id4588511"></a><h2>See Also</h2><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></span></p></td><td><p>Create groups of widgets with their own tooltips.</p></td></tr><tr><td><p><span class="term"><a class="link" href="GtkTipsQuery.html" title="GtkTipsQuery"><span class="type">GtkTipsQuery</span></a></span></p></td><td><p>Query tooltips to create context-sensitive help.</p></td></tr></tbody></table></div><p></p></div><div class="refsect1" lang="en"><a name="id4588559"></a><div class="refsect2" lang="en"><a name="id4588560"></a></div><hr><div class="refsect2" lang="en"><a name="id4588561"></a></div></div></div></body></html>

⌨️ 快捷键说明

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