desktop

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadIcon

func LoadIcon(path string) (fyne.Resource, error)

LoadIcon loads an app icon from disk.

func Run

func Run(cfg WindowConfig)

Run starts a basic Fyne window.

Types

type WindowConfig

type WindowConfig struct {
	Title    string
	Width    float32
	Height   float32
	Body     fyne.CanvasObject
	Icon     fyne.Resource
	Menu     *fyne.MainMenu
	TrayMenu *fyne.Menu
	OnClose  func()
}

WindowConfig configures a desktop window.

Jump to

Keyboard shortcuts

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