Esempio n. 1
0
File: wke.go Progetto: 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))
}
Esempio n. 2
0
File: wke.go Progetto: CodyGuo/xcgui
func XWeb_JsSet(es uintptr, object int64, prop string, value int64) {
	xWeb_JsSet.Call(
		es,
		uintptr(object),
		xc.StringToUintPtr(prop),
		uintptr(value))
}
Esempio n. 3
0
File: wke.go Progetto: CodyGuo/xcgui
func XWeb_jsStringW(es uintptr, str string) int64 {
	ret, _, _ := xWeb_jsStringW.Call(
		es,
		xc.StringToUintPtr(str))

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