Added x clipboard stub

It doesn't do anything yet but boy is it going to
This commit is contained in:
2023-01-26 14:52:43 -05:00
parent 14adaa4552
commit 21c19363dd
3 changed files with 31 additions and 3 deletions

View File

@@ -79,6 +79,21 @@ func (backend *Backend) Do (callback func ()) {
backend.doChannel <- callback
}
// Copy puts data into the clipboard. This method is not yet implemented and
// will do nothing!
func (backend *Backend) Copy (data tomo.Data) {
backend.assert()
// TODO
}
// Paste returns the data currently in the clipboard. This method may
// return nil. This method is not yet implemented and will do nothing!
func (backend *Backend) Paste () (data tomo.Data) {
backend.assert()
// TODO
return
}
func (backend *Backend) assert () {
if backend == nil { panic("nil backend") }
}