menu

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlwaysOnTop = true
)

Functions

func NewImageMenu

func NewImageMenu(ctx context.Context) *menu.MenuItem

func NewWindowMenu

func NewWindowMenu(ctx context.Context) *menu.MenuItem

Types

type Menu struct {
	// contains filtered or unexported fields
}

func New

func New(label string) *Menu
func (m *Menu) Add(label string, click menu.Callback) *menu.MenuItem
func (m *Menu) AddSeparator()
func (m *Menu) AddSubmenu(label string) *menu.Menu
func (m *Menu) AddText(label string) *menu.MenuItem
func (m *Menu) BindKey(label string, accelerator *keys.Accelerator)
func (m *Menu) Build() *menu.MenuItem
func (m *Menu) Remove(label string)
func (m *Menu) Reset()

Jump to

Keyboard shortcuts

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