Documentation
¶
Index ¶
- type MenuBar
- func (menuBar *MenuBar) AddItem(item *MenuItem) *MenuBar
- func (menuBar *MenuBar) AfterDraw() func(tcell.Screen)
- func (menuBar *MenuBar) Draw(screen tcell.Screen)
- func (menuBar *MenuBar) Focus(delegate func(p view.Primitive))
- func (menuBar *MenuBar) InputHandler() func(event *tcell.EventKey, setFocus func(p view.Primitive))
- func (p *MenuBar) MouseHandler() ...
- type MenuItem
- type SubMenu
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuBar ¶
func NewMenuBar ¶
func NewMenuBar() *MenuBar
func (*MenuBar) InputHandler ¶
func (*MenuBar) MouseHandler ¶
func (p *MenuBar) MouseHandler() func(action view.MouseAction, event *tcell.EventMouse, setFocus func(p view.Primitive)) (consumed bool, capture view.Primitive)
type MenuItem ¶
type MenuItem struct {
*view.Box
Title string
SubItems []*MenuItem
// contains filtered or unexported fields
}
func NewMenuItem ¶
func (*MenuItem) SetOnClick ¶
type SubMenu ¶
func NewSubMenu ¶
func (*SubMenu) MouseHandler ¶
func (subMenu *SubMenu) MouseHandler() func(action view.MouseAction, event *tcell.EventMouse, setFocus func(p view.Primitive)) (consumed bool, capture view.Primitive)
Click to show internal directories.
Click to hide internal directories.