📄 gloadableicon.html
字号:
</tr><tr><td><p><span class="term"><em class="structfield"><code>load_finish</code></em> ()</span></p></td><td> Finishes an asynchronous icon load.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3214153"></a><h3><a name="g-loadable-icon-load"></a>g_loadable_icon_load ()</h3><a class="indexterm" name="id3214164"></a><pre class="programlisting"><a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a>* g_loadable_icon_load (<a class="link" href="GLoadableIcon.html" title="GLoadableIcon">GLoadableIcon</a> *icon, int size, char **type, <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Loads a loadable icon. For the asynchronous version of this function, see <a class="link" href="GLoadableIcon.html#g-loadable-icon-load-async"><code class="function">g_loadable_icon_load_async()</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>icon</code></em> :</span></p></td><td> a <a class="link" href="GLoadableIcon.html" title="GLoadableIcon"><span class="type">GLoadableIcon</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td><td> an integer.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td> a location to store the type of the loaded icon, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td><td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a> to read the icon from.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3234293"></a><h3><a name="g-loadable-icon-load-async"></a>g_loadable_icon_load_async ()</h3><a class="indexterm" name="id3234304"></a><pre class="programlisting">void g_loadable_icon_load_async (<a class="link" href="GLoadableIcon.html" title="GLoadableIcon">GLoadableIcon</a> *icon, int size, <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable, <a class="link" href="GAsyncResult.html#GAsyncReadyCallback">GAsyncReadyCallback</a> callback, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data);</pre><p>Loads an icon asynchronously. To finish this function, see <a class="link" href="GLoadableIcon.html#g-loadable-icon-load-finish"><code class="function">g_loadable_icon_load_finish()</code></a>. For the synchronous, blocking version of this function, see <a class="link" href="GLoadableIcon.html#g-loadable-icon-load"><code class="function">g_loadable_icon_load()</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>icon</code></em> :</span></p></td><td> a <a class="link" href="GLoadableIcon.html" title="GLoadableIcon"><span class="type">GLoadableIcon</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td><td> an integer.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td><td> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </td></tr><tr><td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td><td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td> the data to pass to callback function</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3234490"></a><h3><a name="g-loadable-icon-load-finish"></a>g_loadable_icon_load_finish ()</h3><a class="indexterm" name="id3234501"></a><pre class="programlisting"><a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a>* g_loadable_icon_load_finish (<a class="link" href="GLoadableIcon.html" title="GLoadableIcon">GLoadableIcon</a> *icon, <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *res, char **type, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Finishes an asynchronous icon load started in <a class="link" href="GLoadableIcon.html#g-loadable-icon-load-async"><code class="function">g_loadable_icon_load_async()</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>icon</code></em> :</span></p></td><td> a <a class="link" href="GLoadableIcon.html" title="GLoadableIcon"><span class="type">GLoadableIcon</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td><td> a <a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td> a location to store the type of the loaded icon, <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occuring, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a> to read the icon from.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3234684"></a><h2>See Also</h2><a class="link" href="GIcon.html" title="GIcon"><span class="type">GIcon</span></a>, <a class="link" href="GThemedIcon.html" title="GThemedIcon"><span class="type">GThemedIcon</span></a></div><div class="refsect1" lang="en"><a name="id3234706"></a><div class="refsect2" lang="en"><a name="id3234707"></a></div><hr><div class="refsect2" lang="en"><a name="id3234708"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -