Documentation ¶
Index ¶
- func BindJsFunc(fn JsFnBinding)
- type ConsoleCallback
- type ConsoleEvArgs
- type DocumentReadyCallback
- type DocumentReadyEvArgs
- type EventDispatcher
- func (_this *EventDispatcher) Add(name string, fn interface{})
- func (_this *EventDispatcher) AddEx(fn interface{}) string
- func (_this *EventDispatcher) Clear()
- func (_this *EventDispatcher) Fire(key string, sender interface{}, param ...interface{})
- func (_this *EventDispatcher) Init(key string) *EventDispatcher
- func (_this *EventDispatcher) IsEmtpy() bool
- func (_this *EventDispatcher) Remove(name string) interface{}
- type FileLoader
- type FrameContext
- type GoFn
- type GoFnContext
- type JsFnBinding
- type JsFunc
- type JsReadyCallback
- type JsReadyEvArgs
- type LoadFailEvArgs
- type LoadResource
- type Miniblink
- type MiniblinkBrowser
- func (_this *MiniblinkBrowser) CallJsFunc(name string, param ...interface{}) interface{}
- func (_this *MiniblinkBrowser) GetMiniblinkHandle() uintptr
- func (_this *MiniblinkBrowser) Init() *MiniblinkBrowser
- func (_this *MiniblinkBrowser) JsFunc(name string, fn GoFn, state interface{})
- func (_this *MiniblinkBrowser) JsFuncEx(name string, fn interface{})
- func (_this *MiniblinkBrowser) LoadUri(uri string)
- func (_this *MiniblinkBrowser) MouseEnable(b bool)
- func (_this *MiniblinkBrowser) MouseIsEnable() bool
- func (_this *MiniblinkBrowser) SetBmpPaintMode(b bool)
- func (_this *MiniblinkBrowser) SetDebugConfig(debugString string, param string)
- func (_this *MiniblinkBrowser) SetProxy(info ProxyInfo)
- func (_this *MiniblinkBrowser) ToBitmap() *image.RGBA
- type MiniblinkForm
- type PaintUpdatedCallback
- type PaintUpdatedEvArgs
- type ProxyInfo
- type ProxyType
- type RequestBeforeCallback
- type RequestBeforeEvArgs
- type ResponseCallback
- type ResponseEvArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindJsFunc ¶
func BindJsFunc(fn JsFnBinding)
Types ¶
type ConsoleCallback ¶
type ConsoleCallback func(args ConsoleEvArgs)
type ConsoleEvArgs ¶
type DocumentReadyCallback ¶
type DocumentReadyCallback func(args DocumentReadyEvArgs)
type DocumentReadyEvArgs ¶
type DocumentReadyEvArgs interface { FrameContext }
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
func (*EventDispatcher) Add ¶
func (_this *EventDispatcher) Add(name string, fn interface{})
func (*EventDispatcher) AddEx ¶
func (_this *EventDispatcher) AddEx(fn interface{}) string
func (*EventDispatcher) Clear ¶
func (_this *EventDispatcher) Clear()
func (*EventDispatcher) Fire ¶
func (_this *EventDispatcher) Fire(key string, sender interface{}, param ...interface{})
func (*EventDispatcher) Init ¶
func (_this *EventDispatcher) Init(key string) *EventDispatcher
func (*EventDispatcher) IsEmtpy ¶
func (_this *EventDispatcher) IsEmtpy() bool
func (*EventDispatcher) Remove ¶
func (_this *EventDispatcher) Remove(name string) interface{}
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
func (*FileLoader) Domain ¶
func (_this *FileLoader) Domain() string
func (*FileLoader) Init ¶
func (_this *FileLoader) Init(dir, domain string) *FileLoader
type FrameContext ¶
type GoFn ¶
type GoFn func(context GoFnContext) interface{}
type GoFnContext ¶
type JsFnBinding ¶
type JsFnBinding struct { Name string Fn GoFn State interface{} // contains filtered or unexported fields }
func (*JsFnBinding) Call ¶
func (_this *JsFnBinding) Call(mb Miniblink, param []interface{}) interface{}
type JsReadyCallback ¶
type JsReadyCallback func(args JsReadyEvArgs)
type JsReadyEvArgs ¶
type JsReadyEvArgs interface { FrameContext }
type LoadFailEvArgs ¶
type LoadFailEvArgs interface {
RequestBefore() RequestBeforeEvArgs
}
type Miniblink ¶
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) SetDebugConfig(debugString string, param string) GetHandle() wkeHandle }
type MiniblinkBrowser ¶
type MiniblinkBrowser struct { cs.Control EvRequestBefore map[string]func(sender *MiniblinkBrowser, e RequestBeforeEvArgs) OnRequestBefore func(e RequestBeforeEvArgs) EvJsReady map[string]func(sender *MiniblinkBrowser, e JsReadyEvArgs) OnJsReady func(e JsReadyEvArgs) EvConsole map[string]func(sender *MiniblinkBrowser, e ConsoleEvArgs) OnConsole func(e ConsoleEvArgs) EvDocumentReady map[string]func(sender *MiniblinkBrowser, e DocumentReadyEvArgs) OnDocumentReady func(e DocumentReadyEvArgs) EvPaintUpdated map[string]func(sender *MiniblinkBrowser, e PaintUpdatedEvArgs) OnPaintUpdated func(e PaintUpdatedEvArgs) ResourceLoader []LoadResource // contains filtered or unexported fields }
func (*MiniblinkBrowser) CallJsFunc ¶
func (_this *MiniblinkBrowser) CallJsFunc(name string, param ...interface{}) interface{}
func (*MiniblinkBrowser) GetMiniblinkHandle ¶
func (_this *MiniblinkBrowser) GetMiniblinkHandle() uintptr
func (*MiniblinkBrowser) Init ¶
func (_this *MiniblinkBrowser) Init() *MiniblinkBrowser
func (*MiniblinkBrowser) JsFunc ¶
func (_this *MiniblinkBrowser) JsFunc(name string, fn GoFn, state interface{})
func (*MiniblinkBrowser) JsFuncEx ¶
func (_this *MiniblinkBrowser) JsFuncEx(name string, fn interface{})
func (*MiniblinkBrowser) LoadUri ¶
func (_this *MiniblinkBrowser) LoadUri(uri string)
func (*MiniblinkBrowser) MouseEnable ¶
func (_this *MiniblinkBrowser) MouseEnable(b bool)
func (*MiniblinkBrowser) MouseIsEnable ¶
func (_this *MiniblinkBrowser) MouseIsEnable() bool
func (*MiniblinkBrowser) SetBmpPaintMode ¶
func (_this *MiniblinkBrowser) SetBmpPaintMode(b bool)
func (*MiniblinkBrowser) SetDebugConfig ¶
func (_this *MiniblinkBrowser) SetDebugConfig(debugString string, param string)
func (*MiniblinkBrowser) SetProxy ¶
func (_this *MiniblinkBrowser) SetProxy(info ProxyInfo)
func (*MiniblinkBrowser) ToBitmap ¶
func (_this *MiniblinkBrowser) ToBitmap() *image.RGBA
type MiniblinkForm ¶
type MiniblinkForm struct { cs.Form View *MiniblinkBrowser // contains filtered or unexported fields }
func (*MiniblinkForm) Init ¶
func (_this *MiniblinkForm) Init() *MiniblinkForm
func (*MiniblinkForm) InitEx ¶
func (_this *MiniblinkForm) InitEx(param br.FormParam) *MiniblinkForm
func (*MiniblinkForm) TransparentMode ¶
func (_this *MiniblinkForm) TransparentMode()
type PaintUpdatedCallback ¶
type PaintUpdatedCallback func(args PaintUpdatedEvArgs)
type PaintUpdatedEvArgs ¶
type RequestBeforeCallback ¶
type RequestBeforeCallback func(args RequestBeforeEvArgs)
type RequestBeforeEvArgs ¶
type RequestBeforeEvArgs interface { Url() string Method() string SetData([]byte) Data() []byte SetCancel(b bool) ResetUrl(url string) SetHeader(name, value string) /** 内容最终呈现时触发 args:intf, ResponseEvArgs */ EvResponse() *EventDispatcher /** 加载失败时触发 args:intf, LoadFailEvArgs */ EvLoadFail() *EventDispatcher /** 请求流程全部完成时触发 args:intf, RequestBeforeEvArgs */ EvFinish() *EventDispatcher }
type ResponseCallback ¶
type ResponseCallback func(args ResponseEvArgs)
type ResponseEvArgs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.