Documentation
¶
Overview ¶
Package window provides window lifecycle management for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the application's windows, including the main window and any secondary windows such as settings or devtools.
func NewManager ¶
func NewManager(app *application.App, mainWindow *application.WebviewWindow) *Manager
NewManager creates a new window Manager. It registers a hide-on-close hook on the provided main window so that closing the main window hides it instead of quitting the application.
func (*Manager) Main ¶
func (m *Manager) Main() *application.WebviewWindow
Main returns the main application window by looking it up by name.
func (*Manager) OpenDevtools ¶
func (m *Manager) OpenDevtools() *application.WebviewWindow
OpenDevtools creates and shows a new devtools window. The window uses normal close behavior — it is destroyed when closed.
func (*Manager) OpenSettings ¶
func (m *Manager) OpenSettings() *application.WebviewWindow
OpenSettings creates and shows a new settings window. The window uses normal close behavior — it is destroyed when closed.