editmenu

package
v0.0.0-...-af996ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCopyItem

func AppendCopyItem(m menu.Menu)

AppendCopyItem appends the standard Copy menu item to the specified menu.

func AppendCutItem

func AppendCutItem(m menu.Menu)

AppendCutItem appends the standard Cut menu item to the specified menu.

func AppendDeleteItem

func AppendDeleteItem(m menu.Menu)

AppendDeleteItem appends the standard Delete menu item to the specified menu.

func AppendPasteItem

func AppendPasteItem(m menu.Menu)

AppendPasteItem appendss the standard Paste menu item to the specified menu.

func AppendSelectAllItem

func AppendSelectAllItem(m menu.Menu)

AppendSelectAllItem adds the standard Select All menu item to the specified menu.

func CanCopy

func CanCopy(evt event.Event)

CanCopy returns true if Copy() can be called successfully.

func CanCut

func CanCut(evt event.Event)

CanCut returns true if Cut() can be called successfully.

func CanDelete

func CanDelete(evt event.Event)

CanDelete returns true if Delete() can be called successfully.

func CanPaste

func CanPaste(evt event.Event)

CanPaste returns true if Paste() can be called successfully.

func CanSelectAll

func CanSelectAll(evt event.Event)

CanSelectAll returns true if SelectAll() can be called successfully.

func Copy

func Copy(evt event.Event)

Copy the data from the current keyboard focus to the clipboard.

func Cut

func Cut(evt event.Event)

Cut the data from the current keyboard focus and copy it to the clipboard.

func Delete

func Delete(evt event.Event)

Delete the data from the current keyboard focus.

func InsertCopyItem

func InsertCopyItem(m menu.Menu, index int)

InsertCopyItem adds the standard Copy menu item to the specified menu.

func InsertCutItem

func InsertCutItem(m menu.Menu, index int)

InsertCutItem adds the standard Cut menu item to the specified menu.

func InsertDeleteItem

func InsertDeleteItem(m menu.Menu, index int)

InsertDeleteItem adds the standard Delete menu item to the specified menu.

func InsertPasteItem

func InsertPasteItem(m menu.Menu, index int)

InsertPasteItem adds the standard Paste menu item to the specified menu.

func InsertSelectAllItem

func InsertSelectAllItem(m menu.Menu, index int)

InsertSelectAllItem adds the standard Select All menu item to the specified menu.

func Install

func Install(bar menu.Bar) menu.Menu

Install adds a standard 'Edit' menu to the end of the menu bar.

func Paste

func Paste(evt event.Event)

Paste the data from the clipboard into the current keyboard focus.

func SelectAll

func SelectAll(evt event.Event)

SelectAll expands the selection of the current keyboard focus to encompass the entire available range.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL