Documentation
¶
Index ¶
- func AppendCopyItem(m menu.Menu)
- func AppendCutItem(m menu.Menu)
- func AppendDeleteItem(m menu.Menu)
- func AppendPasteItem(m menu.Menu)
- func AppendSelectAllItem(m menu.Menu)
- func CanCopy(evt event.Event)
- func CanCut(evt event.Event)
- func CanDelete(evt event.Event)
- func CanPaste(evt event.Event)
- func CanSelectAll(evt event.Event)
- func Copy(evt event.Event)
- func Cut(evt event.Event)
- func Delete(evt event.Event)
- func InsertCopyItem(m menu.Menu, index int)
- func InsertCutItem(m menu.Menu, index int)
- func InsertDeleteItem(m menu.Menu, index int)
- func InsertPasteItem(m menu.Menu, index int)
- func InsertSelectAllItem(m menu.Menu, index int)
- func Install(bar menu.Bar) menu.Menu
- func Paste(evt event.Event)
- func SelectAll(evt event.Event)
- type Copyable
- type Cutable
- type Deletable
- type Pastable
- type SelectAllable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendCopyItem ¶
AppendCopyItem appends the standard Copy menu item to the specified menu.
func AppendCutItem ¶
AppendCutItem appends the standard Cut menu item to the specified menu.
func AppendDeleteItem ¶
AppendDeleteItem appends the standard Delete menu item to the specified menu.
func AppendPasteItem ¶
AppendPasteItem appendss the standard Paste menu item to the specified menu.
func AppendSelectAllItem ¶
AppendSelectAllItem adds the standard Select All menu item to the specified menu.
func CanSelectAll ¶
CanSelectAll returns true if SelectAll() can be called successfully.
func InsertCopyItem ¶
InsertCopyItem adds the standard Copy menu item to the specified menu.
func InsertCutItem ¶
InsertCutItem adds the standard Cut menu item to the specified menu.
func InsertDeleteItem ¶
InsertDeleteItem adds the standard Delete menu item to the specified menu.
func InsertPasteItem ¶
InsertPasteItem adds the standard Paste menu item to the specified menu.
func InsertSelectAllItem ¶
InsertSelectAllItem adds the standard Select All menu item to the specified menu.
Types ¶
type Copyable ¶
type Copyable interface { // CanCopy returns true if Copy() can be called successfully. CanCopy() bool // Copy the data to the clipboard. Copy() }
Copyable defines the methods required of objects that can respond to the Copy menu item.
type Cutable ¶
type Cutable interface { // CanCut returns true if Cut() can be called successfully. CanCut() bool // Cut the data from the object and copy it to the clipboard. Cut() }
Cutable defines the methods required of objects that can respond to the Cut menu item.
type Deletable ¶
type Deletable interface { // CanDelete returns true if Delete() can be called successfully. CanDelete() bool // Delete the data from the object. Delete() }
Deletable defines the methods required of objects that can respond to the Delete menu item.
type Pastable ¶
type Pastable interface { // CanPaste returns true if Paste() can be called successfully. CanPaste() bool // Paste the data from the clipboard into the object. Paste() }
Pastable defines the methods required of objects that can respond to the Paste menu item.
type SelectAllable ¶
type SelectAllable interface { // CanSelectAll returns true if SelectAll() can be called successfully. CanSelectAll() bool // SelectAll expands the selection to encompass the entire available range. SelectAll() }
SelectAllable defines the methods required of objects that can respond to the Select All menu item.