Documentation ¶
Index ¶
- Constants
- func GetOpenFileName(parent ui.GoObject, openPath string, label string) (action int, selectedPath string)
- func GetSaveFileName(parent ui.GoObject, savePath string, label string) (action int, selectedPath string)
- type GoFileDialogObj
- func (ob *GoFileDialogObj) ActionCancelDialog()
- func (ob *GoFileDialogObj) ActionOpenDialog()
- func (ob *GoFileDialogObj) ActionSelectionBack()
- func (ob *GoFileDialogObj) ActionSelectionForward()
- func (ob *GoFileDialogObj) ActionSelectionUp()
- func (ob *GoFileDialogObj) DirViewItem_Clicked(nodeId []int)
- func (ob *GoFileDialogObj) DirViewItem_DoubleClicked(nodeId []int)
- func (ob *GoFileDialogObj) Draw(gtx layout_gio.Context) (dims layout_gio.Dimensions)
- func (ob *GoFileDialogObj) FileViewItem_Clicked(nodeId []int)
- func (ob *GoFileDialogObj) FileViewItem_DoubleClicked(nodeId []int)
- func (ob *GoFileDialogObj) Layout(gtx layout_gio.Context) layout_gio.Dimensions
- func (ob *GoFileDialogObj) ObjectType() string
- func (ob *GoFileDialogObj) ShowHiddenFiles(show bool)
- func (ob *GoFileDialogObj) Widget() *ui.GioWidget
Constants ¶
View Source
const ( Dir int = iota File )
Variables ¶
This section is empty.
Functions ¶
func GetOpenFileName ¶
Types ¶
type GoFileDialogObj ¶
type GoFileDialogObj struct { ui.GioObject ui.GioWidget ActionBar *ui.GoLayoutObj FileLayout *ui.GoLayoutObj CommandBar *ui.GoLayoutObj FilePath *ui.GoLayoutObj // contains filtered or unexported fields }
func GoOpenFile ¶
func GoOpenFile(parent ui.GoObject, openPath string, label string, rootPath string) (hObj *GoFileDialogObj)
GoOpenFile creates an open file dialog.
func GoSaveFile ¶
func GoSaveFile(parent ui.GoObject, savePath string, label string, rootPath string) (hObj *GoFileDialogObj)
GoOpenFile creates an open file dialog.
func (*GoFileDialogObj) ActionCancelDialog ¶
func (ob *GoFileDialogObj) ActionCancelDialog()
func (*GoFileDialogObj) ActionOpenDialog ¶
func (ob *GoFileDialogObj) ActionOpenDialog()
func (*GoFileDialogObj) ActionSelectionBack ¶
func (ob *GoFileDialogObj) ActionSelectionBack()
func (*GoFileDialogObj) ActionSelectionForward ¶
func (ob *GoFileDialogObj) ActionSelectionForward()
func (*GoFileDialogObj) ActionSelectionUp ¶
func (ob *GoFileDialogObj) ActionSelectionUp()
func (*GoFileDialogObj) DirViewItem_Clicked ¶ added in v0.0.7
func (ob *GoFileDialogObj) DirViewItem_Clicked(nodeId []int)
func (*GoFileDialogObj) DirViewItem_DoubleClicked ¶ added in v0.0.7
func (ob *GoFileDialogObj) DirViewItem_DoubleClicked(nodeId []int)
func (*GoFileDialogObj) Draw ¶
func (ob *GoFileDialogObj) Draw(gtx layout_gio.Context) (dims layout_gio.Dimensions)
func (*GoFileDialogObj) FileViewItem_Clicked ¶ added in v0.0.7
func (ob *GoFileDialogObj) FileViewItem_Clicked(nodeId []int)
func (*GoFileDialogObj) FileViewItem_DoubleClicked ¶ added in v0.0.7
func (ob *GoFileDialogObj) FileViewItem_DoubleClicked(nodeId []int)
func (*GoFileDialogObj) Layout ¶
func (ob *GoFileDialogObj) Layout(gtx layout_gio.Context) layout_gio.Dimensions
func (*GoFileDialogObj) ObjectType ¶
func (ob *GoFileDialogObj) ObjectType() string
func (*GoFileDialogObj) ShowHiddenFiles ¶
func (ob *GoFileDialogObj) ShowHiddenFiles(show bool)
func (*GoFileDialogObj) Widget ¶
func (ob *GoFileDialogObj) Widget() *ui.GioWidget
Click to show internal directories.
Click to hide internal directories.