plugeth/ui/qt/clipboard/clipboard.go
2015-02-19 11:51:38 +01:00

16 lines
355 B
Go

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()))
}