Skip to content

package file_browser

import "kaiju/editor/editor_overlay/file_browser"

Types

Config

struct

type Config struct {
    Title        string
    StartingPath string
    ExtFilter    []string
    OnConfirm    func(paths []string)
    OnCancel     func()
    OnlyFiles    bool
    OnlyFolders  bool
    MultiSelect  bool
}

FileBrowser

struct

type FileBrowser struct {
    // Has unexported fields.
}

Show

func Show(host *engine.Host, config Config) (*FileBrowser, error)

FileBrowser.Close

func (fb *FileBrowser) Close()

FileBrowserData

struct

type FileBrowserData struct {
    Title              string
    QuickAccessFolders []QuickAccessFolder
    CurrentPath        string
    OnlyFolders        bool
}

QuickAccessFolder

struct

type QuickAccessFolder struct {
    Name string
    Path string
}