window

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: AGPL-3.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL