menu

package
v0.0.0-...-0fb2adb Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module *module

Functions

func SetMain

func SetMain(menu *Menu) error

Types

type Item

type Item struct {
	ID          int
	Title       string
	Disabled    bool
	Selected    bool
	Separator   bool
	Accelerator string
	SubMenu     []Item
}
type Menu struct {
	Menu linux.Menu
	// contains filtered or unexported fields
}

func Get

func Get(handle resource.Handle) (*Menu, error)

func Main

func Main() *Menu

func New

func New(items []Item) *Menu
func (m *Menu) Destroy()
func (m *Menu) Popup() int

type Position

type Position = misc.Position

Jump to

Keyboard shortcuts

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