stdmenu

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MPL-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseKeyWindowHandler

func CloseKeyWindowHandler()

CloseKeyWindowHandler provides the standard handler function for the "Close" menu.

func CloseKeyWindowValidator

func CloseKeyWindowValidator() bool

CloseKeyWindowValidator provides the standard validation function for the "Close" menu.

func CopyHandler

func CopyHandler()

CopyHandler provides the standard handler function for the "Copy" menu item.

func CopyValidator

func CopyValidator() bool

CopyValidator provides the standard validation function for the "Copy" menu item.

func CutHandler

func CutHandler()

CutHandler provides the standard handler function for the "Cut" menu item.

func CutValidator

func CutValidator() bool

CutValidator provides the standard validation function for the "Cut" menu item.

func DeleteHandler

func DeleteHandler()

DeleteHandler provides the standard handler function for the "Delete" menu item.

func DeleteValidator

func DeleteValidator() bool

DeleteValidator provides the standard validation function for the "Delete" menu item.

func FillMenuBar

func FillMenuBar(bar *webapp.MenuBar, aboutHandler, prefsHandler func(), includeDevTools bool)

FillMenuBar adds the standard menus to the menu bar.

func InsertCloseKeyWindowItem

func InsertCloseKeyWindowItem(menu *webapp.Menu, beforeIndex int)

InsertCloseKeyWindowItem creates the standard "Close" menu item that will close the current key window when chosen.

func InsertCopyItem

func InsertCopyItem(menu *webapp.Menu, beforeIndex int)

InsertCopyItem creates the standard "Copy" menu item that will issue the Copy command to the current key window when chosen.

func InsertCutItem

func InsertCutItem(menu *webapp.Menu, beforeIndex int)

InsertCutItem creates the standard "Cut" menu item that will issue the Cut command to the current key window when chosen.

func InsertDeleteItem

func InsertDeleteItem(menu *webapp.Menu, beforeIndex int)

InsertDeleteItem creates the standard "Delete" menu item that will issue the Delete command to the current key window when chosen.

func InsertMinimizeItem

func InsertMinimizeItem(menu *webapp.Menu, beforeIndex int)

InsertMinimizeItem creates the standard "Minimize" menu item that will issue the Minimize command to the current key window when chosen.

func InsertPasteItem

func InsertPasteItem(menu *webapp.Menu, beforeIndex int)

InsertPasteItem creates the standard "Paste" menu item that will issue the Paste command to the current key window when chosen.

func InsertQuitItem

func InsertQuitItem(menu *webapp.Menu, beforeIndex int)

InsertQuitItem creates the standard "Quit"/"Exit" menu item that will issue the Quit command when chosen.

func InsertSelectAllItem

func InsertSelectAllItem(menu *webapp.Menu, beforeIndex int)

InsertSelectAllItem creates the standard "Select All" menu item that will issue the SelectAll command to the current key window when chosen.

func InsertZoomItem

func InsertZoomItem(menu *webapp.Menu, beforeIndex int)

InsertZoomItem creates the standard "Zoom" menu item that will issue the Zoom command to the current key window when chosen.

func MinimizeHandler

func MinimizeHandler()

MinimizeHandler provides the standard handler function for the "Minimize" menu item.

func MinimizeValidator

func MinimizeValidator() bool

MinimizeValidator provides the standard validation function for the "Minimize" menu item.

func NewAppMenu

func NewAppMenu(aboutHandler, prefsHandler func()) *webapp.Menu

NewAppMenu creates a standard 'App' menu. Really only intended for macOS, although other platforms can use it if desired.

func NewEditMenu

func NewEditMenu(prefsHandler func()) *webapp.Menu

NewEditMenu creates a standard 'Edit' menu.

func NewFileMenu

func NewFileMenu() *webapp.Menu

NewFileMenu creates a standard 'File' menu.

func NewHelpMenu

func NewHelpMenu(aboutHandler func(), includeDevTools bool) *webapp.Menu

NewHelpMenu creates a standard 'Help' menu.

func NewWindowMenu

func NewWindowMenu() *webapp.Menu

NewWindowMenu creates a standard 'Window' menu.

func PasteHandler

func PasteHandler()

PasteHandler provides the standard handler function for the "Paste" menu item.

func PasteValidator

func PasteValidator() bool

PasteValidator provides the standard validation function for the "Paste" menu item.

func SelectAllHandler

func SelectAllHandler()

SelectAllHandler provides the standard handler function for the "Select All" menu item.

func SelectAllValidator

func SelectAllValidator() bool

SelectAllValidator provides the standard validation function for the "Select All" menu item.

func ZoomHandler

func ZoomHandler()

ZoomHandler provides the standard handler function for the "Zoom" menu item.

func ZoomValidator

func ZoomValidator() bool

ZoomValidator provides the standard validation function for the "Zoom" menu item.

Types

This section is empty.

Jump to

Keyboard shortcuts

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