Versions in this module Expand all Collapse all v2 v2.2.2 Dec 20, 2022 v2.2.1 Dec 19, 2022 Changes in this version + var Cols = []*Col + type Callback func(*CallbackData) + type CallbackData struct + MenuItem *MenuItem + type Col struct + Hex string + Hsl Hsl + Name string + Rgb Rgb + type ContextMenu struct + ID string + Menu *Menu + func NewContextMenu(ID string, menu *Menu) *ContextMenu + type Hsl struct + H float64 + L float64 + S float64 + type Menu struct + Items []*MenuItem + func NewMenu() *Menu + func NewMenuFromItems(first *MenuItem, rest ...*MenuItem) *Menu + func (m *Menu) AddCheckbox(label string, checked bool, accelerator *keys.Accelerator, click Callback) *MenuItem + func (m *Menu) AddRadio(label string, checked bool, accelerator *keys.Accelerator, click Callback) *MenuItem + func (m *Menu) AddSeparator() + func (m *Menu) AddSubmenu(label string) *Menu + func (m *Menu) AddText(label string, accelerator *keys.Accelerator, click Callback) *MenuItem + func (m *Menu) Append(item *MenuItem) + func (m *Menu) Merge(menu *Menu) + func (m *Menu) Prepend(item *MenuItem) + type MenuItem struct + Accelerator *keys.Accelerator + Checked bool + Click Callback + Disabled bool + Hidden bool + Label string + Role Role + SubMenu *Menu + Type Type + func AppMenu() *MenuItem + func Checkbox(label string, checked bool, accelerator *keys.Accelerator, click Callback) *MenuItem + func EditMenu() *MenuItem + func Radio(label string, selected bool, accelerator *keys.Accelerator, click Callback) *MenuItem + func Separator() *MenuItem + func SubMenu(label string, menu *Menu) *MenuItem + func Text(label string, accelerator *keys.Accelerator, click Callback) *MenuItem + func (m *MenuItem) Append(item *MenuItem) bool + func (m *MenuItem) InsertAfter(item *MenuItem) bool + func (m *MenuItem) InsertBefore(item *MenuItem) bool + func (m *MenuItem) Parent() *MenuItem + func (m *MenuItem) Prepend(item *MenuItem) bool + func (m *MenuItem) Remove() + type Rgb struct + B uint8 + G uint8 + R uint8 + type Role int + const AppMenuRole + const EditMenuRole + type StyledText struct + BgCol *Col + FgCol *Col + Label string + Style TextStyle + func ParseANSI(input string) ([]*StyledText, error) + func (s *StyledText) Blinking() bool + func (s *StyledText) Bold() bool + func (s *StyledText) Faint() bool + func (s *StyledText) Inversed() bool + func (s *StyledText) Invisible() bool + func (s *StyledText) Italic() bool + func (s *StyledText) Strikethrough() bool + func (s *StyledText) Underlined() bool + type TextStyle int + const Blinking + const Bold + const Faint + const Inversed + const Invisible + const Italic + const Strikethrough + const Underlined + type TrayMenu struct + Disabled bool + FontName string + FontSize int + Image string + Label string + MacTemplateImage bool + Menu *Menu + OnClose func() + OnOpen func() + RGBA string + Tooltip string + type Type string + const CheckboxType + const RadioType + const SeparatorType + const SubmenuType + const TextType