|
| FileFilter (FileFilter&& src) noexcept |
|
FileFilter& | operator= (FileFilter&& src) noexcept |
|
| ~FileFilter () noexcept override |
|
GtkFileFilter* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkFileFilter* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GtkFileFilter* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
void | set_name (const Glib::ustring& name) |
| Sets a human-readable name of the filter. More...
|
|
Glib::ustring | get_name () const |
| Gets the human-readable name for the filter. More...
|
|
void | add_mime_type (const Glib::ustring& mime_type) |
| Adds a rule allowing a given mime type to filter. More...
|
|
void | add_pattern (const Glib::ustring& pattern) |
| Adds a rule allowing a shell style glob to a filter. More...
|
|
void | add_pixbuf_formats () |
| Adds a rule allowing image files in the formats supported by GdkPixbuf. More...
|
|
Glib::PropertyProxy< Glib::ustring > | property_name () |
| The human-readable name of the filter. More...
|
|
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
| The human-readable name of the filter. More...
|
|
| Filter (Filter&& src) noexcept |
|
Filter& | operator= (Filter&& src) noexcept |
|
| ~Filter () noexcept override |
|
GtkFilter* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkFilter* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GtkFilter* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
bool | match (const Glib::RefPtr< Glib::ObjectBase >& item) |
| Checks if the given item is matched by the filter or not. More...
|
|
Match | get_strictness () |
| Gets the known strictness of filters. More...
|
|
Glib::SignalProxy< void(Change)> | signal_changed () |
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| Buildable (Buildable&& src) noexcept |
|
Buildable& | operator= (Buildable&& src) noexcept |
|
| ~Buildable () noexcept override |
|
GtkBuildable* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkBuildable* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
Glib::ustring | get_buildable_id () const |
| Gets the ID of the buildable object. More...
|
|
| Interface () |
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
|
| Interface (GObject *castitem) |
|
| ~Interface () noexcept override |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
A filter for selecting a file subset.
A Gtk::FileFilter can be used to restrict the files being shown in a Gtk::FileChooser. Files can be filtered based on their name (with add_pattern()), on their MIME type (with add_mime_type()), or by a custom filter function (with add_custom()).
Filtering by MIME types 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 Gtk::FileFilter allows wildcards for the subtype of a MIME type, so you can e.g. filter for image/*
.
Filters are used by adding them to a Gtk::FileChooser. See Gtk::FileChooser::add_filter().