![]() |

Public Types | |
| typedef sigc::slot< bool, const GtkFileFilterInfo* > | SlotCustom |
| For instance, bool on_custom(const GtkFileFilterInfo* filter_info);. | |
Public Member Functions | |
| virtual | ~FileFilter () |
| GtkFileFilter* | gobj () |
| Provides access to the underlying C GtkObject. | |
| const GtkFileFilter* | gobj () const |
| Provides access to the underlying C GtkObject. | |
| FileFilter () | |
| void | set_name (const Glib::ustring& name) |
| Sets the human-readable name of the filter; this is the string that will be displayed in the file selector user interface if there is a selectable list of filters. | |
| Glib::ustring | get_name () const |
| Gets the human-readable name for the filter. | |
| void | add_mime_type (const Glib::ustring& mime_type) |
| Adds a rule allowing a given mime type to filter . | |
| void | add_pattern (const Glib::ustring& pattern) |
| Adds a rule allowing a shell style glob to a filter. | |
| void | add_custom (FileFilterFlags needed, const SlotCustom& slot) |
| FileFilterFlags | get_needed () const |
| Gets the fields that need to be filled in for the structure passed to gtk_file_filter_filter(). | |
| bool | filter (const GtkFileFilterInfo* filter_info) |
| Tests whether a file should be displayed according to filter . | |
Related Functions | |
| (Note that these are not member functions.) | |
| Gtk::FileFilter* | wrap (GtkFileFilter* object, bool take_copy=false) |
|
|
For instance, bool on_custom(const GtkFileFilterInfo* filter_info);.
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Adds a rule allowing a given mime type to filter . Since: 2.4
|
|
|
Adds a rule allowing a shell style glob to a filter. Since: 2.4
|
|
|
Tests whether a file should be displayed according to filter . The Gtk::FileFilterInfo structure filter_info should include the fields returned feom gtk_file_filter_get_needed(). This function will not typically be used by applications; it is intended principally for use in the implementation of Gtk::FileChooser.
|
|
|
Gets the human-readable name for the filter. See gtk_file_filter_set_name().
|
|
|
Gets the fields that need to be filled in for the structure passed to gtk_file_filter_filter(). This function will not typically be used by applications; it is intended principally for use in the implementation of Gtk::FileChooser.
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Object. |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Object. |
|
|
Sets the human-readable name of the filter; this is the string that will be displayed in the file selector user interface if there is a selectable list of filters. Since: 2.4
|
|
||||||||||||
|
|