![]() |
![]() |
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 GObject. | |
const GtkFileFilter* | gobj () const |
Provides access to the underlying C GObject. | |
GtkFileFilter* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
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 . | |
Static Public Member Functions | |
Glib::RefPtr<FileFilter> | create () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<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 GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
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
|
|
|