miniblink

package
v2.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

���кܶ����⣬��Ҫʹ�ã�����ֻ��һ�����Եġ�

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	WKE_LBUTTON = 0x01
	WKE_RBUTTON = 0x02
	WKE_SHIFT   = 0x04
	WKE_CONTROL = 0x08
	WKE_MBUTTON = 0x10
)
View Source
const (
	WKE_EXTENDED = 0x0100
	WKE_REPEAT   = 0x4000
)
View Source
const (
	WKE_MSG_MOUSEMOVE     = 0x0200
	WKE_MSG_LBUTTONDOWN   = 0x0201
	WKE_MSG_LBUTTONUP     = 0x0202
	WKE_MSG_LBUTTONDBLCLK = 0x0203
	WKE_MSG_RBUTTONDOWN   = 0x0204
	WKE_MSG_RBUTTONUP     = 0x0205
	WKE_MSG_RBUTTONDBLCLK = 0x0206
	WKE_MSG_MBUTTONDOWN   = 0x0207
	WKE_MSG_MBUTTONUP     = 0x0208
	WKE_MSG_MBUTTONDBLCLK = 0x0209
	WKE_MSG_MOUSEWHEEL    = 0x020A
)
View Source
const (
	WKE_SETTING_PROXY                         = 1
	WKE_SETTING_PAINTCALLBACK_IN_OTHER_THREAD = 1 << 2
)
View Source
const (
	KWkeMenuSelectedAllId  = 1 << 1
	KWkeMenuSelectedTextId = 1 << 2
	KWkeMenuUndoId         = 1 << 3
	KWkeMenuCopyImageId    = 1 << 4

	KWkeMenuCutId       = 1 << 6
	KWkeMenuPasteId     = 1 << 7
	KWkeMenuPrintId     = 1 << 8
	KWkeMenuGoForwardId = 1 << 9
	KWkeMenuGoBackId    = 1 << 10
	KWkeMenuReloadId    = 1 << 11
)
View Source
const (
	// String data with an associated MIME type. Depending on the MIME type, there may be
	// optional metadata attributes as well.
	StorageTypeString = iota + 0
	// Stores the name of one file being dragged into the renderer.
	StorageTypeFilename
	// An image being dragged out of the renderer. Contains a buffer holding the image data
	// as well as the suggested name for saving the image to.
	StorageTypeBinaryData
	// Stores the filesystem URL of one file being dragged into the renderer.
	StorageTypeFileSystemFile
)
View Source
const (
	WkeWebDragOperationNone    = 0
	WkeWebDragOperationCopy    = 1
	WkeWebDragOperationLink    = 2
	WkeWebDragOperationGeneric = 4
	WkeWebDragOperationPrivate = 8
	WkeWebDragOperationMove    = 16
	WkeWebDragOperationDelete  = 32
	WkeWebDragOperationEvery   = 0xffffffff
)
View Source
const (
	WKE_RESOURCE_TYPE_MAIN_FRAME    = 0 // top level page
	WKE_RESOURCE_TYPE_SUB_FRAME     = 1 // frame or iframe
	WKE_RESOURCE_TYPE_STYLESHEET    = 2 // a CSS stylesheet
	WKE_RESOURCE_TYPE_SCRIPT        = 3 // an external script
	WKE_RESOURCE_TYPE_IMAGE         = 4 // an image (jpg/gif/png/etc)
	WKE_RESOURCE_TYPE_FONT_RESOURCE = 5 // a font
	WKE_RESOURCE_TYPE_SUB_RESOURCE  = 6 // an "other" subresource.
	WKE_RESOURCE_TYPE_OBJECT        = 7 // an object (or embed) tag for a plugin,
	// or a resource that a plugin requested.
	WKE_RESOURCE_TYPE_MEDIA  = 8 // a media resource.
	WKE_RESOURCE_TYPE_WORKER = 9 // the main resource of a dedicated
	// worker.
	WKE_RESOURCE_TYPE_SHARED_WORKER  = 10 // the main resource of a shared worker.
	WKE_RESOURCE_TYPE_PREFETCH       = 11 // an explicitly requested prefetch
	WKE_RESOURCE_TYPE_FAVICON        = 12 // a favicon
	WKE_RESOURCE_TYPE_XHR            = 13 // a XMLHttpRequest
	WKE_RESOURCE_TYPE_PING           = 14 // a ping request for <a ping>
	WKE_RESOURCE_TYPE_SERVICE_WORKER = 15 // the main resource of a service worker.
	WKE_RESOURCE_TYPE_LAST_TYPE
)
View Source
const (
	KWkeContextMenuItemClickStepShow  = 0x01
	KWkeContextMenuItemClickStepClick = 0x02
)
View Source
const (
	KWkeDownloadOptCancel = iota + 0
	KWkeDownloadOptCacheData
)
View Source
const (
	WkeLevelDebug        = 4
	WkeLevelLog          = 1
	WkeLevelInfo         = 5
	WkeLevelWarning      = 2
	WkeLevelError        = 3
	WkeLevelRevokedError = 6
	WkeLevelLast         = WkeLevelInfo
)
View Source
const (
	WKE_WINDOW_TYPE_POPUP = iota + 0
	WKE_WINDOW_TYPE_TRANSPARENT
	WKE_WINDOW_TYPE_CONTROL
)
View Source
const (
	KWkeContextMenuItemClickTypePrint = 0x01
)

Variables

This section is empty.

Functions

func CAStr

func CAStr(str string) uintptr

func CBool

func CBool(val bool) uintptr

func CWStr

func CWStr(str string) uintptr

func Finalize

func Finalize()

func GoAStr

func GoAStr(str uintptr) string

func GoBool

func GoBool(val uintptr) bool

func GoWStr

func GoWStr(str uintptr) string

func Init

func Init()

func Initialize

func Initialize()

func InitializeEx

func InitializeEx(settings *WkeSettings)

func IsInitialize

func IsInitialize() bool

func LoadMiniBlinkDLL

func LoadMiniBlinkDLL() *syscall.LazyDLL

func ToUInt64

func ToUInt64(r1, r2 uintptr) uint64

下面两个函数主要是给 386平台使用的,amd64不需要使用

func UInt64To

func UInt64To(val uint64) (uintptr, uintptr)

Types

type BlinkWebURLRequestPtr

type BlinkWebURLRequestPtr uintptr

type FILE_CLOSE_

type FILE_CLOSE_ uintptr

typedef void(WKE_CALL_TYPE *FILE_CLOSE_) (void* handle);

type FILE_OPEN_

type FILE_OPEN_ uintptr

typedef void* (WKE_CALL_TYPE *FILE_OPEN_) (const char* path);

type FILE_READ

type FILE_READ uintptr

typedef int(WKE_CALL_TYPE *FILE_READ) (void* handle, void* buffer, size_t size);

type FILE_SEEK

type FILE_SEEK uintptr

typedef int(WKE_CALL_TYPE *FILE_SEEK) (void* handle, int offset, int origin);

type FILE_SIZE

type FILE_SIZE uintptr

typedef size_t(WKE_CALL_TYPE *FILE_SIZE) (void* handle);

type Item

type Item struct {

	// Only valid when storageType == StorageTypeString.
	StringType *WkeMemBuf
	StringData *WkeMemBuf

	// Only valid when storageType == StorageTypeFilename.
	FilenameData    *WkeMemBuf
	DisplayNameData *WkeMemBuf

	// Only valid when storageType == StorageTypeBinaryData.
	BinaryData *WkeMemBuf

	// Title associated with a link when stringType == "text/uri-list".
	// Filename when storageType == StorageTypeBinaryData.
	Title *WkeMemBuf

	// Only valid when storageType == StorageTypeFileSystemFile.
	FileSystemURL      *WkeMemBuf
	FileSystemFileSize int64

	// Only valid when stringType == "text/html".
	BaseURL *WkeMemBuf
}

type JsCallAsFunctionCallback

type JsCallAsFunctionCallback uintptr

typedef jsValue(WKE_CALL_TYPE*jsCallAsFunctionCallback)(jsExecState es, jsValue object, jsValue* args, int argCount);

type JsData

type JsData struct {
	TypeName       [100]uint8
	PropertyGet    JsGetPropertyCallback
	PropertySet    JsSetPropertyCallback
	Finalize       JsFinalizeCallback
	CallAsFunction JsCallAsFunctionCallback
}

type JsExceptionInfo

type JsExceptionInfo struct {
	Message            uintptr //const utf8* message; // Returns the exception message.
	SourceLine         uintptr //const utf8* sourceLine; // Returns the line of source code that the exception occurred within.
	ScriptResourceName uintptr //const utf8* scriptResourceName; // Returns the resource name for the script from where the function causing the error originates.
	LineNumber         int     // Returns the 1-based number of the line where the error occurred or 0 if the line number is unknown.
	StartPosition      int     // Returns the index within the script of the first character where the error occurred.
	EndPosition        int     // Returns the index within the script of the last character where the error occurred.
	StartColumn        int     // Returns the index within the line of the first character where the error occurred.
	EndColumn          int     // Returns the index within the line of the last character where the error occurred.
	CallstackString    uintptr //const utf8* callstackString;
}

type JsExecState

type JsExecState uintptr

func (JsExecState) AddRef

func (es JsExecState) AddRef(val JsValue) bool

func (JsExecState) Arg

func (es JsExecState) Arg(argIdx int) JsValue

func (JsExecState) ArgCount

func (es JsExecState) ArgCount() int

JsExecState

func (JsExecState) ArgType

func (es JsExecState) ArgType(argIdx int) JsType

func (JsExecState) ArrayBuffer

func (es JsExecState) ArrayBuffer(buffer string, size uint) JsValue

func (JsExecState) Call

func (es JsExecState) Call(aFunc JsValue, thisObject JsValue, args *JsValue, argCount int) JsValue

func (JsExecState) CallGlobal

func (es JsExecState) CallGlobal(aFunc JsValue, args *JsValue, argCount int) JsValue

func (JsExecState) DeleteObjectProp

func (es JsExecState) DeleteObjectProp(object JsValue, prop string)

func (JsExecState) EmptyArray

func (es JsExecState) EmptyArray() JsValue

func (JsExecState) EmptyObject

func (es JsExecState) EmptyObject() JsValue

func (JsExecState) Eval

func (es JsExecState) Eval(str string) JsValue

func (JsExecState) EvalExW

func (es JsExecState) EvalExW(str string, isInClosure bool) JsValue

func (JsExecState) EvalW

func (es JsExecState) EvalW(str string) JsValue

func (JsExecState) Function

func (es JsExecState) Function(obj *JsData) JsValue

func (JsExecState) Get

func (es JsExecState) Get(object JsValue, prop string) JsValue

func (JsExecState) GetArrayBuffer

func (es JsExecState) GetArrayBuffer(value JsValue) *WkeMemBuf

func (JsExecState) GetAt

func (es JsExecState) GetAt(object JsValue, index int) JsValue

func (JsExecState) GetCallstack

func (es JsExecState) GetCallstack() string

func (JsExecState) GetData

func (es JsExecState) GetData(object JsValue) *JsData

func (JsExecState) GetGlobal

func (es JsExecState) GetGlobal(prop string) JsValue

func (JsExecState) GetKeys

func (es JsExecState) GetKeys(object JsValue) *JsKeys

func (JsExecState) GetLastErrorIfException

func (es JsExecState) GetLastErrorIfException() uintptr

func (JsExecState) GetLength

func (es JsExecState) GetLength(object JsValue) int

func (JsExecState) GetWebView

func (es JsExecState) GetWebView() WkeWebView

func (JsExecState) GlobalObject

func (es JsExecState) GlobalObject() JsValue

func (JsExecState) IsJsValueValid

func (es JsExecState) IsJsValueValid(object JsValue) bool

func (JsExecState) IsValidExecState

func (es JsExecState) IsValidExecState() bool

func (JsExecState) Object

func (es JsExecState) Object(obj *JsData) JsValue

func (JsExecState) ReleaseRef

func (es JsExecState) ReleaseRef(val JsValue) bool

func (JsExecState) Set

func (es JsExecState) Set(object JsValue, prop string, v JsValue)

func (JsExecState) SetAt

func (es JsExecState) SetAt(object JsValue, index int, v JsValue)

func (JsExecState) SetGlobal

func (es JsExecState) SetGlobal(prop string, v JsValue)

func (JsExecState) SetLength

func (es JsExecState) SetLength(object JsValue, length int)

func (JsExecState) String

func (es JsExecState) String(str string) JsValue

func (JsExecState) StringW

func (es JsExecState) StringW(str string) JsValue

func (JsExecState) ThrowException

func (es JsExecState) ThrowException(exception string) JsValue

func (JsExecState) ToBoolean

func (es JsExecState) ToBoolean(v JsValue) bool

func (JsExecState) ToDouble

func (es JsExecState) ToDouble(v JsValue) float64

func (JsExecState) ToFloat

func (es JsExecState) ToFloat(v JsValue) float32

func (JsExecState) ToInt

func (es JsExecState) ToInt(v JsValue) int

func (JsExecState) ToTempString

func (es JsExecState) ToTempString(v JsValue) string

func (JsExecState) ToTempStringW

func (es JsExecState) ToTempStringW(v JsValue) string

func (JsExecState) ToV8Value

func (es JsExecState) ToV8Value(v JsValue) uintptr

type JsFinalizeCallback

type JsFinalizeCallback uintptr

typedef void(WKE_CALL_TYPE*jsFinalizeCallback)(struct tagjsData* data);

type JsGetPropertyCallback

type JsGetPropertyCallback uintptr

typedef jsValue(WKE_CALL_TYPE*jsGetPropertyCallback)(jsExecState es, jsValue object, const char* propertyName);

type JsKeys

type JsKeys struct {
	Length uint
	Keys   **uintptr
}

type JsNativeFunction

type JsNativeFunction uintptr

#define JS_CALL __fastcall typedef jsValue(JS_CALL* jsNativeFunction) (jsExecState es);

type JsSetPropertyCallback

type JsSetPropertyCallback uintptr

typedef bool(WKE_CALL_TYPE*jsSetPropertyCallback)(jsExecState es, jsValue object, const char* propertyName, jsValue value);

type JsType

type JsType int
const (
	JSTYPE_NUMBER JsType = iota + 0
	JSTYPE_STRING
	JSTYPE_BOOLEAN
	JSTYPE_OBJECT
	JSTYPE_FUNCTION
	JSTYPE_UNDEFINED
	JSTYPE_ARRAY
	JSTYPE_NULL
)

type JsValue

type JsValue int64

func (*JsValue) Boolean

func (j *JsValue) Boolean(b bool)

func (*JsValue) Double

func (j *JsValue) Double(d float64)

func (*JsValue) False

func (j *JsValue) False()

func (*JsValue) Float

func (j *JsValue) Float(f float32)

func (JsValue) GC

func (j JsValue) GC()

GC

func (*JsValue) Int

func (j *JsValue) Int(n int)

输入

func (JsValue) IsArray

func (j JsValue) IsArray() bool

func (JsValue) IsBoolean

func (j JsValue) IsBoolean() bool

func (JsValue) IsFalse

func (j JsValue) IsFalse() bool

func (JsValue) IsFunction

func (j JsValue) IsFunction() bool

func (JsValue) IsNull

func (j JsValue) IsNull() bool

func (JsValue) IsNumber

func (j JsValue) IsNumber() bool

func (JsValue) IsObject

func (j JsValue) IsObject() bool

func (JsValue) IsString

func (j JsValue) IsString() bool

func (JsValue) IsTrue

func (j JsValue) IsTrue() bool

func (JsValue) IsUndefined

func (j JsValue) IsUndefined() bool

func (*JsValue) Null

func (j *JsValue) Null()

func (*JsValue) True

func (j *JsValue) True()

func (JsValue) TypeOf

func (j JsValue) TypeOf() JsType

JsValue 输出

func (*JsValue) Undefined

func (j *JsValue) Undefined()

绝对

type ON_TITLE_CHANGED

type ON_TITLE_CHANGED uintptr

typedef void(WKE_CALL_TYPE *ON_TITLE_CHANGED) (const struct _wkeClientHandler* clientHandler, const wkeString title);

type ON_URL_CHANGED

type ON_URL_CHANGED uintptr

typedef void(WKE_CALL_TYPE *ON_URL_CHANGED) (const struct _wkeClientHandler* clientHandler, const wkeString url);

type StorageType

type StorageType WkeStorageType

type TMiniBlinkWebview

type TMiniBlinkWebview struct {
	Webview         WkeWebView
	OnCreateView    TOnCreateViewEvent
	OnTitleChanged  TOnTitleChangedEvent
	OnURLChanged    TOnURLChangedEvent
	OnNavigation    TOnNavigationEvent
	OnLoadingFinish TOnLoadingFinishEvent
	OnDocumentReady TOnDocumentReadyEvent
}

func NewMiniBlinkWebview

func NewMiniBlinkWebview(hWnd types.HWND) *TMiniBlinkWebview

func (*TMiniBlinkWebview) DestroyWebWindow

func (w *TMiniBlinkWebview) DestroyWebWindow()

func (*TMiniBlinkWebview) Free

func (w *TMiniBlinkWebview) Free()

func (*TMiniBlinkWebview) IsValid

func (w *TMiniBlinkWebview) IsValid() bool

func (*TMiniBlinkWebview) Load

func (w *TMiniBlinkWebview) Load(url string)

func (*TMiniBlinkWebview) MoveWindow

func (w *TMiniBlinkWebview) MoveWindow(x, y, width, height int)

func (*TMiniBlinkWebview) Show

func (w *TMiniBlinkWebview) Show(val bool)

type TOnCreateViewEvent

type TOnCreateViewEvent func(sender *TMiniBlinkWebview, navigationType WkeNavigationType, url string, windowFeatures *WkeWindowFeatures, result *WkeWebView)

type TOnDocumentReadyEvent

type TOnDocumentReadyEvent func(sender *TMiniBlinkWebview)

type TOnLoadingFinishEvent

type TOnLoadingFinishEvent func(sender *TMiniBlinkWebview, url string, result WkeLoadingResult, failedReason string)

type TOnNavigationEvent

type TOnNavigationEvent func(sender *TMiniBlinkWebview, navigationType WkeNavigationType, url string)

type TOnTitleChangedEvent

type TOnTitleChangedEvent func(sender *TMiniBlinkWebview, title string)

type TOnURLChangedEvent

type TOnURLChangedEvent func(sender *TMiniBlinkWebview, url string)

type V8ContextPtr

type V8ContextPtr uintptr

type V8Isolate

type V8Isolate uintptr

type WKE_EXISTS_FILE

type WKE_EXISTS_FILE uintptr // bool(WKE_CALL_TYPE *WKE_EXISTS_FILE)(const char * path);

type WKE_FILE_CLOSE

type WKE_FILE_CLOSE FILE_CLOSE_

type WKE_FILE_OPEN

type WKE_FILE_OPEN FILE_OPEN_

type WKE_FILE_READ

type WKE_FILE_READ FILE_READ

type WKE_FILE_SEEK

type WKE_FILE_SEEK FILE_SEEK

type WKE_FILE_SIZE

type WKE_FILE_SIZE FILE_SIZE

type WkeAlertBoxCallback

type WkeAlertBoxCallback uintptr

type WkeCallUiThread

type WkeCallUiThread uintptr

typedef void(WKE_CALL_TYPE*wkeCallUiThread)(wkeWebView webView, wkeOnCallUiThread func, void* param);

type WkeClientHandler

type WkeClientHandler struct {
	OnTitleChanged ON_TITLE_CHANGED
	OnURLChanged   ON_URL_CHANGED
}

type WkeConfirmBoxCallback

type WkeConfirmBoxCallback uintptr

type WkeConsoleCallback

type WkeConsoleCallback uintptr

typedef void(WKE_CALL_TYPE*wkeConsoleCallback)(wkeWebView webView, void* param, wkeConsoleLevel level, const wkeString message, const wkeString sourceName, unsigned sourceLine, const wkeString stackTrace);

type WkeConsoleLevel

type WkeConsoleLevel int

type WkeCookieCommand

type WkeCookieCommand int
const (
	WkeCookieCommandClearAllCookies WkeCookieCommand = iota + 0
	WkeCookieCommandClearSessionCookies
	WkeCookieCommandFlushCookiesToFile
	WkeCookieCommandReloadCookiesFromFile
)

type WkeCookieVisitor

type WkeCookieVisitor = uintptr

typedef bool(WKE_CALL_TYPE * wkeCookieVisitor)(

void* params,
const char* name,
const char* value,
const char* domain,
const char* path, // If |path| is non-empty only URLs at or below the path will get the cookie value.
int secure, // If |secure| is true the cookie will only be sent for HTTPS requests.
int httpOnly, // If |httponly| is true the cookie will only be sent for HTTP requests.
int* expires // The cookie expiration date is only valid if |has_expires| is true.
);

type WkeCreateViewCallback

type WkeCreateViewCallback uintptr

type WkeCursorInfoType

type WkeCursorInfoType int
const (
	WkeCursorInfoPointer WkeCursorInfoType = iota + 0
	WkeCursorInfoCross
	WkeCursorInfoHand
	WkeCursorInfoIBeam
	WkeCursorInfoWait
	WkeCursorInfoHelp
	WkeCursorInfoEastResize
	WkeCursorInfoNorthResize
	WkeCursorInfoNorthEastResize
	WkeCursorInfoNorthWestResize
	WkeCursorInfoSouthResize
	WkeCursorInfoSouthEastResize
	WkeCursorInfoSouthWestResize
	WkeCursorInfoWestResize
	WkeCursorInfoNorthSouthResize
	WkeCursorInfoEastWestResize
	WkeCursorInfoNorthEastSouthWestResize
	WkeCursorInfoNorthWestSouthEastResize
	WkeCursorInfoColumnResize
	WkeCursorInfoRowResize
	WkeCursorInfoMiddlePanning
	WkeCursorInfoEastPanning
	WkeCursorInfoNorthPanning
	WkeCursorInfoNorthEastPanning
	WkeCursorInfoNorthWestPanning
	WkeCursorInfoSouthPanning
	WkeCursorInfoSouthEastPanning
	WkeCursorInfoSouthWestPanning
	WkeCursorInfoWestPanning
	WkeCursorInfoMove
	WkeCursorInfoVerticalText
	WkeCursorInfoCell
	WkeCursorInfoContextMenu
	WkeCursorInfoAlias
	WkeCursorInfoProgress
	WkeCursorInfoNoDrop
	WkeCursorInfoCopy
	WkeCursorInfoNone
	WkeCursorInfoNotAllowed
	WkeCursorInfoZoomIn
	WkeCursorInfoZoomOut
	WkeCursorInfoGrab
	WkeCursorInfoGrabbing
	WkeCursorInfoCustom
)

type WkeDidCreateScriptContextCallback

type WkeDidCreateScriptContextCallback uintptr

typedef void(WKE_CALL_TYPE*wkeDidCreateScriptContextCallback)(wkeWebView webView, void* param, wkeWebFrameHandle frameId, void* context, int extensionGroup, int worldId);

type WkeDocumentReady2Callback

type WkeDocumentReady2Callback uintptr

type WkeDocumentReadyCallback

type WkeDocumentReadyCallback uintptr

type WkeDownload2Callback

type WkeDownload2Callback uintptr

typedef wkeDownloadOpt(WKE_CALL_TYPE*wkeDownload2Callback)(

wkeWebView webView,
void* param,
size_t expectedContentLength,
const char* url,
const char* mime,
const char* disposition,
wkeNetJob job,
wkeNetJobDataBind* dataBind);

type WkeDownloadCallback

type WkeDownloadCallback uintptr

typedef bool(WKE_CALL_TYPE*wkeDownloadCallback)(wkeWebView webView, void* param, const char* url);

type WkeDownloadOpt

type WkeDownloadOpt int

type WkeDraggableRegion

type WkeDraggableRegion struct {
	Bounds    types.TRect
	Draggable bool
}

type WkeDraggableRegionsChangedCallback

type WkeDraggableRegionsChangedCallback uintptr

typedef void(WKE_CALL_TYPE*wkeDraggableRegionsChangedCallback)(wkeWebView webView, void* param, const wkeDraggableRegion* rects, int rectCount);

type WkeHttBodyElementType

type WkeHttBodyElementType int
const (
	WkeHttBodyElementTypeData WkeHttBodyElementType = iota + 0
	WkeHttBodyElementTypeFile
)

type WkeJsNativeFunction

type WkeJsNativeFunction uintptr

typedef jsValue(WKE_CALL_TYPE* wkeJsNativeFunction) (jsExecState es, void* param);

type WkeKeyFlags

type WkeKeyFlags int

type WkeLoadUrlBeginCallback

type WkeLoadUrlBeginCallback uintptr

typedef bool(WKE_CALL_TYPE*wkeLoadUrlBeginCallback)(wkeWebView webView, void* param, const utf8* url, wkeNetJob job);

type WkeLoadUrlEndCallback

type WkeLoadUrlEndCallback uintptr

typedef void(WKE_CALL_TYPE*wkeLoadUrlEndCallback)(wkeWebView webView, void* param, const utf8* url, wkeNetJob job, void* buf, int len);

type WkeLoadUrlFailCallback

type WkeLoadUrlFailCallback uintptr

typedef void(WKE_CALL_TYPE* wkeLoadUrlFailCallback)(wkeWebView webView, void* param, const utf8* url, wkeNetJob job);

type WkeLoadingFinishCallback

type WkeLoadingFinishCallback uintptr

typedef void(WKE_CALL_TYPE*wkeLoadingFinishCallback)(wkeWebView webView, void* param, const wkeString url, wkeLoadingResult result, const wkeString failedReason);

type WkeLoadingResult

type WkeLoadingResult int
const (
	WKE_LOADING_SUCCEEDED WkeLoadingResult = iota + 0
	WKE_LOADING_FAILED
	WKE_LOADING_CANCELED
)

type WkeMediaLoadInfo

type WkeMediaLoadInfo struct {
	Size     int
	Width    int
	Height   int
	Duration float64
}

type WkeMediaPlayer

type WkeMediaPlayer uintptr

type WkeMediaPlayerClient

type WkeMediaPlayerClient uintptr

type WkeMediaPlayerFactory

type WkeMediaPlayerFactory uintptr

typedef wkeMediaPlayer(WKE_CALL_TYPE* wkeMediaPlayerFactory)(wkeWebView webView, wkeMediaPlayerClient client, void* npBrowserFuncs, void* npPluginFuncs);

type WkeMemBuf

type WkeMemBuf struct {
	Size   int
	Data   uintptr
	Length uint
}

type WkeMenuItemId

type WkeMenuItemId int

type WkeMouseFlags

type WkeMouseFlags int

type WkeMouseMsg

type WkeMouseMsg int

type WkeNavigationCallback

type WkeNavigationCallback uintptr

type WkeNavigationType

type WkeNavigationType int
const (
	WKE_NAVIGATION_TYPE_LINKCLICK WkeNavigationType = iota + 0
	WKE_NAVIGATION_TYPE_FORMSUBMITTE
	WKE_NAVIGATION_TYPE_BACKFORWARD
	WKE_NAVIGATION_TYPE_RELOAD
	WKE_NAVIGATION_TYPE_FORMRESUBMITT
	WKE_NAVIGATION_TYPE_OTHER
)

type WkeNetJob

type WkeNetJob uintptr

type WkeNetJobDataBind

type WkeNetJobDataBind struct {
	Param          uintptr
	RecvCallback   WkeNetJobDataRecvCallback
	FinishCallback WkeNetJobDataFinishCallback
}

type WkeNetJobDataFinishCallback

type WkeNetJobDataFinishCallback uintptr

typedef void(WKE_CALL_TYPE*wkeNetJobDataFinishCallback)(void* ptr, wkeNetJob job, wkeLoadingResult result);

type WkeNetJobDataRecvCallback

type WkeNetJobDataRecvCallback uintptr

typedef void(WKE_CALL_TYPE*wkeNetJobDataRecvCallback)(void* ptr, wkeNetJob job, const char* data, int length);

type WkeNetResponseCallback

type WkeNetResponseCallback uintptr

typedef bool(WKE_CALL_TYPE*wkeNetResponseCallback)(wkeWebView webView, void* param, const utf8* url, wkeNetJob job);

type WkeNodeOnCreateProcessCallback

type WkeNodeOnCreateProcessCallback uintptr

type WkeOnCallUiThread

type WkeOnCallUiThread uintptr

typedef void(WKE_CALL_TYPE*wkeOnCallUiThread)(wkeWebView webView, void* paramOnInThread);

type WkeOnContextMenuItemClickCallback

type WkeOnContextMenuItemClickCallback uintptr

typedef bool(WKE_CALL_TYPE* wkeOnContextMenuItemClickCallback)(

wkeWebView webView,
void* param,
wkeOnContextMenuItemClickType type,
wkeOnContextMenuItemClickStep step,
wkeWebFrameHandle frameId,
void* info
);

type WkeOnContextMenuItemClickStep

type WkeOnContextMenuItemClickStep int

type WkeOnContextMenuItemClickType

type WkeOnContextMenuItemClickType int

type WkeOnIsMediaPlayerSupportsMIMEType

type WkeOnIsMediaPlayerSupportsMIMEType uintptr

typedef bool(WKE_CALL_TYPE* wkeOnIsMediaPlayerSupportsMIMEType)(const utf8* mime);

type WkeOnNetGetFaviconCallback

type WkeOnNetGetFaviconCallback uintptr

typedef void(WKE_CALL_TYPE*wkeOnNetGetFaviconCallback)(wkeWebView webView, void* param, const utf8* url, wkeMemBuf* buf);

type WkeOnOtherLoadCallback

type WkeOnOtherLoadCallback uintptr

typedef void(WKE_CALL_TYPE*wkeOnOtherLoadCallback)(wkeWebView webView, void* param, wkeOtherLoadType type, wkeTempCallbackInfo* info);

type WkeOnPluginFindCallback

type WkeOnPluginFindCallback uintptr

type WkeOnPrintCallback

type WkeOnPrintCallback uintptr

type WkeOnShowDevtoolsCallback

type WkeOnShowDevtoolsCallback uintptr

type WkeOnUrlRequestDidFailCallback

type WkeOnUrlRequestDidFailCallback uintptr

typedef void(WKE_CALL_TYPE* wkeOnUrlRequestDidFailCallback)(wkeWebView webView, void* param, wkeWebUrlRequestPtr request, const utf8* error);

type WkeOnUrlRequestDidFinishLoadingCallback

type WkeOnUrlRequestDidFinishLoadingCallback uintptr

typedef void(WKE_CALL_TYPE* wkeOnUrlRequestDidFinishLoadingCallback)(wkeWebView webView, void* param, wkeWebUrlRequestPtr request, double finishTime);

type WkeOnUrlRequestDidReceiveDataCallback

type WkeOnUrlRequestDidReceiveDataCallback uintptr

typedef void(WKE_CALL_TYPE* wkeOnUrlRequestDidReceiveDataCallback)(wkeWebView webView, void* param, wkeWebUrlRequestPtr request, const char* data, int dataLength);

type WkeOnUrlRequestDidReceiveResponseCallback

type WkeOnUrlRequestDidReceiveResponseCallback uintptr

typedef void(WKE_CALL_TYPE* wkeOnUrlRequestDidReceiveResponseCallback)(wkeWebView webView, void* param, wkeWebUrlRequestPtr request, wkeWebUrlResponsePtr response);

type WkeOnUrlRequestWillRedirectCallback

type WkeOnUrlRequestWillRedirectCallback uintptr

typedef void(WKE_CALL_TYPE* wkeOnUrlRequestWillRedirectCallback)(wkeWebView webView, void* param, wkeWebUrlRequestPtr oldRequest, wkeWebUrlRequestPtr request, wkeWebUrlResponsePtr redirectResponse);

type WkeOtherLoadType

type WkeOtherLoadType int
const (
	WKE_DID_START_LOADING WkeOtherLoadType = iota + 0
	WKE_DID_STOP_LOADING
	WKE_DID_NAVIGATE
	WKE_DID_NAVIGATE_IN_PAGE
	WKE_DID_GET_RESPONSE_DETAILS
	WKE_DID_GET_REDIRECT_REQUEST
	WKE_DID_POST_REQUEST
)

type WkePaintBitUpdatedCallback

type WkePaintBitUpdatedCallback uintptr

type WkePaintUpdatedCallback

type WkePaintUpdatedCallback uintptr

type WkePdfDatas

type WkePdfDatas struct {
	Count int
	Sizes *uint
	Datas **uintptr
}

type WkePoint

type WkePoint struct {
	X, Y int
}

type WkePostBodyElement

type WkePostBodyElement struct {
	Size       int
	AType      WkeHttBodyElementType
	Data       *WkeMemBuf
	FilePath   WkeString
	FileStart  int64
	FileLength int64 // -1 means to the end of the file.
}

type WkePostBodyElements

type WkePostBodyElements struct {
	Size        int
	Element     **WkePostBodyElement
	ElementSize uint
	IsDirty     bool
}

type WkePrintSettings

type WkePrintSettings struct {
	StructSize               int
	DPI                      int
	Width                    int // in px
	Height                   int
	MarginTop                int
	MarginBottom             int
	MarginLeft               int
	MarginRight              int
	IsPrintPageHeadAndFooter bool
	IsLandscape              bool
	IsPrintBackgroud         bool
}

type WkePromptBoxCallback

type WkePromptBoxCallback uintptr

type WkeProxy

type WkeProxy struct {
	Type     WkeProxyType
	Hostname [100]uint8
	Port     uint16
	Username [50]uint8
	Password [50]uint8
}

type WkeProxyType

type WkeProxyType int
const (
	WKE_PROXY_NONE WkeProxyType = iota + 0
	WKE_PROXY_HTTP
	WKE_PROXY_SOCKS4
	WKE_PROXY_SOCKS4A
	WKE_PROXY_SOCKS5
	WKE_PROXY_SOCKS5HOSTNAME
)

type WkeRect

type WkeRect struct {
	X, Y, W, H int
}

WKE_CALL_TYPE __cdecl

type WkeRequestType

type WkeRequestType int
const (
	KWkeRequestTypeInvalidation WkeRequestType = iota + 0
	KWkeRequestTypeGet
	KWkeRequestTypePost
	KWkeRequestTypePut
)

type WkeResourceType

type WkeResourceType int

type WkeScreenshotSettings

type WkeScreenshotSettings struct {
	StructSize int
	Width      int
	Height     int
}

type WkeSettingMask

type WkeSettingMask int

type WkeSettings

type WkeSettings struct {
	Proxy WkeProxy
	Mask  uint
}

type WkeStartDraggingCallback

type WkeStartDraggingCallback uintptr

typedef void(WKE_CALL_TYPE*wkeStartDraggingCallback)(

wkeWebView webView,
void* param,
wkeWebFrameHandle frame,
const wkeWebDragData* data,
wkeWebDragOperationsMask mask,
const void* image,
const wkePoint* dragImageOffset
);

type WkeStorageType

type WkeStorageType int

type WkeString

type WkeString uintptr

type WkeTempCallbackInfo

type WkeTempCallbackInfo struct {
	Size                int
	Frame               WkeWebFrameHandle
	WillSendRequestInfo *WkeWillSendRequestInfo
	Url                 uintptr //const char* url;
	PostBody            WkePostBodyElements
	Job                 WkeNetJob
}

type WkeTitleChangedCallback

type WkeTitleChangedCallback uintptr

typedef void(WKE_CALL_TYPE*wkeTitleChangedCallback)(wkeWebView webView, void* param, const wkeString title); typedef void(WKE_CALL_TYPE*wkeURLChangedCallback)(wkeWebView webView, void* param, const wkeString url); typedef void(WKE_CALL_TYPE*wkeURLChangedCallback2)(wkeWebView webView, void* param, wkeWebFrameHandle frameId, const wkeString url); typedef void(WKE_CALL_TYPE*wkePaintUpdatedCallback)(wkeWebView webView, void* param, const HDC hdc, int x, int y, int cx, int cy); typedef void(WKE_CALL_TYPE*wkePaintBitUpdatedCallback)(wkeWebView webView, void* param, const void* buffer, const wkeRect* r, int width, int height); typedef void(WKE_CALL_TYPE*wkeAlertBoxCallback)(wkeWebView webView, void* param, const wkeString msg); typedef bool(WKE_CALL_TYPE*wkeConfirmBoxCallback)(wkeWebView webView, void* param, const wkeString msg); typedef bool(WKE_CALL_TYPE*wkePromptBoxCallback)(wkeWebView webView, void* param, const wkeString msg, const wkeString defaultResult, wkeString result); typedef bool(WKE_CALL_TYPE*wkeNavigationCallback)(wkeWebView webView, void* param, wkeNavigationType navigationType, wkeString url); typedef wkeWebView(WKE_CALL_TYPE*wkeCreateViewCallback)(wkeWebView webView, void* param, wkeNavigationType navigationType, const wkeString url, const wkeWindowFeatures* windowFeatures); typedef void(WKE_CALL_TYPE*wkeDocumentReadyCallback)(wkeWebView webView, void* param); typedef void(WKE_CALL_TYPE*wkeDocumentReady2Callback)(wkeWebView webView, void* param, wkeWebFrameHandle frameId);

typedef void(WKE_CALL_TYPE*wkeOnShowDevtoolsCallback)(wkeWebView webView, void* param);

typedef void(WKE_CALL_TYPE*wkeNodeOnCreateProcessCallback)(wkeWebView webView, void* param, const WCHAR* applicationPath, const WCHAR* arguments, STARTUPINFOW* startup); typedef void(WKE_CALL_TYPE*wkeOnPluginFindCallback)(wkeWebView webView, void* param, const utf8* mime, void* initializeFunc, void* getEntryPointsFunc, void* shutdownFunc);

typedef void(WKE_CALL_TYPE*wkeOnPrintCallback)(wkeWebView webView, void* param, wkeWebFrameHandle frameId, void* printParams);

type WkeURLChangedCallback

type WkeURLChangedCallback uintptr

type WkeURLChangedCallback2

type WkeURLChangedCallback2 uintptr

type WkeUiThreadPostTaskCallback

type WkeUiThreadPostTaskCallback uintptr

typedef int(WKE_CALL_TYPE*wkeUiThreadPostTaskCallback)(HWND hWnd, wkeUiThreadRunCallback callback, void* param);

type WkeUiThreadRunCallback

type WkeUiThreadRunCallback uintptr

typedef void(WKE_CALL_TYPE*wkeUiThreadRunCallback)(HWND hWnd, void* param);

type WkeUrlRequestCallbacks

type WkeUrlRequestCallbacks struct {
	WillRedirectCallback       WkeOnUrlRequestWillRedirectCallback
	DidReceiveResponseCallback WkeOnUrlRequestDidReceiveResponseCallback
	DidReceiveDataCallback     WkeOnUrlRequestDidReceiveDataCallback
	DidFailCallback            WkeOnUrlRequestDidFailCallback
	DidFinishLoadingCallback   WkeOnUrlRequestDidFinishLoadingCallback
}

type WkeViewSettings

type WkeViewSettings struct {
	Size    int
	BgColor uint
}

type WkeWebDragData

type WkeWebDragData struct {
	M_itemList       *Item
	M_itemListLength int

	M_modifierKeyState int // State of Shift/Ctrl/Alt/Meta keys.
	M_filesystemId     *WkeMemBuf
}

type WkeWebDragOperation

type WkeWebDragOperation int

type WkeWebDragOperationsMask

type WkeWebDragOperationsMask WkeWebDragOperation

type WkeWebFrameHandle

type WkeWebFrameHandle uintptr

type WkeWebUrlRequestPtr

type WkeWebUrlRequestPtr uintptr

type WkeWebUrlResponsePtr

type WkeWebUrlResponsePtr uintptr

type WkeWebView

type WkeWebView uintptr

func (WkeWebView) AddDirtyArea

func (w WkeWebView) AddDirtyArea(x, y, width, height int)

func (WkeWebView) CanGoBack

func (w WkeWebView) CanGoBack() bool

func (WkeWebView) CanGoForward

func (w WkeWebView) CanGoForward() bool

func (WkeWebView) ContentsHeight

func (w WkeWebView) ContentsHeight() int

func (WkeWebView) ContentsWidth

func (w WkeWebView) ContentsWidth() int

func (WkeWebView) EditorCopy

func (w WkeWebView) EditorCopy()

func (WkeWebView) EditorCut

func (w WkeWebView) EditorCut()

func (WkeWebView) EditorDelete

func (w WkeWebView) EditorDelete()

func (WkeWebView) EditorPaste

func (w WkeWebView) EditorPaste()

func (WkeWebView) EditorRedo

func (w WkeWebView) EditorRedo()

func (WkeWebView) EditorSelectAll

func (w WkeWebView) EditorSelectAll()

func (WkeWebView) EditorUnSelect

func (w WkeWebView) EditorUnSelect()

func (WkeWebView) EditorUndo

func (w WkeWebView) EditorUndo()

func (WkeWebView) FireContextMenuEvent

func (w WkeWebView) FireContextMenuEvent(x, y int, flags uint) bool

func (WkeWebView) FireKeyDownEvent

func (w WkeWebView) FireKeyDownEvent(virtualKeyCode, flags uint, systemKey bool) bool

func (WkeWebView) FireKeyPressEvent

func (w WkeWebView) FireKeyPressEvent(virtualKeyCode, flags uint, systemKey bool) bool

func (WkeWebView) FireKeyUpEvent

func (w WkeWebView) FireKeyUpEvent(virtualKeyCode, flags uint, systemKey bool) bool

func (WkeWebView) FireMouseEvent

func (w WkeWebView) FireMouseEvent(message uint, x, y int, flags uint) bool

func (WkeWebView) FireMouseWheelEvent

func (w WkeWebView) FireMouseWheelEvent(x, y, delta int, flags uint) bool

func (WkeWebView) GetClientHandler

func (w WkeWebView) GetClientHandler() *WkeClientHandler

func (WkeWebView) GlobalExec

func (w WkeWebView) GlobalExec() JsExecState

func (WkeWebView) GoBack

func (w WkeWebView) GoBack()

func (WkeWebView) GoForward

func (w WkeWebView) GoForward()

func (WkeWebView) Height

func (w WkeWebView) Height() int

func (WkeWebView) IsAwake

func (w WkeWebView) IsAwake() bool

func (WkeWebView) IsCookieEnabled

func (w WkeWebView) IsCookieEnabled() bool

func (WkeWebView) IsDirty

func (w WkeWebView) IsDirty() bool

func (WkeWebView) IsDocumentReady

func (w WkeWebView) IsDocumentReady() bool

func (WkeWebView) IsLoading

func (w WkeWebView) IsLoading() bool

func (WkeWebView) IsLoadingFailed

func (w WkeWebView) IsLoadingFailed() bool

func (WkeWebView) IsLoadingSucceeded

func (w WkeWebView) IsLoadingSucceeded() bool

func (WkeWebView) IsTransparent

func (w WkeWebView) IsTransparent() bool

func (WkeWebView) KillFocus

func (w WkeWebView) KillFocus()

func (WkeWebView) LayoutIfNeeded

func (w WkeWebView) LayoutIfNeeded()

func (WkeWebView) LoadFile

func (w WkeWebView) LoadFile(html string)

func (WkeWebView) LoadHTML

func (w WkeWebView) LoadHTML(html string)

func (WkeWebView) LoadURL

func (w WkeWebView) LoadURL(url string)

func (WkeWebView) MediaVolume

func (w WkeWebView) MediaVolume() float32

func (WkeWebView) Name

func (w WkeWebView) Name() string

func (WkeWebView) Paint

func (w WkeWebView) Paint(bits uintptr, pitch int)

func (WkeWebView) Reload

func (w WkeWebView) Reload()

func (WkeWebView) Resize

func (w WkeWebView) Resize(width, height int)

func (WkeWebView) RunJS

func (w WkeWebView) RunJS(script string) JsValue

func (WkeWebView) SetClientHandler

func (w WkeWebView) SetClientHandler(handler *WkeClientHandler)

func (WkeWebView) SetCookieEnabled

func (w WkeWebView) SetCookieEnabled(enable bool)

func (WkeWebView) SetDirty

func (w WkeWebView) SetDirty(dirty bool)

func (WkeWebView) SetEditable

func (w WkeWebView) SetEditable(editable bool)

func (WkeWebView) SetFocus

func (w WkeWebView) SetFocus()

func (WkeWebView) SetMediaVolume

func (w WkeWebView) SetMediaVolume(volume float32)

func (WkeWebView) SetName

func (w WkeWebView) SetName(name string)

func (WkeWebView) SetTransparent

func (w WkeWebView) SetTransparent(val bool)

func (WkeWebView) SetZoomFactor

func (w WkeWebView) SetZoomFactor(factor float32)

func (WkeWebView) Sleep

func (w WkeWebView) Sleep()

func (WkeWebView) StopLoading

func (w WkeWebView) StopLoading()

func (WkeWebView) Title

func (w WkeWebView) Title() string

func (WkeWebView) URL

func (w WkeWebView) URL() string

func (WkeWebView) Wake

func (w WkeWebView) Wake()

func (WkeWebView) Width

func (w WkeWebView) Width() int

func (WkeWebView) ZoomFactor

func (w WkeWebView) ZoomFactor() float32

type WkeWillMediaLoadCallback

type WkeWillMediaLoadCallback uintptr

typedef void(WKE_CALL_TYPE*wkeWillMediaLoadCallback)(wkeWebView webView, void* param, const char* url, wkeMediaLoadInfo* info);

type WkeWillReleaseScriptContextCallback

type WkeWillReleaseScriptContextCallback uintptr

typedef void(WKE_CALL_TYPE*wkeWillReleaseScriptContextCallback)(wkeWebView webView, void* param, wkeWebFrameHandle frameId, void* context, int worldId);

type WkeWillSendRequestInfo

type WkeWillSendRequestInfo struct {
	Url              WkeString
	NewUrl           WkeString
	ResourceType     WkeResourceType
	HttpResponseCode int
	Method           WkeString
	Referrer         WkeString
	Headers          uintptr
}

type WkeWindowClosingCallback

type WkeWindowClosingCallback uintptr

typedef bool(WKE_CALL_TYPE*wkeWindowClosingCallback)(wkeWebView webWindow, void* param);

type WkeWindowCreateInfo

type WkeWindowCreateInfo struct {
	Size    int
	Parent  types.HWND
	Style   uint32
	StyleEx uint32
	X       int
	Y       int
	Width   int
	Height  int
	Color   types.COLORREF
}

type WkeWindowDestroyCallback

type WkeWindowDestroyCallback uintptr

typedef void(WKE_CALL_TYPE*wkeWindowDestroyCallback)(wkeWebView webWindow, void* param);

type WkeWindowFeatures

type WkeWindowFeatures struct {
	X      int
	Y      int
	Width  int
	Height int

	MenuBarVisible     bool
	StatusBarVisible   bool
	ToolBarVisible     bool
	LocationBarVisible bool
	ScrollbarsVisible  bool
	Resizable          bool
	Fullscreen         bool
}

type WkeWindowType

type WkeWindowType int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL