blob: 064ee954d0d8e96e5b58459e6c4b52e772de70c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package clipboard
// #cgo CPPFLAGS: -I./
// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
// #cgo LDFLAGS: -lstdc++
// #cgo pkg-config: Qt5Quick
//
// #include "capi.hpp"
import "C"
import "github.com/obscuren/qml"
func SetQMLClipboard(context *qml.Context) {
context.SetVar("clipboard", (unsafe.Pointer)(C.initClipboard()))
}
|