Documentation.
This commit is contained in:
parent
c74a75a4ca
commit
c49aa7990b
1 changed files with 3 additions and 0 deletions
3
file.go
3
file.go
|
@ -69,6 +69,9 @@ func Filename(filename string) Option {
|
||||||
//
|
//
|
||||||
// macOS hides filename filters from the user,
|
// macOS hides filename filters from the user,
|
||||||
// and only supports filtering by extension (or "type").
|
// and only supports filtering by extension (or "type").
|
||||||
|
//
|
||||||
|
// Patterns may use the GTK syntax on all platforms:
|
||||||
|
// https://developer.gnome.org/pygtk/stable/class-gtkfilefilter.html#method-gtkfilefilter--add-pattern
|
||||||
type FileFilter struct {
|
type FileFilter struct {
|
||||||
Name string // display string that describes the filter (optional)
|
Name string // display string that describes the filter (optional)
|
||||||
Patterns []string // filter patterns for the display string
|
Patterns []string // filter patterns for the display string
|
||||||
|
|
Loading…
Reference in a new issue