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

📄 gtkimage.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<tr><td><p><span class="term"><a name="GTK-IMAGE-ANIMATION:CAPS"></a><code class="literal">GTK_IMAGE_ANIMATION</code></span></p></td><td>the widget contains a <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-animation.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a></td></tr><tr><td><p><span class="term"><a name="GTK-IMAGE-ICON-NAME:CAPS"></a><code class="literal">GTK_IMAGE_ICON_NAME</code></span></p></td><td>the widget contains a named icon.   This image type was added in GTK+ 2.6</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3440949"></a><h3><a name="gtk-image-get-icon-set"></a>gtk_image_get_icon_set ()</h3><a class="indexterm" name="id3440961"></a><pre class="programlisting">void                gtk_image_get_icon_set              (<a class="link" href="GtkImage.html" title="GtkImage">GtkImage</a> *image,                                                         <a class="link" href="gtk-Themeable-Stock-Images.html#GtkIconSet">GtkIconSet</a> **icon_set,                                                         <a class="link" href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> *size);</pre><p>Gets the icon set and size being displayed by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>.The storage type of the image must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-ICON-SET:CAPS"><code class="literal">GTK_IMAGE_ICON_SET</code></a> (see <a class="link" href="GtkImage.html#gtk-image-get-storage-type"><code class="function">gtk_image_get_storage_type()</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>image</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>icon_set</code></em>&#160;:</span></p></td><td> location to store a <a class="link" href="gtk-Themeable-Stock-Images.html#GtkIconSet"><span class="type">GtkIconSet</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></p></td><td> location to store a stock icon size</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3441113"></a><h3><a name="gtk-image-get-image"></a>gtk_image_get_image ()</h3><a class="indexterm" name="id3441127"></a><pre class="programlisting">void                gtk_image_get_image                 (<a class="link" href="GtkImage.html" title="GtkImage">GtkImage</a> *image,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Images.html#GdkImage">GdkImage</a> **gdk_image,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a> **mask);</pre><p>Gets the <ahref="/usr/share/gtk-doc/html/gdk/gdk-Images.html#GdkImage"><span class="type">GdkImage</span></a> and mask being displayed by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>.The storage type of the image must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-IMAGE:CAPS"><code class="literal">GTK_IMAGE_IMAGE</code></a> (see <a class="link" href="GtkImage.html#gtk-image-get-storage-type"><code class="function">gtk_image_get_storage_type()</code></a>).The caller of this function does not own a reference to thereturned image and mask.</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>image</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>gdk_image</code></em>&#160;:</span></p></td><td> return location for a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>mask</code></em>&#160;:</span></p></td><td> return location for a <ahref="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3441295"></a><h3><a name="gtk-image-get-pixbuf"></a>gtk_image_get_pixbuf ()</h3><a class="indexterm" name="id3441308"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a>*          gtk_image_get_pixbuf                (<a class="link" href="GtkImage.html" title="GtkImage">GtkImage</a> *image);</pre><p>Gets the <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> being displayed by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>.The storage type of the image must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-PIXBUF:CAPS"><code class="literal">GTK_IMAGE_PIXBUF</code></a> (see <a class="link" href="GtkImage.html#gtk-image-get-storage-type"><code class="function">gtk_image_get_storage_type()</code></a>).The caller of this function does not own a reference to thereturned pixbuf.</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>image</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the displayed pixbuf, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the image is empty</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3441438"></a><h3><a name="gtk-image-get-pixmap"></a>gtk_image_get_pixmap ()</h3><a class="indexterm" name="id3441451"></a><pre class="programlisting">void                gtk_image_get_pixmap                (<a class="link" href="GtkImage.html" title="GtkImage">GtkImage</a> *image,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap">GdkPixmap</a> **pixmap,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a> **mask);</pre><p>Gets the pixmap and mask being displayed by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>.The storage type of the image must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-PIXMAP:CAPS"><code class="literal">GTK_IMAGE_PIXMAP</code></a> (see <a class="link" href="GtkImage.html#gtk-image-get-storage-type"><code class="function">gtk_image_get_storage_type()</code></a>).The caller of this function does not own a reference to thereturned pixmap and mask.</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>image</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>pixmap</code></em>&#160;:</span></p></td><td> location to store the pixmap, 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>mask</code></em>&#160;:</span></p></td><td> location to store the mask, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3441617"></a><h3><a name="gtk-image-get-stock"></a>gtk_image_get_stock ()</h3><a class="indexterm" name="id3441629"></a><pre class="programlisting">void                gtk_image_get_stock                 (<a class="link" href="GtkImage.html" title="GtkImage">GtkImage</a> *image,                                                         <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>Gets the stock icon name and size being displayed by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>.The storage type of the image must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-STOCK:CAPS"><code class="literal">GTK_IMAGE_STOCK</code></a> (see <a class="link" href="GtkImage.html#gtk-image-get-storage-type"><code class="function">gtk_image_get_storage_type()</code></a>).The returned string is owned by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a> and should notbe 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>image</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>stock_id</code></em>&#160;:</span></p></td><td> place to store a stock icon name</td></tr><tr><td><p><span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></p></td><td> place to store a stock icon size</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3441782"></a><h3><a name="gtk-image-get-animation"></a>gtk_image_get_animation ()</h3><a class="indexterm" name="id3441795"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-animation.html#GdkPixbufAnimation">GdkPixbufAnimation</a>* gtk_image_get_animation             (<a class="link" href="GtkImage.html" title="GtkImage">GtkImage</a> *image);</pre><p>Gets the <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-animation.html#GdkPixbufAnimation"><span class="type">GdkPixbufAnimation</span></a> being displayed by the <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a>.The storage type of the image must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-ANIMATION:CAPS"><code class="literal">GTK_IMAGE_ANIMATION</code></a> (see <a class="link" href="GtkImage.html#gtk-image-get-storage-type"><code class="function">gtk_image_get_storage_type()</code></a>).The caller of this function does not own a reference to thereturned animation.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody>

⌨️ 快捷键说明

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