Files
systray/webview_example/webview_nonwindows.go
2020-05-16 02:06:09 -07:00

21 lines
417 B
Go

//+build !windows
package main
/*
#cgo linux pkg-config: webkit2gtk-4.0
#cgo darwin CFLAGS: -DDARWIN -x objective-c -fobjc-arc
#cgo darwin LDFLAGS: -framework Cocoa -framework Webkit
#include "webview.h"
*/
import "C"
func configureWebview(title string, width, height int) {
C.configureAppWindow(C.CString(title), C.int(width), C.int(height))
}
func showWebview(url string) {
C.showAppWindow(C.CString(url))
}