Example #1
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_SetProxy(hWeb xc.HWINDOW, proxyType WkeProxyType, hostName string, port uint32, username, pwd string) {
	xWeb_SetProxy.Call(
		uintptr(hWeb),
		uintptr(proxyType),
		xc.StringToUintPtr(hostName),
		uintptr(port),
		xc.StringToUintPtr(username),
		xc.StringToUintPtr(pwd))
}
Example #2
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_JsSet(es uintptr, object int64, prop string, value int64) {
	xWeb_JsSet.Call(
		es,
		uintptr(object),
		xc.StringToUintPtr(prop),
		uintptr(value))
}
Example #3
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_jsStringW(es uintptr, str string) int64 {
	ret, _, _ := xWeb_jsStringW.Call(
		es,
		xc.StringToUintPtr(str))

	return int64(ret)
}
Example #4
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_JsGet(es uintptr, object int64, prop string) int64 {
	ret, _, _ := xWeb_JsGet.Call(
		es,
		uintptr(object),
		xc.StringToUintPtr(prop))

	return int64(ret)
}
Example #5
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_JsBindSetter(funcName string, pFunc uintptr) {
	xWeb_JsBindSetter.Call(
		xc.StringToUintPtr(funcName),
		pFunc)
}
Example #6
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_JsBindFuction(funcName string, pFunc uintptr, argCount uint32) {
	xWeb_JsBindFuction.Call(
		xc.StringToUintPtr(funcName),
		pFunc,
		uintptr(argCount))
}
Example #7
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_SetUserAgentW(hWeb xc.HWINDOW, userAgent string) {
	xWeb_SetUserAgentW.Call(
		uintptr(hWeb),
		xc.StringToUintPtr(userAgent))
}
Example #8
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_SetStringW(stringW uintptr, str string, lenW int) {
	xWeb_SetStringW.Call(
		stringW,
		xc.StringToUintPtr(str),
		uintptr(lenW))
}
Example #9
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_RunJs(hWeb xc.HWINDOW, jsText string) {
	xWeb_RunJs.Call(
		uintptr(hWeb),
		xc.StringToUintPtr(jsText))
}
Example #10
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_LoadHtmlFromText(hWeb xc.HWINDOW, htmlData string) {
	xWeb_LoadHtmlFromText.Call(
		uintptr(hWeb),
		xc.StringToUintPtr(htmlData))
}
Example #11
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_PostUrl(hWeb xc.HWINDOW, url, postData string, postLen int) {
	xWeb_PostUrl.Call(
		uintptr(hWeb),
		xc.StringToUintPtr(url),
		uintptr(postLen))
}
Example #12
0
File: wke.go Project: CodyGuo/xcgui
func XWeb_LoadUrl(hWeb xc.HWINDOW, url string) {
	xWeb_LoadUrl.Call(
		uintptr(hWeb),
		xc.StringToUintPtr(url))
}