Documentation ¶
Index ¶
- func FindItemFunc(items []Item, name string) func()
- func MenuItems(menu MenuAppender, items []Item)
- func MenuSeparator(menu MenuAppender)
- func ToolbarItems(toolbar ToolbarInserter, items []Item)
- func ToolbarSeparator(toolbar ToolbarInserter)
- type Item
- type LazyMenu
- type MenuAppender
- type ToolbarInserter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindItemFunc ¶
FindItemFunc iterates over the list of items and returns the first item with the matching name.
func MenuItems ¶
func MenuItems(menu MenuAppender, items []Item)
func MenuSeparator ¶
func MenuSeparator(menu MenuAppender)
func ToolbarItems ¶
func ToolbarItems(toolbar ToolbarInserter, items []Item)
ToolbarItems insert the given items into the toolbar.
func ToolbarSeparator ¶
func ToolbarSeparator(toolbar ToolbarInserter)
Types ¶
type Item ¶
func SimpleItem ¶
func (Item) ToMenuItem ¶
func (Item) ToToolButton ¶
func (item Item) ToToolButton() *gtk.ToolButton
type LazyMenu ¶
type LazyMenu struct {
// contains filtered or unexported fields
}
LazyMenu is a menu with lazy-loaded capabilities.
func NewLazyMenu ¶
func NewLazyMenu(bindTo primitives.Connector) *LazyMenu
func (*LazyMenu) AddSimpleItem ¶
func (*LazyMenu) PopupAtPointer ¶
type MenuAppender ¶
type ToolbarInserter ¶
Click to show internal directories.
Click to hide internal directories.