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

📄 gfileinfo.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</p></div><hr><div class="refsect2" lang="en"><a name="id3084219"></a><h3><a name="GFileType"></a>enum GFileType</h3><a class="indexterm" name="id3084231"></a><pre class="programlisting">typedef enum {  G_FILE_TYPE_UNKNOWN = 0,  G_FILE_TYPE_REGULAR,  G_FILE_TYPE_DIRECTORY,  G_FILE_TYPE_SYMBOLIC_LINK,  G_FILE_TYPE_SPECIAL, /* socket, fifo, blockdev, chardev */  G_FILE_TYPE_SHORTCUT,  G_FILE_TYPE_MOUNTABLE} GFileType;</pre><p>Indicates the file's on-disk type.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a name="G-FILE-TYPE-UNKNOWN:CAPS"></a><code class="literal">G_FILE_TYPE_UNKNOWN</code></span></p></td><td> File's type is unknown.</td></tr><tr><td><p><span class="term"><a name="G-FILE-TYPE-REGULAR:CAPS"></a><code class="literal">G_FILE_TYPE_REGULAR</code></span></p></td><td> File handle represents a regular file.</td></tr><tr><td><p><span class="term"><a name="G-FILE-TYPE-DIRECTORY:CAPS"></a><code class="literal">G_FILE_TYPE_DIRECTORY</code></span></p></td><td> File handle represents a directory.</td></tr><tr><td><p><span class="term"><a name="G-FILE-TYPE-SYMBOLIC-LINK:CAPS"></a><code class="literal">G_FILE_TYPE_SYMBOLIC_LINK</code></span></p></td><td> File handle represents a symbolic link    (Unix systems).</td></tr><tr><td><p><span class="term"><a name="G-FILE-TYPE-SPECIAL:CAPS"></a><code class="literal">G_FILE_TYPE_SPECIAL</code></span></p></td><td> File is a "special" file, such as a socket, fifo,    block device, or character device.</td></tr><tr><td><p><span class="term"><a name="G-FILE-TYPE-SHORTCUT:CAPS"></a><code class="literal">G_FILE_TYPE_SHORTCUT</code></span></p></td><td> File is a shortcut (Windows systems).</td></tr><tr><td><p><span class="term"><a name="G-FILE-TYPE-MOUNTABLE:CAPS"></a><code class="literal">G_FILE_TYPE_MOUNTABLE</code></span></p></td><td> File is a mountable location.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3084410"></a><h3><a name="GFileInfo-struct"></a>GFileInfo</h3><a class="indexterm" name="id3084423"></a><pre class="programlisting">typedef struct _GFileInfo GFileInfo;</pre><p>Stores information about a file system object referenced by a <a class="link" href="GFile.html" title="GFile"><span class="type">GFile</span></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084450"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-TYPE:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_TYPE</h3><a class="indexterm" name="id3084464"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_TYPE "standard::type"                     /* uint32 (GFileType) */</pre><p>A key in the "standard" namespace for storing file types. Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-UINT32:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_UINT32</code></a>.The value for this key should contain a <a class="link" href="GFileInfo.html#GFileType"><span class="type">GFileType</span></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084511"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-IS-HIDDEN:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN</h3><a class="indexterm" name="id3084525"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "standard::is-hidden"           /* boolean */</pre><p>A key in the "standard" namespace for checking if a file is hidden. Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084565"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-IS-BACKUP:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP</h3><a class="indexterm" name="id3084579"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup"           /* boolean */</pre><p>A key in the "standard" namespace for checking if a file is a backup file.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084618"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-IS-SYMLINK:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK</h3><a class="indexterm" name="id3084631"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK "standard::is-symlink"         /* boolean */</pre><p>A key in the "standard" namespace for checking if the file is a symlink.Typically the actual type is something else, if we followed the symlinkto get the type.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084673"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-IS-VIRTUAL:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL</h3><a class="indexterm" name="id3084686"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL "standard::is-virtual"         /* boolean */</pre><p>A key in the "standard" namespace for checking if a file is virtual.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BOOLEAN:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BOOLEAN</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084726"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-NAME:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_NAME</h3><a class="indexterm" name="id3084740"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_NAME "standard::name"                     /* byte string */</pre><p>A key in the "standard" namespace for getting the name of the file.The name is the on-disk filename which may not be in any known encoding,and can thus not be generally displayed as is.Use <a class="link" href="GFileInfo.html#G-FILE-ATTRIBUTE-STANDARD-DISPLAY-NAME:CAPS"><span class="type">G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</span></a> if you need to display thename in a user interface.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-BYTE-STRING:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_BYTE_STRING</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084791"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-DISPLAY-NAME:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</h3><a class="indexterm" name="id3084804"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "standard::display-name"     /* string */</pre><p>A key in the "standard" namespace for getting the display name of the file.A display name is guaranteed to be in UTF8 and can thus be displayed inthe UI.Corresponding <a class="link" href="gio-GFileAttribute.html#GFileAttributeType"><span class="type">GFileAttributeType</span></a> is <a class="link" href="gio-GFileAttribute.html#G-FILE-ATTRIBUTE-TYPE-STRING:CAPS"><code class="literal">G_FILE_ATTRIBUTE_TYPE_STRING</code></a>.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id3084846"></a><h3><a name="G-FILE-ATTRIBUTE-STANDARD-EDIT-NAME:CAPS"></a>G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME</h3><a class="indexterm" name="id3084860"></a><pre class="programlisting">#define G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME "standard::edit-name"           /* string */</pre><p>A key in the "standard" namespace for edit name of the file.An edit name is similar to the display name, but it is meant to beused when you want to rename the file in the UI. The display namemight contain information you don't want in the new filename (such as"(invalid unicode)" if the filename was in an invalid encoding).</p>

⌨️ 快捷键说明

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