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

📄 gtkfilefilter.sgml

📁 This GTK+ version 2.12.3. GTK+ is a multi-platform toolkit for creating graphical user interfaces.
💻 SGML
字号:
<!-- ##### SECTION Title ##### -->GtkFileFilter<!-- ##### SECTION Short_Description ##### -->A filter for selecting a file subset<!-- ##### SECTION Long_Description ##### --><para>A GtkFileFilter can be used to restrict the files being shownin a #GtkFileChooser. Files can be filtered based on their name(with gtk_file_filter_add_pattern()), on their mime type (withgtk_file_filter_add_mime_type()), or by a custom filter function(with gtk_file_filter_add_custom()). </para><para>Filtering by mime types handles aliasing and subclassing of mimetypes; e.g. a filter for text/plain also matches a file with mime type application/rtf, since application/rtf is a subclass of text/plain. Note that #GtkFileFilter allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*.</para><para>Normally, filters are used by adding them to a #GtkFileChooser,see gtk_file_chooser_add_filter(), but it is also possibleto manually use a filter on a file with gtk_file_filter_filter().</para><!-- ##### SECTION See_Also ##### --><para>#GtkFileChooser</para><!-- ##### SECTION Stability_Level ##### --><!-- ##### STRUCT GtkFileFilter ##### --><para>The <structname>GtkFileFilter</structname> struct containsonly private fields and should not be directly accessed.</para><!-- ##### STRUCT GtkFileFilterInfo ##### --><para>A <structname>GtkFileFilterInfo</structname> struct is usedto pass information about the tested file to gtk_file_filter_filter(). </para>@contains: Flags indicating which of the following fields need  are filled@filename: the filename of the file being tested@uri: the URI for the file being tested@display_name: the string that will be used to display the file  in the file chooser@mime_type: the mime type of the file<!-- ##### ENUM GtkFileFilterFlags ##### --><para>These flags indicate what parts of a #GtkFileFilterInfo structare filled or need to be filled. </para>@GTK_FILE_FILTER_FILENAME: the filename of the file being tested@GTK_FILE_FILTER_URI: the URI for the file being tested@GTK_FILE_FILTER_DISPLAY_NAME: the string that will be used to   display the file in the file chooser@GTK_FILE_FILTER_MIME_TYPE: the mime type of the file<!-- ##### USER_FUNCTION GtkFileFilterFunc ##### --><para>The type of function that is used with custom filters,see gtk_file_filter_add_custom().</para>@filter_info: a #GtkFileFilterInfo that is filled according  to the @needed flags passed to gtk_file_filter_add_custom()@data: user data passed to gtk_file_filter_add_custom()@Returns: %TRUE if the file should be displayed<!-- ##### FUNCTION gtk_file_filter_new ##### --><para></para>@Returns: <!-- ##### FUNCTION gtk_file_filter_set_name ##### --><para></para>@filter: @name: <!-- ##### FUNCTION gtk_file_filter_get_name ##### --><para></para>@filter: @Returns: <!-- ##### FUNCTION gtk_file_filter_add_mime_type ##### --><para></para>@filter: @mime_type: <!-- ##### FUNCTION gtk_file_filter_add_pattern ##### --><para></para>@filter: @pattern: <!-- ##### FUNCTION gtk_file_filter_add_pixbuf_formats ##### --><para></para>@filter: <!-- ##### FUNCTION gtk_file_filter_add_custom ##### --><para></para>@filter: @needed: @func: @data: @notify: <!-- ##### FUNCTION gtk_file_filter_get_needed ##### --><para></para>@filter: @Returns: <!-- ##### FUNCTION gtk_file_filter_filter ##### --><para></para>@filter: @filter_info: @Returns: 

⌨️ 快捷键说明

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