加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Miniblink.go 921 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhongqitao 提交于 2021-02-07 14:50 . 默认渲染方式改成DC
package GoMiniblink
import (
"image"
)
type ResponseCallback func(args ResponseEvArgs)
type RequestBeforeCallback func(args RequestBeforeEvArgs)
type JsReadyCallback func(args JsReadyEvArgs)
type ConsoleCallback func(args ConsoleEvArgs)
type DocumentReadyCallback func(args DocumentReadyEvArgs)
type PaintUpdatedCallback func(args PaintUpdatedEvArgs)
type Miniblink interface {
SetBmpPaintMode(b bool)
SetProxy(info ProxyInfo)
MouseIsEnable() bool
MouseEnable(b bool)
ToBitmap() *image.RGBA
CallJsFunc(name string, param []interface{}) interface{}
JsFunc(name string, fn GoFn, state interface{})
RunJs(script string) interface{}
SetOnConsole(callback ConsoleCallback)
SetOnJsReady(callback JsReadyCallback)
SetOnRequestBefore(callback RequestBeforeCallback)
SetOnDocumentReady(callback DocumentReadyCallback)
SetOnPaintUpdated(callback PaintUpdatedCallback)
LoadUri(uri string)
GetHandle() wkeHandle
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化