Versions in this module Expand all Collapse all v0 v0.3.1 Oct 25, 2026 v0.3.0 Oct 24, 2026 v0.2.0 Oct 23, 2026 Changes in this version type App + OpenExternal func(url string) error + type CloseRequest struct + func (r *CloseRequest) Allow() bool + func (r *CloseRequest) Cancel() bool + func (r *CloseRequest) Defer() bool + func (r *CloseRequest) Done() <-chan struct{} type View + CloseRequested func(*CloseRequest) + WindowChanged func(WindowState) + func (v *View) RequestClose() + func (v *View) WindowState() WindowState + type WindowState struct + Active bool + Closed bool + Visible bool v0.1.1 Oct 9, 2026 v0.1.0 Oct 1, 2026 Changes in this version + var ErrNotMainThread = errors.New("tuohi: the UI runs on the main thread; call App.Show and App.Wait from main") + var ErrScheme = errors.New("tuohi: refused URL scheme") + type App struct + AllowEnvDebug bool + Bind map[string]any + Debug bool + DesktopEntry bool + Events string + Exit bool + FS fs.FS + HTTP bool + Icon []byte + Name string + Start func() error + func (a *App) Backend() string + func (a *App) Open(rawurl string) error + func (a *App) Quit() + func (a *App) Reveal(path string) error + func (a *App) Show(view *View) error + func (a *App) Wait() error + type Permission int + const PermissionCamera + const PermissionClipboard + const PermissionMicrophone + func (p Permission) String() string + type State int + const StateFixed + const StateMax + const StateMin + const StateNone + type View struct + Bind map[string]any + Debug bool + FirstMouse bool + Frame bool + Height int + Left int + Origins []string + Permissions []Permission + Ready func() + State State + Title string + Top int + URL string + Width int + func (v *View) Close() + func (v *View) Dialog(opts dialog.Options) ([]string, error) + func (v *View) Emit(name string, data ...any) error + func (v *View) Eval(js string) + func (v *View) Focus(raise bool) + func (v *View) Hide() + func (v *View) Maximize() + func (v *View) Minimize() + func (v *View) Navigate(url string) + func (v *View) Off(name string) + func (v *View) On(name string, handler func(args ...json.RawMessage)) (cancel func()) + func (v *View) SetTitle(title string) + func (v *View) Show() + func (v *View) Unmaximize() + func (v *View) Unminimize() + func (v *View) Window(f func(wnd unsafe.Pointer)) v0.1.0-alpha.1 Sep 28, 2026