GObject.Object
GObject.InitiallyUnowned
Gtk.Object
Gtk.FileFilter
| Import line: | Gtk = imports.gi.Gtk; |
| GIR File: | Gtk-2.0.gir |
| C documentation: | GtkFileFilter |
| Class : | FileFilter |
| Extends: | Gtk.Object |
| Show / Hide Inherited methods, properties and signals |
| Properties | Defined By | |
|---|---|---|
|
flags : Number
read only
|
Gtk.Object | |
|
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
|
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Object | |
|
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
|
ref_count : Number
|
GObject.InitiallyUnowned | |
|
user_data : void*
|
Gtk.Object | |
| Method / Constructor | Defined By | |
|---|---|---|
|
new Gtk.FileFilter
(Object properties)
Create a new Gtk.FileFilter
Create a new Gtk.FileFilter
|
||
|
Adds rule to a filter that allows files based on a custom callback function.
Adds rule to a filter that allows files based on a custom callback function. The bitfield needed which is passed in provides information about what sorts of information that the filter function needs; this allows GTK+ to avoid retrieving expensive information when it isn't needed by the filter.
|
Gtk.FileFilter | |
|
add_mime_type
(String mime_type)
:
none
Adds a rule allowing a given mime type to filter.
Adds a rule allowing a given mime type to filter.
|
Gtk.FileFilter | |
|
add_pattern
(String pattern)
:
none
Adds a rule allowing a shell style glob to a filter.
Adds a rule allowing a shell style glob to a filter.
|
Gtk.FileFilter | |
|
add_pixbuf_formats
()
:
none
Adds a rule allowing image files in the formats supported by GdkPixbuf.
Adds a rule allowing image files in the formats supported by GdkPixbuf.
|
Gtk.FileFilter | |
|
destroy
()
:
none
|
Gtk.Object | |
|
filter
(FileFilterInfo filter_info)
:
Boolean
Tests whether a file should be displayed according to filter.
Tests whether a file should be displayed according to filter. The GtkFileFilterInfo structure filter_info should include the fields returned from gtk_file_filter_get_needed(). This function will not typically be used by applications; it is intended principally for use in the implementation of GtkFileChooser.
|
Gtk.FileFilter | |
| Gtk.Object | ||
| Gtk.Object | ||
|
get_name
()
:
String
Gets the human-readable name for the filter.
Gets the human-readable name for the filter. See gtk_file_filter_set_name(). or NULL. This value is owned by GTK+ and must not be modified or freed.
|
Gtk.FileFilter | |
|
get_needed
()
:
Gtk.FileFilterFlags
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 GtkFileChooser.
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 GtkFileChooser. calling gtk_file_filter_filter()
|
Gtk.FileFilter | |
|
get_user_data
()
:
void*
|
Gtk.Object | |
|
remove_data
(String key)
:
none
|
Gtk.Object | |
|
remove_data_by_id
(Number data_id)
:
none
|
Gtk.Object | |
|
remove_no_notify
(String key)
:
none
|
Gtk.Object | |
|
remove_no_notify_by_id
(Number key_id)
:
none
|
Gtk.Object | |
| Gtk.Object | ||
| Gtk.Object | ||
| Gtk.Object | ||
| Gtk.Object | ||
|
set_name
(String name)
:
none
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.
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.
|
Gtk.FileFilter | |
|
set_user_data
(void* data)
:
none
|
Gtk.Object | |
|
sink
()
:
none
|
Gtk.Object | |
| Event | Defined By | |
|---|---|---|
|
destroy (Object self)
:
none
|
Gtk.Object | |
| Class / Namespace | Method / Signal / Properties |
|---|---|
|
Gtk.FileChooser
Property |
filter : Gtk.FileFilter
|
|
Gtk.FileChooser
Method |
add_filter
(FileFilter filter)
:
none
Adds filter to the list of filters that the user can select between.
|
|
Gtk.FileChooser
Method |
remove_filter
(FileFilter filter)
:
none
Removes filter from the list of filters that the user can select between.
|
|
Gtk.FileChooser
Method |
set_filter
(FileFilter filter)
:
none
Sets the current filter; only the files that pass the filter will be displayed.
|
|
Gtk.FileChooser
Method |
get_filter
()
:
Gtk.FileFilter
Gets the current filter; see gtk_file_chooser_set_filter().
|