Documentation
¶
Index ¶
- func ActionName(label string) (actionName string)
- type ActionGroupInserter
- type Menu
- func (m *Menu) AddAction(label string, call func())
- func (m *Menu) BindRightClick(w ActionGroupInserter)
- func (m *Menu) InsertActionGroup(w ActionGroupInserter)
- func (m *Menu) MenuModel() (string, *glib.MenuModel)
- func (m *Menu) Popup(relative gtk.IWidget)
- func (m *Menu) Prefix() string
- func (m *Menu) RemoveAction(label string)
- func (m *Menu) Reset()
- type MenuButton
- type Stateful
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionName ¶
ActionName converts the label name into the action name.
Types ¶
type ActionGroupInserter ¶
type ActionGroupInserter interface { primitives.Connector InsertActionGroup(prefix string, action glib.IActionGroup) }
type Menu ¶
type Menu struct { *Stateful // contains filtered or unexported fields }
func (*Menu) BindRightClick ¶
func (m *Menu) BindRightClick(w ActionGroupInserter)
func (*Menu) InsertActionGroup ¶
func (m *Menu) InsertActionGroup(w ActionGroupInserter)
func (*Menu) Popup ¶
Popup pops up the menu popover. It does not pop up anything if there are no menu items.
func (*Menu) RemoveAction ¶
type MenuButton ¶
type MenuButton struct { *gtk.MenuButton // contains filtered or unexported fields }
func NewMenuButton ¶
func NewMenuButton() *MenuButton
func (*MenuButton) Bind ¶
func (m *MenuButton) Bind(menu *Menu)
Bind binds the given menu. The menu's prefix MUST be a constant for this instance of the MenuButton.
type Stateful ¶
type Stateful struct { glib.IActionGroup // contains filtered or unexported fields }
Stateful is a stateful action group, which would allow additional methods that would otherwise be impossible to do with a simple Action Map.
func NewStateful ¶
func NewStateful() *Stateful
func (*Stateful) RemoveAction ¶
Click to show internal directories.
Click to hide internal directories.