Main Page
Widgets
Namespaces
Book
Gtk::RecentFilter Class Reference
[RecentFiles]
Inheritance diagram for Gtk::RecentFilter:
[legend]List of all members.
Detailed Description
RecentFilter can be used to restrict the files being shown in a RecentChooser.
Files can be filtered based on their name (with add_pattern()), on their mime type (with add_mime_type()), on the application that has registered them (with add_application()), or by a custom filter function (with add_custom()).
Filtering by mime type handles aliasing and subclassing of mime types; 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 RecentFilter allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*.
Normally, filters are used by adding them to a RecentChooser, see RecentChooser::add_filter(), but it is also possible to manually use a filter on a file with filter().
- Since gtkmm 2.10:
Member Typedef Documentation
|
For instance, bool on_custom(const Gtk::RecentFilter::Info& filter_info);.
|
Constructor & Destructor Documentation
virtual Gtk::RecentFilter::~RecentFilter |
( |
|
) |
[virtual] |
|
Gtk::RecentFilter::RecentFilter |
( |
|
) |
|
|
Member Function Documentation
void Gtk::RecentFilter::add_age |
( |
int |
days |
) |
|
|
void Gtk::RecentFilter::add_application |
( |
const Glib::ustring& |
application |
) |
|
|
void Gtk::RecentFilter::add_mime_type |
( |
const Glib::ustring& |
mime_type |
) |
|
|
void Gtk::RecentFilter::add_pattern |
( |
const Glib::ustring& |
pattern |
) |
|
|
void Gtk::RecentFilter::add_pixbuf_formats |
( |
|
) |
|
|
const GtkRecentFilter* Gtk::RecentFilter::gobj |
( |
|
) |
const [inline] |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Object. |
GtkRecentFilter* Gtk::RecentFilter::gobj |
( |
|
) |
[inline] |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Object. |
Friends And Related Function Documentation
Gtk::RecentFilter* wrap |
( |
GtkRecentFilter* |
object, |
|
|
bool |
take_copy = false |
|
) |
[related] |
|
|
- Parameters:
-
| object | The C instance |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns:
- A C++ instance that wraps this C instance.
|
The documentation for this class was generated from the following file:
Generated for gtkmm 2.4 by
Doxygen 1.4.6 © 1997-2001