📄 gsimpleasyncresult.html
字号:
<td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a pointer from the result.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3182321"></a><h3><a name="g-simple-async-result-set-op-res-gssize"></a>g_simple_async_result_set_op_res_gssize ()</h3><a class="indexterm" name="id3182334"></a><pre class="programlisting">void g_simple_async_result_set_op_res_gssize (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize">gssize</a> op_res);</pre><p>Sets the operation result within the asynchronous result to the given <em class="parameter"><code>op_res</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>op_res</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3182429"></a><h3><a name="g-simple-async-result-get-op-res-gssize"></a>g_simple_async_result_get_op_res_gssize ()</h3><a class="indexterm" name="id3182442"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize">gssize</a> g_simple_async_result_get_op_res_gssize (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple);</pre><p>Gets a gssize from the asynchronous result.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a gssize returned from the asynchronous function.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3182513"></a><h3><a name="g-simple-async-result-set-op-res-gboolean"></a>g_simple_async_result_set_op_res_gboolean ()</h3><a class="indexterm" name="id3182528"></a><pre class="programlisting">void g_simple_async_result_set_op_res_gboolean (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> op_res);</pre><p>Sets the operation result to a boolean within the asynchronous result.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>op_res</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3182615"></a><h3><a name="g-simple-async-result-get-op-res-gboolean"></a>g_simple_async_result_get_op_res_gboolean ()</h3><a class="indexterm" name="id3182629"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> g_simple_async_result_get_op_res_gboolean (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple);</pre><p>Gets the operation result boolean from within the asynchronous result.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the operation's result was <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the operation's result was <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>. </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3182737"></a><h3><a name="g-simple-async-result-get-source-tag"></a>g_simple_async_result_get_source_tag ()</h3><a class="indexterm" name="id3182751"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> g_simple_async_result_get_source_tag (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple);</pre><p>Gets the source tag for the <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> to the source object for the <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3182843"></a><h3><a name="g-simple-async-result-set-handle-cancellation"></a>g_simple_async_result_set_handle_cancellation ()</h3><a class="indexterm" name="id3182857"></a><pre class="programlisting">void g_simple_async_result_set_handle_cancellation (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> handle_cancellation);</pre><p>Sets whether to handle cancellation within the asynchronous operation.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>handle_cancellation</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3185096"></a><h3><a name="g-simple-async-result-complete"></a>g_simple_async_result_complete ()</h3><a class="indexterm" name="id3185108"></a><pre class="programlisting">void g_simple_async_result_complete (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple);</pre><p>Completes an asynchronous I/O job.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3185160"></a><h3><a name="g-simple-async-result-complete-in-idle"></a>g_simple_async_result_complete_in_idle ()</h3><a class="indexterm" name="id3185172"></a><pre class="programlisting">void g_simple_async_result_complete_in_idle (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple);</pre><p>Completes an asynchronous function in the main event loop using an idle function.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3185226"></a><h3><a name="g-simple-async-result-run-in-thread"></a>g_simple_async_result_run_in_thread ()</h3><a class="indexterm" name="id3185239"></a><pre class="programlisting">void g_simple_async_result_run_in_thread (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple, <a class="link" href="GSimpleAsyncResult.html#GSimpleAsyncThreadFunc">GSimpleAsyncThreadFunc</a> func, int io_priority, <a class="link" href="GCancellable.html" title="GCancellable">GCancellable</a> *cancellable);</pre><p>Runs the asynchronous job in a separated thread.</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>simple</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult"><span class="type">GSimpleAsyncResult</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td><td> a <a class="link" href="GSimpleAsyncResult.html#GSimpleAsyncThreadFunc"><span class="type">GSimpleAsyncThreadFunc</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>io_priority</code></em> :</span></p></td><td> the io priority of the request.</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></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3185369"></a><h3><a name="g-simple-async-result-set-from-error"></a>g_simple_async_result_set_from_error ()</h3><a class="indexterm" name="id3185382"></a><pre class="programlisting">void g_simple_async_result_set_from_error (<a class="link" href="GSimpleAsyncResult.html" title="GSimpleAsyncResult">GSimpleAsyncResult</a> *simple, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> *error);</pre><p>Sets the result from a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>.</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 + -