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

📄 gdrive.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <em class="parameter"><code>drive</code></em> can be ejected. <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229143"></a><h3><a name="g-drive-can-poll-for-media"></a>g_drive_can_poll_for_media ()</h3><a class="indexterm" name="id3229155"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            g_drive_can_poll_for_media          (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive);</pre><p>Checks if a drive can be polled for media changes.</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>drive</code></em>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></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 the <em class="parameter"><code>drive</code></em> can be polled for media changes. <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229247"></a><h3><a name="g-drive-poll-for-media"></a>g_drive_poll_for_media ()</h3><a class="indexterm" name="id3229258"></a><pre class="programlisting">void                g_drive_poll_for_media              (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive,                                                         <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>Polls <em class="parameter"><code>drive</code></em> to see if media has been inserted or removed.</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>drive</code></em>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>cancellable</code></em>&#160;:</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>&#160;:</span></p></td><td> a <a class="link" href="GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a>, 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>user_data</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229426"></a><h3><a name="g-drive-poll-for-media-finish"></a>g_drive_poll_for_media_finish ()</h3><a class="indexterm" name="id3229438"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            g_drive_poll_for_media_finish       (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive,                                                         <a class="link" href="GAsyncResult.html" title="GAsyncResult">GAsyncResult</a> *result,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Finishes poll_for_mediaing a drive.</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>drive</code></em>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>result</code></em>&#160;:</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>error</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></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 the drive has been poll_for_mediaed successfully,<ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229581"></a><h3><a name="g-drive-has-media"></a>g_drive_has_media ()</h3><a class="indexterm" name="id3229593"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            g_drive_has_media                   (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive);</pre><p>Checks if the <em class="parameter"><code>drive</code></em> has media. Note that the OS may not be pollingthe drive for media changes; see <a class="link" href="GDrive.html#g-drive-is-media-check-automatic"><code class="function">g_drive_is_media_check_automatic()</code></a>for more details.</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>drive</code></em>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></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>drive</code></em> has media, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229702"></a><h3><a name="g-drive-is-media-check-automatic"></a>g_drive_is_media_check_automatic ()</h3><a class="indexterm" name="id3229713"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            g_drive_is_media_check_automatic    (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive);</pre><p>Checks if <em class="parameter"><code>drive</code></em> is capabable of automatically detecting media changes.</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>drive</code></em>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></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 the <em class="parameter"><code>drive</code></em> is capabable of automatically detecting media changes, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229812"></a><h3><a name="g-drive-is-media-removable"></a>g_drive_is_media_removable ()</h3><a class="indexterm" name="id3229824"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            g_drive_is_media_removable          (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive);</pre><p>Checks if the <em class="parameter"><code>drive</code></em> supports removable media.</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>drive</code></em>&#160;:</span></p></td><td> a <a class="link" href="GDrive.html" title="GDrive"><span class="type">GDrive</span></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>drive</code></em> supports removable media, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3229921"></a><h3><a name="g-drive-eject"></a>g_drive_eject ()</h3><a class="indexterm" name="id3229933"></a><pre class="programlisting">void                g_drive_eject                       (<a class="link" href="GDrive.html" title="GDrive">GDrive</a> *drive,                                                         <a class="link" href="GMount.html#GMountUnmountFlags">GMountUnmountFlags</a> flags,                                                         <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>Ejects a drive.</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 + -