Versions in this module Expand all Collapse all v1 v1.0.260758 Jul 30, 2026 Changes in this version + type Server struct + func New(cfg config.Config) *Server + func (s *Server) CaptureSession() session.State + func (s *Server) CloseAll() + func (s *Server) CloseWindow(id string) + func (s *Server) Config() config.Config + func (s *Server) CreateApp(appName, title string) (*Window, error) + func (s *Server) CreateAppPath(appName, title, path string) (*Window, error) + func (s *Server) CreateBridge(title, command string) (*Window, error) + func (s *Server) CreateExtApp(title, command string, args []string) (*Window, error) + func (s *Server) CreateFilePicker(startDir string, extensions []string, onResult func(path string, ok bool)) (*Window, error) + func (s *Server) CreateGfx(title, path string) (*Window, error) + func (s *Server) CreateProgram(p config.Program) (*Window, error) + func (s *Server) CreatePty(title string) (*Window, error) + func (s *Server) CreatePtyCmd(title, command string, args []string) (*Window, error) + func (s *Server) CreatePtyCmdPinned(title, command string, args []string) (*Window, error) + func (s *Server) Focus(id string) + func (s *Server) FocusOrCreateApp(appName, title string) error + func (s *Server) Focused() string + func (s *Server) Get(id string) *Window + func (s *Server) HandleInput(id string, ev surface.InputEvent) + func (s *Server) LaunchAction(action string) (err error) + func (s *Server) Move(id string, x, y int) + func (s *Server) NotifyService() *notify.Service + func (s *Server) Nudge(id string, dx, dy, dw, dh int) + func (s *Server) OpenPath(path string) error + func (s *Server) RefreshTitles() + func (s *Server) ResizeWindow(id string, w, h int) + func (s *Server) RestoreSession(st session.State) int + func (s *Server) SetConfig(cfg config.Config) + func (s *Server) SetConfigListener(fn func(config.Config)) + func (s *Server) SetDock(dock string) + func (s *Server) SetGeometry(id string, x, y, w, h int) + func (s *Server) SetHostSize(cols, rows int) + func (s *Server) SetNotify(n *notify.Service) + func (s *Server) SetWindowTitle(id, title string) + func (s *Server) Snap(id, region string) + func (s *Server) Snapshot() proto.Snapshot + func (s *Server) ToggleMaximize(id string) + func (s *Server) ToggleMinimize(id string) + func (s *Server) Windows() []*Window + type Window struct + H int + ID string + Kind string + Launch string + Maximized bool + Minimized bool + Restore struct{ ... } + Surface surface.Surface + Title string + TitlePinned bool + W int + X int + Y int + Z int + func (w *Window) ContentSize() (cols, rows int)