mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
io/system: add ClipboardEvent for sending clipboard updates
Not wired up yet; each platform needs implementing low-level access first. Updates gio#31 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+11
-4
@@ -64,6 +64,12 @@ type DestroyEvent struct {
|
|||||||
Err error
|
Err error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ClipboardEvent is sent once for each request for the
|
||||||
|
// clipboard content.
|
||||||
|
type ClipboardEvent struct {
|
||||||
|
Text string
|
||||||
|
}
|
||||||
|
|
||||||
// Insets is the space taken up by
|
// Insets is the space taken up by
|
||||||
// system decoration such as translucent
|
// system decoration such as translucent
|
||||||
// system bars and software keyboards.
|
// system bars and software keyboards.
|
||||||
@@ -115,7 +121,8 @@ func (l Stage) String() string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (FrameEvent) ImplementsEvent() {}
|
func (FrameEvent) ImplementsEvent() {}
|
||||||
func (StageEvent) ImplementsEvent() {}
|
func (StageEvent) ImplementsEvent() {}
|
||||||
func (*CommandEvent) ImplementsEvent() {}
|
func (*CommandEvent) ImplementsEvent() {}
|
||||||
func (DestroyEvent) ImplementsEvent() {}
|
func (DestroyEvent) ImplementsEvent() {}
|
||||||
|
func (ClipboardEvent) ImplementsEvent() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user