mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
join plain text and rich text to one struct.
This commit is contained in:
@ -35,6 +35,11 @@ type KeyboardMap struct {
|
||||
Variant string
|
||||
}
|
||||
|
||||
type ClipboardText struct {
|
||||
Text string
|
||||
HTML string
|
||||
}
|
||||
|
||||
type DesktopManager interface {
|
||||
Start()
|
||||
Shutdown() error
|
||||
@ -67,13 +72,11 @@ type DesktopManager interface {
|
||||
OnEventError(listener func(error_code uint8, message string, request_code uint8, minor_code uint8))
|
||||
|
||||
// clipboard
|
||||
ClipboardGetText() (*ClipboardText, error)
|
||||
ClipboardSetText(data ClipboardText) error
|
||||
ClipboardGetBinary(mime string) ([]byte, error)
|
||||
ClipboardSetBinary(mime string, data []byte) error
|
||||
ClipboardGetTargets() ([]string, error)
|
||||
ClipboardGetPlainText() (string, error)
|
||||
ClipboardSetPlainText(data string) error
|
||||
ClipboardGetRichText() (string, error)
|
||||
ClipboardSetRichText(data string) error
|
||||
|
||||
// drop
|
||||
DropFiles(x int, y int, files []string) bool
|
||||
|
Reference in New Issue
Block a user