Versions in this module Expand all Collapse all v0 v0.0.25 Dec 26, 2023 Changes in this version type App + func (a *App) GokiDataDir() string v0.0.24 Dec 21, 2023 v0.0.23 Dec 20, 2023 v0.0.22 Dec 13, 2023 v0.0.21 Dec 13, 2023 v0.0.20 Dec 13, 2023 v0.0.19 Dec 12, 2023 v0.0.18 Dec 12, 2023 Changes in this version type App + func (a *App) GoGiDataDir() string v0.0.17 Dec 9, 2023 v0.0.16 Dec 9, 2023 v0.0.15 Dec 9, 2023 Changes in this version + func HandleRecover(r any) + func Main(f func(a goosi.App), a goosi.App, ab *App) + type App struct + Abt string + Dark bool + MainDone chan struct{} + MainQueue chan FuncRun + Mu sync.Mutex + Nm string + OpenFls []string + QuitCleanFunc func() + QuitReqFunc func() + Quitting bool + This goosi.App + func (a *App) About() string + func (a *App) AppPrefsDir() string + func (a *App) ClipBoard(win goosi.Window) clip.Board + func (a *App) Cursor(win goosi.Window) cursor.Cursor + func (a *App) GetScreens() + func (a *App) GoGiPrefsDir() string + func (a *App) GoRunOnMain(f func()) + func (a *App) HideVirtualKeyboard() + func (a *App) IsDark() bool + func (a *App) IsQuitting() bool + func (a *App) MainLoop() + func (a *App) Name() string + func (a *App) OpenFiles() []string + func (a *App) OpenURL(url string) + func (a *App) Quit() + func (a *App) QuitReq() + func (a *App) RunOnMain(f func()) + func (a *App) SendEmptyEvent() + func (a *App) SetAbout(about string) + func (a *App) SetName(name string) + func (a *App) SetQuitCleanFunc(fun func()) + func (a *App) SetQuitReqFunc(fun func()) + func (a *App) ShowVirtualKeyboard(typ goosi.VirtualKeyboardTypes) + func (a *App) StopMain() + type AppMulti struct + AllScreens []*goosi.Screen + CtxWindow W + Screens []*goosi.Screen + Windows []W + func NewAppMulti[W goosi.Window]() AppMulti[W] + func (a *AppMulti[W]) ContextWindow() goosi.Window + func (a *AppMulti[W]) NScreens() int + func (a *AppMulti[W]) NWindows() int + func (a *AppMulti[W]) QuitClean() + func (a *AppMulti[W]) RemoveWindow(w goosi.Window) + func (a *AppMulti[W]) Screen(n int) *goosi.Screen + func (a *AppMulti[W]) ScreenByName(name string) *goosi.Screen + func (a *AppMulti[W]) Window(win int) goosi.Window + func (a *AppMulti[W]) WindowByName(name string) goosi.Window + func (a *AppMulti[W]) WindowInFocus() goosi.Window + type AppSingle struct + Drawer D + Insts styles.SideFloats + Scrn *goosi.Screen + Win W + func NewAppSingle[D goosi.Drawer, W goosi.Window]() AppSingle[D, W] + func (a *AppSingle[D, W]) ContextWindow() goosi.Window + func (a *AppSingle[D, W]) Insets() styles.SideFloats + func (a *AppSingle[D, W]) NScreens() int + func (a *AppSingle[D, W]) NWindows() int + func (a *AppSingle[D, W]) QuitClean() + func (a *AppSingle[D, W]) RemoveWindow(w goosi.Window) + func (a *AppSingle[D, W]) Screen(n int) *goosi.Screen + func (a *AppSingle[D, W]) ScreenByName(name string) *goosi.Screen + func (a *AppSingle[D, W]) SingleDrawer() goosi.Drawer + func (a *AppSingle[D, W]) Window(win int) goosi.Window + func (a *AppSingle[D, W]) WindowByName(name string) goosi.Window + func (a *AppSingle[D, W]) WindowInFocus() goosi.Window + type AppSingler interface + Insets func() styles.SideFloats + SingleDrawer func() goosi.Drawer + type FuncRun struct + Done chan struct{} + F func() + type Window struct + App A + CloseCleanFunc func(win goosi.Window) + CloseReqFunc func(win goosi.Window) + CursorEnabled bool + DestroyGPUFunc func() + EvMgr events.Mgr + FPS int + Flgs goosi.WindowFlags + Mu sync.Mutex + Nm string + RunQueue chan FuncRun + This goosi.Window + Titl string + WinClose chan struct{} + func NewWindow[A goosi.App](a A, opts *goosi.NewWindowOptions) Window[A] + func (w *Window[A]) Close() + func (w *Window[A]) CloseClean() + func (w *Window[A]) CloseReq() + func (w *Window[A]) EventMgr() *events.Mgr + func (w *Window[A]) Flags() goosi.WindowFlags + func (w *Window[A]) GoRunOnWin(f func()) + func (w *Window[A]) Insets() styles.SideFloats + func (w *Window[A]) Is(flag goosi.WindowFlags) bool + func (w *Window[A]) IsClosed() bool + func (w *Window[A]) IsCursorEnabled() bool + func (w *Window[A]) IsVisible() bool + func (w *Window[A]) Lock() bool + func (w *Window[A]) MainMenu() goosi.MainMenu + func (w *Window[A]) Name() string + func (w *Window[A]) RunOnWin(f func()) + func (w *Window[A]) SetCloseCleanFunc(fun func(win goosi.Window)) + func (w *Window[A]) SetCloseReqFunc(fun func(win goosi.Window)) + func (w *Window[A]) SetCursorEnabled(enabled, raw bool) + func (w *Window[A]) SetDestroyGPUResourcesFunc(f func()) + func (w *Window[A]) SetFPS(fps int) + func (w *Window[A]) SetMousePos(x, y float64) + func (w *Window[A]) SetName(name string) + func (w *Window[A]) SetTitle(title string) + func (w *Window[A]) SetTitleBarIsDark(isDark bool) + func (w *Window[A]) Title() string + func (w *Window[A]) Unlock() + func (w *Window[A]) WinLoop() + type WindowMulti struct + DevicePixelRatio float32 + Draw D + LogDPI float32 + PhysDPI float32 + PixSize image.Point + Pos image.Point + WnSize image.Point + func NewWindowMulti[A goosi.App, D goosi.Drawer](a A, opts *goosi.NewWindowOptions) WindowMulti[A, D] + func (w *WindowMulti[A, D]) Drawer() goosi.Drawer + func (w *WindowMulti[A, D]) IsVisible() bool + func (w *WindowMulti[A, D]) LogicalDPI() float32 + func (w *WindowMulti[A, D]) PhysicalDPI() float32 + func (w *WindowMulti[A, D]) Position() image.Point + func (w *WindowMulti[A, D]) SetGeom(pos image.Point, sz image.Point) + func (w *WindowMulti[A, D]) SetLogicalDPI(dpi float32) + func (w *WindowMulti[A, D]) SetPos(pos image.Point) + func (w *WindowMulti[A, D]) SetSize(sz image.Point) + func (w *WindowMulti[A, D]) SetWinSize(sz image.Point) + func (w *WindowMulti[A, D]) Size() image.Point + func (w *WindowMulti[A, D]) WinSize() image.Point + type WindowSingle struct + func NewWindowSingle[A AppSingler](a A, opts *goosi.NewWindowOptions) WindowSingle[A] + func (w *WindowSingle[A]) Drawer() goosi.Drawer + func (w *WindowSingle[A]) Insets() styles.SideFloats + func (w *WindowSingle[A]) LogicalDPI() float32 + func (w *WindowSingle[A]) Minimize() + func (w *WindowSingle[A]) PhysicalDPI() float32 + func (w *WindowSingle[A]) Position() image.Point + func (w *WindowSingle[A]) Raise() + func (w *WindowSingle[A]) Screen() *goosi.Screen + func (w *WindowSingle[A]) SetGeom(pos image.Point, sz image.Point) + func (w *WindowSingle[A]) SetLogicalDPI(dpi float32) + func (w *WindowSingle[A]) SetPos(pos image.Point) + func (w *WindowSingle[A]) SetSize(sz image.Point) + func (w *WindowSingle[A]) SetWinSize(sz image.Point) + func (w *WindowSingle[A]) Size() image.Point + func (w *WindowSingle[A]) WinSize() image.Point Other modules containing this package goki.dev