menuutil

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 16 Imported by: 3

Documentation

Overview

Package menuutil contains user-interface functions and helpers for termshark.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMenuNavigatingKeyPress

func MakeMenuNavigatingKeyPress(left *NextMenu, right *NextMenu) appkeys.KeyInputFn

func MakeMenuWithHotKeys

func MakeMenuWithHotKeys(items []SimpleMenuItem) gowid.IWidget
func MenuNavigatingKeyPress(evk *tcell.EventKey, left *NextMenu, right *NextMenu, app gowid.IApp) bool

Types

type NextMenu

type NextMenu struct {
	Cur       *menu.Widget
	Next      *menu.Widget // nil if menu is nil
	Site      *menu.SiteWidget
	Container gowid.IFocus // container holding menu buttons, etc
	Focus     int          // index of next menu in container
}

type SimpleMenuItem

type SimpleMenuItem struct {
	Txt string
	Key gowid.IKey
	CB  gowid.WidgetChangedFunction
}

func MakeMenuDivider

func MakeMenuDivider() SimpleMenuItem

Jump to

Keyboard shortcuts

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