This should have been several separate commits

This commit is contained in:
2023-03-29 00:50:23 -04:00
parent 6f15ff3366
commit 0aede3502b
7 changed files with 247 additions and 124 deletions

View File

@@ -1,6 +1,5 @@
package elements
import "io"
import "image"
import "git.tebibyte.media/sashakoshka/tomo/data"
@@ -35,7 +34,7 @@ type Window interface {
// available, the callback is called with the clipboard data. If there
// was no data matching the requested mime type found, nil is passed to
// the callback instead.
Paste (accept data.Mime, callback func (io.Reader, error))
Paste (callback func (data.Data, error), accept ...data.Mime)
// Show shows the window. The window starts off hidden, so this must be
// called after initial setup to make sure it is visible.