mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
app,io/system: implement clipboard reading and writing
The app.ReadClipboard and app.WriteClipboard can be used to interact with the system clipboard. The clipboard may be asynchronous, so system.ClipboardEvent is introduced to deliver the result of a read. Updates gio#31 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -54,6 +54,11 @@ type Driver interface {
|
||||
// ShowTextInput updates the virtual keyboard state.
|
||||
ShowTextInput(show bool)
|
||||
NewContext() (Context, error)
|
||||
|
||||
// ReadClipboard requests the clipboard content.
|
||||
ReadClipboard()
|
||||
// WriteClipboard requests a clipboard write.
|
||||
WriteClipboard(s string)
|
||||
}
|
||||
|
||||
type windowRendezvous struct {
|
||||
|
||||
Reference in New Issue
Block a user