Versions in this module Expand all Collapse all v0 v0.5.4 Jan 27, 2024 v0.5.3 Dec 10, 2023 Changes in this version + const StDirt + const StIdle + const StIngame + const StMenu + const StPreview + var ErrInstanceClosed = errors.New("instance closed") + type InstanceInfo struct + Dir string + Id int + ModernWp bool + Pid uint32 + PreviewKey xproto.Keycode + ResetKey xproto.Keycode + Version int + Wid xproto.Window + func FindInstances(x *x11.Client) ([]InstanceInfo, error) + type Manager struct + func NewManager(infos []InstanceInfo, conf *cfg.Profile, x *x11.Client) (*Manager, error) + func (m *Manager) Focus(id int) + func (m *Manager) GetStates() []State + func (m *Manager) Play(id int) + func (m *Manager) Reset(id int) bool + func (m *Manager) Run(ctx context.Context, evtch chan<- Update, errch chan<- error) + func (m *Manager) ToggleResolution(id int) bool + type State struct + LastPreview time.Time + Menu bool + Progress int + Type int + type StateReader interface + Path func() string + Process func() (state State, updated bool, err error) + ProcessEvent func(fsnotify.Op) error + type Update struct + Id int + State State