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

📄 gtktooltip.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</td></tr><tr><td><p><span class="term"><em class="parameter"><code>markup</code></em>&#160;:</span></p></td><td> a markup string (see <ahref="/usr/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango markup format</a>) or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id4231831"></a><h3><a name="gtk-tooltip-set-text"></a>gtk_tooltip_set_text ()</h3><a class="indexterm" name="id4231847"></a><pre class="programlisting">void                gtk_tooltip_set_text                (<a class="link" href="GtkTooltip.html" title="GtkTooltip">GtkTooltip</a> *tooltip,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text);</pre><p>Sets the text of the tooltip to be <em class="parameter"><code>text</code></em>. If <em class="parameter"><code>text</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, the labelwill be hidden. See also <a class="link" href="GtkTooltip.html#gtk-tooltip-set-markup"><code class="function">gtk_tooltip_set_markup()</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>tooltip</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTooltip.html" title="GtkTooltip"><span class="type">GtkTooltip</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> a text string or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id4231978"></a><h3><a name="gtk-tooltip-set-icon"></a>gtk_tooltip_set_icon ()</h3><a class="indexterm" name="id4231993"></a><pre class="programlisting">void                gtk_tooltip_set_icon                (<a class="link" href="GtkTooltip.html" title="GtkTooltip">GtkTooltip</a> *tooltip,                                                         <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a> *pixbuf);</pre><p>Sets the icon of the tooltip (which is in front of the text) to be<em class="parameter"><code>pixbuf</code></em>.  If <em class="parameter"><code>pixbuf</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, the image will be hidden.</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>tooltip</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTooltip.html" title="GtkTooltip"><span class="type">GtkTooltip</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>pixbuf</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id4232121"></a><h3><a name="gtk-tooltip-set-icon-from-stock"></a>gtk_tooltip_set_icon_from_stock ()</h3><a class="indexterm" name="id4232137"></a><pre class="programlisting">void                gtk_tooltip_set_icon_from_stock     (<a class="link" href="GtkTooltip.html" title="GtkTooltip">GtkTooltip</a> *tooltip,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *stock_id,                                                         <a class="link" href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> size);</pre><p>Sets the icon of the tooltip (which is in front of the text) to bethe stock item indicated by <em class="parameter"><code>stock_id</code></em> with the size indicatedby <em class="parameter"><code>size</code></em>.  If <em class="parameter"><code>stock_id</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, the image will be hidden.</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>tooltip</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTooltip.html" title="GtkTooltip"><span class="type">GtkTooltip</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>stock_id</code></em>&#160;:</span></p></td><td> a stock icon name, 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>size</code></em>&#160;:</span></p></td><td> a stock icon size</td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id4232286"></a><h3><a name="gtk-tooltip-set-custom"></a>gtk_tooltip_set_custom ()</h3><a class="indexterm" name="id4232301"></a><pre class="programlisting">void                gtk_tooltip_set_custom              (<a class="link" href="GtkTooltip.html" title="GtkTooltip">GtkTooltip</a> *tooltip,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *custom_widget);</pre><p>Replaces the widget packed into the tooltip with <em class="parameter"><code>custom_widget</code></em>.  By default a box with a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a> and <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a> is embedded in the tooltip, which can be configured using <a class="link" href="GtkTooltip.html#gtk-tooltip-set-markup"><code class="function">gtk_tooltip_set_markup()</code></a> and <a class="link" href="GtkTooltip.html#gtk-tooltip-set-icon"><code class="function">gtk_tooltip_set_icon()</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>tooltip</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTooltip.html" title="GtkTooltip"><span class="type">GtkTooltip</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>custom_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></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id4232441"></a><h3><a name="gtk-tooltip-trigger-tooltip-query"></a>gtk_tooltip_trigger_tooltip_query ()</h3><a class="indexterm" name="id4232458"></a><pre class="programlisting">void                gtk_tooltip_trigger_tooltip_query   (<ahref="/usr/share/gtk-doc/html/gdk/GdkDisplay.html">GdkDisplay</a> *display);</pre><p>Triggers a new tooltip query on <em class="parameter"><code>display</code></em>, in order to update the currentvisible tooltip, or to show/hide the current tooltip.  This function isuseful to call when, for example, the state of the widget changed by akey press.</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>display</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk/GdkDisplay.html"><span class="type">GdkDisplay</span></a></td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id4232531"></a><h3><a name="gtk-tooltip-set-tip-area"></a>gtk_tooltip_set_tip_area ()</h3><a class="indexterm" name="id4232547"></a><pre class="programlisting">void                gtk_tooltip_set_tip_area            (<a class="link" href="GtkTooltip.html" title="GtkTooltip">GtkTooltip</a> *tooltip,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle">GdkRectangle</a> *rect);</pre><p>Sets the area of the widget, where the contents of this tooltip apply,to be <em class="parameter"><code>rect</code></em> (in widget coordinates).  This is especially useful forproperly setting tooltips on <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> rows and cells, <span class="type">GtkIconViews</span>,etc.</p><p>For setting tooltips on <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>, please refer to the conveniencefunctions for this: <a class="link" href="GtkTreeView.html#gtk-tree-view-set-tooltip-row"><code class="function">gtk_tree_view_set_tooltip_row()</code></a> and<a class="link" href="GtkTreeView.html#gtk-tree-view-set-tooltip-cell"><code class="function">gtk_tree_view_set_tooltip_cell()</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>tooltip</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTooltip.html" title="GtkTooltip"><span class="type">GtkTooltip</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>rect</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a></td></tr></tbody></table></div><p class="since">Since  2.12</p></div></div><div class="refsect1" lang="en"><a name="id4232704"></a><div class="refsect2" lang="en"><a name="id4232705"></a></div><hr><div class="refsect2" lang="en"><a name="id4232706"></a></div></div></div></body></html>

⌨️ 快捷键说明

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