Documentation ¶
Index ¶
- type FilePicker
- func New(ctx context.Context, title string, action gtk.FileChooserAction, ...) *FilePicker
- func NewLocalize(ctx context.Context, title message.Reference, action gtk.FileChooserAction, ...) *FilePicker
- func NewWithWindow(parent *gtk.Window, title string, action gtk.FileChooserAction, ...) *FilePicker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePicker ¶
type FilePicker struct { *gtk.FileChooser // contains filtered or unexported fields }
FilePicker is the file chooser.
func New ¶
func New(ctx context.Context, title string, action gtk.FileChooserAction, accept, cancel string) *FilePicker
New creates a new file chooser.
func NewLocalize ¶
func NewLocalize(ctx context.Context, title message.Reference, action gtk.FileChooserAction, accept, cancel message.Reference) *FilePicker
NewLocalize creates a new file chooser using the given message reference strings localized using the given context.
func NewWithWindow ¶
func NewWithWindow(parent *gtk.Window, title string, action gtk.FileChooserAction, accept, cancel string) *FilePicker
NewWithWindow creates a file chooser with the given parent window.
func (*FilePicker) ConnectAccept ¶
func (p *FilePicker) ConnectAccept(f func())
ConnectAccept connects to the dialog's Accept response.
func (*FilePicker) ConnectResponse ¶
func (p *FilePicker) ConnectResponse(f func(gtk.ResponseType))
ConnectResponse connects to the dialog's response signal.
Click to show internal directories.
Click to hide internal directories.