Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Latest commit

 

History

History
34 lines (25 loc) · 561 Bytes

mainmenu.md

File metadata and controls

34 lines (25 loc) · 561 Bytes
redirect_to layout tags title
page
api
Fyne API "fyne.MainMenu"

fyne.MainMenu


import "fyne.io/fyne/v2"

Usage

type MainMenu

type MainMenu struct {
	Items []*Menu
}

MainMenu defines the data required to show a menu bar (desktop) or other appropriate top level menu.

func NewMainMenu

func NewMainMenu(items ...*Menu) *MainMenu

NewMainMenu creates a top level menu structure used by fyne.Window for displaying a menubar (or appropriate equivalent).