cef

package
v2.0.0-beta Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 46 Imported by: 3

Documentation

Overview

CEF 二进制类型 BinaryValueRef.New() or Create()

ICefBinaryValue 示例:

Go: 创建并绑定 ICefBinaryValue 对象名称: myobj
JavaScript: let obj = new Uint8Array(window.myobj);
		    console.log(obj)

CEF 回调事件实现

CEF 字典类型 DictionaryValueRef.New()

CefDisplay

CEF下载项

CEF Frame

CEF Image ImageRef.New

CEF 集合类型 ListValueRef.New

PDF 打印回调 PdfPrintCallbackRef.New

CEF PostDataElement PostDataElementRef.New

CEF PostData PostDataRef.New

PDF 打印回调 PdfPrintCallbackRef.New

PDF 打印回调 PdfPrintCallbackRef.New

PDF 打印回调 PdfPrintCallbackRef.New

CEF 进程消息 ProcessMessageRef.New()

cef -> energy 结构指定类型定义

CEF v8 对象字段&值访问器(读取/写入) V8AccessorRef.New()

ICefV8Value

v8 缓存释放时回调 V8ArrayBufferReleaseCallbackRef.New()

CEF V8 上下文

CEF v8 异常

CEF v8 执行函数拦截

CEF v8 对象拦截器 V8InterceptorRef.New

ICefV8Value

TODO 未使用

CEF v8 value V8所有类型

ICefV8Value 创建和使用一搬在 v8context 上下文中使用

CEF Value 所有值类型 ValueRef.New

cef view

cef window

VF窗口组件

基于IPC的字段数据绑定 - 主进程

基于IPC的字段数据绑定 - 渲染(子)进程

基于IPC的字段数据绑定 - 渲染(子)进程

基于IPC的字段数据绑定

energy VF窗口组件

CEFWindowParent组件 Windows

Index

Constants

This section is empty.

Variables

View Source
var AccessibilityHandlerRef accessibilityHandler

AccessibilityHandlerRef -> ICefAccessibilityHandler

View Source
var AudioHandlerRef audioHandler

AudioHandlerRef -> ICefAudioHandler

View Source
var BinaryValueRef cefBinaryValue

BinaryValueRef -> ICefBinaryValue

View Source
var BrowserRef browser

BrowserRef -> ICefBrowser

View Source
var (
	//BrowserWindow 是基于LCL和VF窗口组件的浏览器主窗口
	//  可以对窗口的属性设置和事件监听,Chromium的配置和事件监听.
	//  该窗口是主窗体,因此初始化时必须第一个初始化完成,如果创建子窗口最好在 SetBrowserInitAfter 回调函数中创建
	//  VF 窗口组件默认在Linux平台
	//  LCL窗口组件默认在Windows、MacOSX平台
	BrowserWindow = &browserWindow{
		browserEvent: &BrowserEvent{},
		Config: &browserConfig{
			WindowProperty: NewWindowProperty(),
		},
		windowInfo: make(map[int32]IBrowserWindow),
	}
)
View Source
var CefClientRef cefClient

CefClientRef -> ICefClient

View Source
var CommandHandlerRef commandHandler

CommandHandlerRef -> ICefCommandHandler

View Source
var CommandLineRef commandLine
View Source
var CompletionCallbackRef completionCallback

CompletionCallbackRef -> ICefCompletionCallback

View Source
var ContextMenuHandlerRef contextMenuHandler

ContextMenuHandlerRef -> ICefContextMenuHandler

View Source
var CookieAccessFilterRef cookieAccessFilter

CookieAccessFilterRef -> ICefCookieAccessFilter

View Source
var CookieVisitorRef cookieVisitor

CookieVisitorRef -> ICefCookieVisitor

View Source
var DeleteCookiesHandlerRef deleteCookiesHandler

DeleteCookiesHandlerRef -> ICefDeleteCookiesCallback

View Source
var DialogHandlerRef dialogHandler

DialogHandlerRef -> ICefDialogHandler

View Source
var DictionaryValueRef cefDictionaryValue

DictionaryValueRef -> ICefDictionaryValue

View Source
var DisplayHandlerRef displayHandler

DisplayHandlerRef -> ICefDisplayHandler

View Source
var DomVisitorRef domVisitor

DomVisitorRef -> ICefDomVisitor

View Source
var DownloadHandlerRef downloadHandler

DownloadHandlerRef -> ICefDownloadHandler

View Source
var DownloadItemCallbackRef downloadItemCallback

DownloadItemCallbackRef => ICefDownloadItemCallback

View Source
var DownloadItemRef downloadItem

DownloadItemRef -> ICefDownloadItem

View Source
var DragHandlerRef dragHandler

DragHandlerRef -> ICefDragHandler

View Source
var ExtensionHandlerRef extensionHandler

ExtensionHandlerRef -> TCustomExtensionHandler

View Source
var FindHandlerRef findHandler

FindHandlerRef -> ICefFindHandler

View Source
var FocusHandlerRef focusHandler

FocusHandlerRef -> ICefFocusHandler

View Source
var FrameHandlerRef frameHandler

FrameHandlerRef -> ICefFrameHandler

View Source
var FrameRef frameRef

FrameRef -> *ICefFrame

View Source
var ImageRef image

ImageRef -> ICefImage

View Source
var JsDialogHandlerRef jsDialogHandler

JsDialogHandlerRef -> ICefJsDialogHandler

View Source
var KeyAccelerator = &keyEventAccelerator{
	menuId:            MENU_ID_USER_FIRST,
	commandItems:      make(map[MenuId]*MenuItem),
	acceleratorItems:  make(map[string]*MenuItem),
	acceleratorCustom: make(map[string]*AcceleratorCustom),
}

KeyAccelerator 自定义实现快捷键

View Source
var KeyboardHandlerRef keyboardHandler

KeyboardHandlerRef -> ICefKeyboardHandler

View Source
var LifeSpanHandlerRef lifeSpanHandler

LifeSpanHandlerRef -> ICefLifeSpanHandler

View Source
var ListValueRef listValue

ListValueRef -> ICefListValue

View Source
var LoadHandlerRef loadHandler

LoadHandlerRef -> ICefLoadHandler

View Source
var PdfPrintCallbackRef pdfPrintCallback

PdfPrintCallbackRef -> ICefPdfPrintCallback

View Source
var PermissionHandlerRef permissionHandler

PermissionHandlerRef -> ICefPermissionHandler

View Source
var PostDataElementRef postDataElement

PostDataElementRef -> ICefPostDataElement

View Source
var PostDataRef postData

PostDataRef -> ICefPostData

View Source
var PrintHandlerRef printSpanHandler

PrintHandlerRef -> ICefPrintHandler

View Source
var PrintSettingsRef printSettings

PrintSettingsRef -> ICefPdfPrintCallback

View Source
var ProcessMessageRef processMessage

ProcessMessageRef -> ICefProcessMessage

View Source
var RenderHandlerRef renderSpanHandler

RenderHandlerRef -> ICefPrintHandler

View Source
var RequestContextHandlerRef requestContextHandler

RequestContextHandlerRef -> ICefRequestContextHandler

View Source
var RequestHandlerRef requestHandler

RequestHandlerRef -> ICefRequestHandler

View Source
var RequestRef request

RequestRef -> ICefRequest

View Source
var ResourceHandlerRef resourceHandler

ResourceHandlerRef -> ICefResourceHandler

View Source
var ResourceRequestHandlerRef resourceRequestHandler

ResourceRequestHandlerRef -> ICefResourceRequestHandler

View Source
var ResponseFilterRef responseFilter

ResponseFilterRef -> ICefResourceHandler

View Source
var ResponseRef response

ResponseRef -> ICefResponse

View Source
var SchemeHandlerFactoryRef schemeHandlerFactory

SchemeHandlerFactoryRef -> ICefSchemeHandlerFactory

View Source
var SetCookieHandlerRef setCookieHandler

SetCookieHandlerRef -> ICefSetCookieCallback

View Source
var StreamReaderRef streamReader

StreamReaderRef -> ICefStreamReader

View Source
var StreamWriterRef streamWriter

StreamWriterRef -> ICefStreamWriter

View Source
var StringMultiMapRef stringMultiMap

StringMultiMapRef -> ICefStringMultiMap

View Source
var V8AccessorRef cefV8Accessor

V8AccessorRef -> ICefV8Accessor

View Source
var V8ArrayBufferReleaseCallbackRef cefV8ArrayBufferReleaseCallback

V8ArrayBufferReleaseCallbackRef -> ICefV8ArrayBufferReleaseCallback

View Source
var V8ContextRef *cefV8ContextRef

V8ContextRef -> ICefV8Context

View Source
var V8HandlerRef cefV8Handler

V8HandlerRef -> ICefV8Handler

View Source
var V8InterceptorRef cefV8Interceptor

V8InterceptorRef -> ICefV8Interceptor

View Source
var V8ValueArrayRef v8ValueArray

V8ValueArrayRef -> TCefV8ValueArray

View Source
var V8ValueRef cefV8Value

V8ValueRef -> ICefV8Value

View Source
var ValueConvert v8ValueProcessMessageConvert

ValueConvert

View Source
var ValueRef cefValue

ValueRef -> ICefValue

Functions

func CEFVersion

func CEFVersion() string

CEFVersion 返回CEF版本

func CheckDLLs

func CheckDLLs(frameworkDirPath string) (missingFiles string, result bool)

func CheckLocales

func CheckLocales(localesDirPath, localesRequired string) (missingFiles string, result bool)

func CheckResources

func CheckResources(resourcesDirPath string) (missingFiles string, result bool)

func CheckSubprocessPath

func CheckSubprocessPath(subprocessPath string) (missingFiles string, result bool)

func ClearSchemeHandlerFactories

func ClearSchemeHandlerFactories() bool

func GetMimeType

func GetMimeType(extension string) string

func GlobalInit

func GlobalInit(libs *embed.FS, resources *embed.FS)

GlobalInit 全局初始化

 需要手动调用的函数,在main函数中调用
	参数:
   libs 内置到应用程序的类库
   resources 内置到应用程序的资源文件
 MacOSX环境, goland、ide等开发环境需配置命令行参数[energy_env=dev]以保证应用正常运行

func LibBuildVersion

func LibBuildVersion() string

LibBuildVersion 返回lib-lcl构建版本

func NewChromiumConfig

func NewChromiumConfig() *tCefChromiumConfig

NewChromiumConfig 创建默认禁用相关功能

func QueueAsyncCall

func QueueAsyncCall(fn qacFn) int

QueueAsyncCall 仅LCL,在主进程中异步调用

在UI主进程中执行, 异步执行

非主进程的多线程操作可使用该函数包裹

在任何变更UI的操作都有可能因非主线程出现不一至, 而出现程序错误或程序崩溃, 可以尝试使用该回调函数解决.

提示: CEF事件或函数中不应使用该函数包裹

func QueueSyncCall

func QueueSyncCall(fn qacFn) int

QueueSyncCall 同 QueueAsyncCall

同步执行 - 阻塞UI

func RegisterExtension

func RegisterExtension(name, code string, handler *ICefV8Handler)

RegisterExtension 注册JS扩展

 将自定义JS代码植入到当前浏览器
	在 WebKitInitialized 回调函数中使用
	参数:
		name: 根对象名, 不允许使用默认的内部名称, 参阅 isInternalBind 函数
		code: js code
		handler: 处理器, 根据本地函数名回调该处理器

func RegisterSchemeHandlerFactory

func RegisterSchemeHandlerFactory(schemeName, domainName string, handler TCefResourceHandlerClass) bool

func Run

func Run(app *TCEFApplication)

Run 运行应用

在这里启动浏览器的主进程和子进程

func SetBindName

func SetBindName(name string)

SetBindName 设置自定义绑定根对象名

func SetBrowserProcessStartAfterCallback

func SetBrowserProcessStartAfterCallback(callback browserProcessStartAfterCallbackFunc)

SetBrowserProcessStartAfterCallback 主进程启动之后回调函数

func SetOnException

func SetOnException(exception ExceptionCallback)

SetOnException 设置 lib-lcl -> CEF 低层异常捕获回调函数

func WindowInfoAsChild

func WindowInfoAsChild(windowInfo, windowHandle uintptr, windowName string)

WindowInfoAsChild BrowserWindow 设置到指定窗口做为子窗口

func WindowInfoAsPopUp

func WindowInfoAsPopUp(windowInfo, windowParent uintptr, windowName string)

WindowInfoAsPopUp BrowserWindow 设置到做为弹出窗口

func WindowInfoAsWindowless

func WindowInfoAsWindowless(windowInfo, windowParent uintptr, windowName string)

WindowInfoAsWindowless BrowserWindow 设置到做为无窗口

Types

type AcceleratorCustom

type AcceleratorCustom struct {
	Accelerator string
	KeyType     int
	Callback    KeyEventCallback
}

type BaseWinControl

type BaseWinControl struct {
	lcl.IWinControl
	// contains filtered or unexported fields
}

BaseWinControl TCEFWindowParent 和 TCEFLinkedWindowParent 父结构体

func (*BaseWinControl) Instance

func (m *BaseWinControl) Instance() uintptr

Instance 当前实例

func (*BaseWinControl) IsValid

func (m *BaseWinControl) IsValid() bool

IsValid 是否有效

type BeforePopupInfo

type BeforePopupInfo struct {
	TargetUrl         string
	TargetFrameName   string
	TargetDisposition TCefWindowOpenDisposition
	UserGesture       bool
}

BeforePopupInfo 弹出子窗口信息

type BrowseProcessMessageReceived

type BrowseProcessMessageReceived func(sender lcl.IObject, browser *ICefBrowser, frame *ICefFrame, sourceProcess consts.CefProcessId, message *ICefProcessMessage) bool

type BrowserEvent

type BrowserEvent struct {
	// contains filtered or unexported fields
}

BrowserEvent 浏览器全局事件监听-已被默认实现事件

func (*BrowserEvent) SetOnAddressChange

func (m *BrowserEvent) SetOnAddressChange(event chromiumEventOnAddressChange)

BrowserEvent.SetOnAddressChange

func (*BrowserEvent) SetOnAfterCreated

func (m *BrowserEvent) SetOnAfterCreated(event chromiumEventOnAfterCreated)

BrowserEvent.SetOnAfterCreated

func (*BrowserEvent) SetOnBeforeBrowser

func (m *BrowserEvent) SetOnBeforeBrowser(event chromiumEventOnBeforeBrowser)

BrowserEvent.SetOnBeforeBrowser

func (*BrowserEvent) SetOnBeforeClose

func (m *BrowserEvent) SetOnBeforeClose(event chromiumEventOnBeforeClose)

BrowserEvent.SetOnBeforeClose

func (*BrowserEvent) SetOnBeforeContextMenu

func (m *BrowserEvent) SetOnBeforeContextMenu(event chromiumEventOnBeforeContextMenu)

BrowserEvent.SetOnBeforeContextMenu

func (*BrowserEvent) SetOnBeforeDownload

func (m *BrowserEvent) SetOnBeforeDownload(event chromiumEventOnBeforeDownload)

BrowserEvent.SetOnBeforeDownload

func (*BrowserEvent) SetOnBeforePopup

func (m *BrowserEvent) SetOnBeforePopup(event chromiumEventOnBeforePopupForWindowInfo)

BrowserEvent.SetOnBeforePopup

func (*BrowserEvent) SetOnBeforeResourceLoad

func (m *BrowserEvent) SetOnBeforeResourceLoad(event chromiumEventOnBeforeResourceLoad)

BrowserEvent.SetOnBeforeResourceLoad

func (*BrowserEvent) SetOnBrowseProcessMessageReceived

func (m *BrowserEvent) SetOnBrowseProcessMessageReceived(event BrowseProcessMessageReceived)

BrowserEvent.SetOnBrowseProcessMessageReceived

func (*BrowserEvent) SetOnBrowserCompMsg

func (m *BrowserEvent) SetOnBrowserCompMsg(event chromiumEventOnCompMsg)

BrowserEvent.SetOnBrowserCompMsg windows

func (*BrowserEvent) SetOnClose

func (m *BrowserEvent) SetOnClose(event chromiumEventOnClose)

BrowserEvent.SetOnClose

func (*BrowserEvent) SetOnContextMenuCommand

func (m *BrowserEvent) SetOnContextMenuCommand(event chromiumEventOnContextMenuCommand)

BrowserEvent.SetOnContextMenuCommand

func (*BrowserEvent) SetOnContextMenuDismissed

func (m *BrowserEvent) SetOnContextMenuDismissed(event chromiumEventOnContextMenuDismissed)

BrowserEvent.SetOnContextMenuDismissed

func (*BrowserEvent) SetOnCookieSet

func (m *BrowserEvent) SetOnCookieSet(event chromiumEventOnCookieSet)

BrowserEvent.SetOnCookieSet

func (*BrowserEvent) SetOnCookieVisitorDestroyed

func (m *BrowserEvent) SetOnCookieVisitorDestroyed(event chromiumEventOnCookieVisitorDestroyed)

BrowserEvent.SetOnCookieVisitorDestroyed

func (*BrowserEvent) SetOnCookiesDeleted

func (m *BrowserEvent) SetOnCookiesDeleted(event chromiumEventOnCookiesDeleted)

BrowserEvent.SetOnCookiesDeleted

func (*BrowserEvent) SetOnCookiesFlushed

func (m *BrowserEvent) SetOnCookiesFlushed(event chromiumEventOnCookiesFlushed)

BrowserEvent.SetOnCookiesFlushed

func (*BrowserEvent) SetOnCookiesVisited

func (m *BrowserEvent) SetOnCookiesVisited(event chromiumEventOnCookiesVisited)

BrowserEvent.SetOnCookiesVisited

func (*BrowserEvent) SetOnDownloadUpdated

func (m *BrowserEvent) SetOnDownloadUpdated(event chromiumEventOnDownloadUpdated)

BrowserEvent.SetOnDownloadUpdated

func (*BrowserEvent) SetOnDragEnter

func (m *BrowserEvent) SetOnDragEnter(event chromiumEventOnDragEnter)

BrowserEvent.SetOnDragEnter

func (*BrowserEvent) SetOnDraggableRegionsChanged

func (m *BrowserEvent) SetOnDraggableRegionsChanged(event chromiumEventOnDraggableRegionsChanged)

BrowserEvent.SetOnDraggableRegionsChanged

func (*BrowserEvent) SetOnFindResult

func (m *BrowserEvent) SetOnFindResult(event chromiumEventOnFindResult)

BrowserEvent.SetOnFindResult

func (*BrowserEvent) SetOnFrameAttached

func (m *BrowserEvent) SetOnFrameAttached(event chromiumEventOnFrameAttached)

BrowserEvent.SetOnFrameAttached

func (*BrowserEvent) SetOnFrameCreated

func (m *BrowserEvent) SetOnFrameCreated(event chromiumEventOnFrameCreated)

BrowserEvent.SetOnFrameCreated

func (*BrowserEvent) SetOnFrameDetached

func (m *BrowserEvent) SetOnFrameDetached(event chromiumEventOnFrameDetached)

BrowserEvent.SetOnFrameDetached

func (*BrowserEvent) SetOnFullScreenModeChange

func (m *BrowserEvent) SetOnFullScreenModeChange(event chromiumEventOnFullScreenModeChange)

BrowserEvent.SetOnFullScreenModeChange

func (*BrowserEvent) SetOnKeyEvent

func (m *BrowserEvent) SetOnKeyEvent(event chromiumEventOnKeyEvent)

BrowserEvent.SetOnKeyEvent

func (*BrowserEvent) SetOnLoadEnd

func (m *BrowserEvent) SetOnLoadEnd(event chromiumEventOnLoadEnd)

BrowserEvent.SetOnLoadEnd

func (*BrowserEvent) SetOnLoadError

func (m *BrowserEvent) SetOnLoadError(event chromiumEventOnLoadError)

BrowserEvent.SetOnLoadError

func (*BrowserEvent) SetOnLoadStart

func (m *BrowserEvent) SetOnLoadStart(event chromiumEventOnLoadStart)

BrowserEvent.SetOnLoadStart

func (*BrowserEvent) SetOnLoadingProgressChange

func (m *BrowserEvent) SetOnLoadingProgressChange(event chromiumEventOnLoadingProgressChange)

BrowserEvent.SetOnLoadingProgressChange

func (*BrowserEvent) SetOnLoadingStateChange

func (m *BrowserEvent) SetOnLoadingStateChange(event chromiumEventOnLoadingStateChange)

BrowserEvent.SetOnLoadingStateChange

func (*BrowserEvent) SetOnMainFrameChanged

func (m *BrowserEvent) SetOnMainFrameChanged(event chromiumEventOnMainFrameChanged)

BrowserEvent.SetOnMainFrameChanged

func (*BrowserEvent) SetOnPdfPrintFinished

func (m *BrowserEvent) SetOnPdfPrintFinished(event chromiumEventOnPdfPrintFinished)

BrowserEvent.SetOnPdfPrintFinished

func (*BrowserEvent) SetOnRenderCompMsg

func (m *BrowserEvent) SetOnRenderCompMsg(event chromiumEventOnCompMsg)

BrowserEvent.SetOnRenderCompMsg windows

func (*BrowserEvent) SetOnRenderProcessTerminated

func (m *BrowserEvent) SetOnRenderProcessTerminated(event chromiumEventOnRenderProcessTerminated)

BrowserEvent.SetOnRenderProcessTerminated

func (*BrowserEvent) SetOnRenderViewReady

func (m *BrowserEvent) SetOnRenderViewReady(event chromiumEventOnRenderViewReady)

BrowserEvent.SetOnRenderViewReady

func (*BrowserEvent) SetOnResourceLoadComplete

func (m *BrowserEvent) SetOnResourceLoadComplete(event chromiumEventOnResourceLoadComplete)

BrowserEvent.SetOnResourceLoadComplete

func (*BrowserEvent) SetOnResourceRedirect

func (m *BrowserEvent) SetOnResourceRedirect(event chromiumEventOnResourceRedirect)

BrowserEvent.SetOnResourceRedirect

func (*BrowserEvent) SetOnResourceResponse

func (m *BrowserEvent) SetOnResourceResponse(event chromiumEventOnResourceResponse)

BrowserEvent.SetOnResourceResponse

func (*BrowserEvent) SetOnScrollOffsetChanged

func (m *BrowserEvent) SetOnScrollOffsetChanged(event chromiumEventOnScrollOffsetChanged)

BrowserEvent.SetOnScrollOffsetChanged

func (*BrowserEvent) SetOnTitleChange

func (m *BrowserEvent) SetOnTitleChange(event chromiumEventOnTitleChange)

BrowserEvent.SetOnTitleChange

func (*BrowserEvent) SetOnWidgetCompMsg

func (m *BrowserEvent) SetOnWidgetCompMsg(event chromiumEventOnCompMsg)

BrowserEvent.SetOnWidgetCompMsg windows

func (*BrowserEvent) SetOnZoomPctAvailable

func (m *BrowserEvent) SetOnZoomPctAvailable(event chromiumEventOnResultFloat)

BrowserEvent.SetOnZoomPctAvailable

type BrowserViewComponentOnBrowserCreated

type BrowserViewComponentOnBrowserCreated func(sender lcl.IObject, browserView *ICefBrowserView, browser *ICefBrowser)

type BrowserViewComponentOnBrowserDestroyed

type BrowserViewComponentOnBrowserDestroyed func(sender lcl.IObject, browserView *ICefBrowserView, browser *ICefBrowser)

type BrowserViewComponentOnGetChromeToolbarType

type BrowserViewComponentOnGetChromeToolbarType func(sender lcl.IObject, aResult *consts.TCefChromeToolbarType)

type BrowserViewComponentOnGetDelegateForPopupBrowserView

type BrowserViewComponentOnGetDelegateForPopupBrowserView func(sender lcl.IObject, browserView *ICefBrowserView, browserSettings *TCefBrowserSettings, client *ICefClient, isDevtools bool, aResult *ICefBrowserViewDelegate)

type BrowserViewComponentOnPopupBrowserViewCreated

type BrowserViewComponentOnPopupBrowserViewCreated func(sender lcl.IObject, browserView, popupBrowserView *ICefBrowserView, isDevtools bool, aResult *bool)

type CEFTray

type CEFTray struct {
	*lcl.TForm
	// contains filtered or unexported fields
}

CEFTray CEF基于LCL组件+html 托盘

type CefPdfPrintSettings

type CefPdfPrintSettings struct {
	Landscape           int32                  // Integer
	PrintBackground     int32                  // Integer
	Scale               float64                // double
	PaperWidth          float64                // double
	PaperHeight         float64                // double
	PreferCssPageSize   int32                  // Integer
	MarginType          TCefPdfPrintMarginType // TCefPdfPrintMarginType
	MarginTop           float64                // double
	MarginRight         float64                // double
	MarginBottom        float64                // double
	MarginLeft          float64                // double
	PageRanges          string                 // TCefString
	DisplayHeaderFooter int32                  // Integer
	HeaderTemplate      string                 // TCefString
	FooterTemplate      string                 // TCefString
}

func (*CefPdfPrintSettings) ToPtr

func (m *CefPdfPrintSettings) ToPtr() *cefPdfPrintSettingsPtr

type CompletionOnComplete

type CompletionOnComplete func()

type ExceptionCallback

type ExceptionCallback func(sender lcl.IObject, e *lcl.Exception)

ExceptionCallback 异常回调函数

type FrameNames

type FrameNames struct {
	Name  string
	Value string
}

type FuncCallback

type FuncCallback func(browser *ICefBrowser, commandId MenuId, params *ICefContextMenuParams, menuType TCefContextMenuType, eventFlags uint32, result *bool)

type GlobalCEFAppEventOnBeforeChildProcessLaunch

type GlobalCEFAppEventOnBeforeChildProcessLaunch func(commandLine *ICefCommandLine)

type GlobalCEFAppEventOnBrowserCreated

type GlobalCEFAppEventOnBrowserCreated func(browser *ICefBrowser, extraInfo *ICefDictionaryValue)

type GlobalCEFAppEventOnBrowserDestroyed

type GlobalCEFAppEventOnBrowserDestroyed func(browser *ICefBrowser)

type GlobalCEFAppEventOnContextCreated

type GlobalCEFAppEventOnContextCreated func(browser *ICefBrowser, frame *ICefFrame, context *ICefV8Context) bool

type GlobalCEFAppEventOnContextInitialized

type GlobalCEFAppEventOnContextInitialized func()

type GlobalCEFAppEventOnContextReleased

type GlobalCEFAppEventOnContextReleased func(browser *ICefBrowser, frame *ICefFrame, context *ICefV8Context)

type GlobalCEFAppEventOnFocusedNodeChanged

type GlobalCEFAppEventOnFocusedNodeChanged func(browser *ICefBrowser, frame *ICefFrame, node *ICefDomNode)

type GlobalCEFAppEventOnGetDataResource

type GlobalCEFAppEventOnGetDataResource func(resourceId int32, data *ResultBytes, aResult *ResultBool)

type GlobalCEFAppEventOnGetDataResourceForScale

type GlobalCEFAppEventOnGetDataResourceForScale func(resourceId int32, scaleFactor consts.TCefScaleFactor, data *ResultBytes, aResult *ResultBool)

type GlobalCEFAppEventOnGetDefaultClient

type GlobalCEFAppEventOnGetDefaultClient func(client *ICefClient)

type GlobalCEFAppEventOnGetLocalizedString

type GlobalCEFAppEventOnGetLocalizedString func(stringId int32, stringVal *ResultString, aResult *ResultBool)

type GlobalCEFAppEventOnRegCustomSchemes

type GlobalCEFAppEventOnRegCustomSchemes func(registrar *TCefSchemeRegistrarRef)

type GlobalCEFAppEventOnRegisterCustomPreferences

type GlobalCEFAppEventOnRegisterCustomPreferences func(type_ consts.TCefPreferencesType, registrar *TCefPreferenceRegistrarRef)

type GlobalCEFAppEventOnRenderLoadEnd

type GlobalCEFAppEventOnRenderLoadEnd func(browser *ICefBrowser, frame *ICefFrame, httpStatusCode int32)

type GlobalCEFAppEventOnRenderLoadError

type GlobalCEFAppEventOnRenderLoadError func(browser *ICefBrowser, frame *ICefFrame, errorCode consts.TCefErrorCode, errorText, failedUrl string)

type GlobalCEFAppEventOnRenderLoadStart

type GlobalCEFAppEventOnRenderLoadStart func(browser *ICefBrowser, frame *ICefFrame, transitionType consts.TCefTransitionType)

type GlobalCEFAppEventOnRenderLoadingStateChange

type GlobalCEFAppEventOnRenderLoadingStateChange func(browser *ICefBrowser, frame *ICefFrame, isLoading, canGoBack, canGoForward bool)

type GlobalCEFAppEventOnUncaughtException

type GlobalCEFAppEventOnUncaughtException func(browser *ICefBrowser, frame *ICefFrame, context *ICefV8Context, exception *ICefV8Exception, stackTrace *ICefV8StackTrace)

type GlobalCEFAppEventOnWebKitInitialized

type GlobalCEFAppEventOnWebKitInitialized func()

type IBrowserWindow

type IBrowserWindow interface {
	Id() int32                                                   //窗口ID
	Handle() types.HWND                                          //窗口句柄
	Show()                                                       //显示窗口
	Hide()                                                       //隐藏窗口
	WindowState() types.TWindowState                             //返回窗口最小化、最大化、全屏状态
	Maximize()                                                   //窗口最大化
	Minimize()                                                   //窗口最小化
	Restore()                                                    //窗口还原
	Close()                                                      //关闭窗口 非browser窗口使用
	CloseBrowserWindow()                                         //关闭浏览器窗口 带有browser窗口使用
	WindowType() consts.WINDOW_TYPE                              //窗口类型
	SetWindowType(windowType consts.WINDOW_TYPE)                 //设置窗口类型
	Browser() *ICefBrowser                                       //窗口内的Browser对象
	Chromium() IChromium                                         //窗口内的Chromium对象
	DisableMaximize()                                            //禁用最大化
	DisableMinimize()                                            //禁用最小化
	DisableResize()                                              //禁用窗口大小调整
	EnableMaximize()                                             //启用最大化
	EnableMinimize()                                             //启用最小化
	EnableResize()                                               //启用允许调整窗口大小
	IsClosing() bool                                             //返回窗口是否正在关闭/或已关闭 true正在或已关闭
	AsViewsFrameworkBrowserWindow() IViewsFrameworkBrowserWindow //转换为ViewsFramework窗口接口, 失败返回nil
	AsLCLBrowserWindow() ILCLBrowserWindow                       //转换为LCL窗口接口, 失败返回nil
	EnableAllDefaultEvent()                                      //启用所有默认事件
	SetTitle(title string)                                       //设置窗口标题栏标题
	IsViewsFramework() bool                                      //是否为 IViewsFrameworkBrowserWindow 窗口,失败返回false
	IsLCL() bool                                                 //是否为 ILCLBrowserWindow 窗口,失败返回false
	WindowProperty() *WindowProperty                             //窗口常用属性
	SetWidth(value int32)                                        //设置窗口宽
	SetHeight(value int32)                                       //设置窗口高
	Point() *TCefPoint                                           //窗口坐标
	Size() *TCefSize                                             //窗口宽高
	Bounds() *TCefRect                                           //窗口坐标和宽高
	SetPoint(x, y int32)                                         //设置窗口坐标
	SetSize(width, height int32)                                 //设置窗口宽高
	SetBounds(x, y, width, height int32)                         //设置窗口坐标和宽高
	SetCenterWindow(value bool)                                  //设置窗口居中
	ShowTitle()                                                  //显示窗口标题栏
	HideTitle()                                                  //隐藏窗口标题栏
	SetDefaultInTaskBar()                                        //默认窗口在任务栏上显示按钮
	SetShowInTaskBar()                                           //强制窗口在任务栏上显示按钮
	SetNotInTaskBar()                                            //强制窗口不在任务栏上显示按钮
	NewCefTray(width, height int32, url string) ITray            //仅支持windows托盘LCL+[CEF|VF](使用web端技术自定义实现,如使用LCL窗口组件该托盘实现是LCL+CEF,如使用VF窗口组件该托盘实现是LCL+VF)
	NewSysTray() ITray                                           //systray系统原生
}

IBrowserWindow 浏览器窗口基础接口

定义了常用函数

type ICEFChromiumBrowser

type ICEFChromiumBrowser interface {
	CreateBrowser()                 // 创建浏览器
	Chromium() IChromium            // 返回 chromium
	WindowParent() ICEFWindowParent // 返回 chromium window 组件
	IsCreated() bool                // 创建浏览器是否成功
}

ICEFChromiumBrowser

CEFChromium浏览器接口

func NewChromiumBrowser

func NewChromiumBrowser(owner lcl.IWinControl, config *tCefChromiumConfig) ICEFChromiumBrowser

NewChromiumBrowser

初始创建一个 chromium 浏览器

type ICEFWindowParent

type ICEFWindowParent interface {
	lcl.IWinControl
	Instance() uintptr
	Type() consts.TCefWindowHandleType         // 组件类型, Windows TCEFWindowParent 组件,MacOSX, Linux TCEFLinkedWindowParent 组件
	SetChromium(chromium IChromium, tag int32) // 设置 IChromium, 只 TCEFLinkedWindowParent 有效
	UpdateSize()                               // 更新组件大小
	HandleAllocated() bool                     // 处理所有
	CreateHandle()                             // 创建句柄
	SetOnEnter(fn lcl.TNotifyEvent)            // 进入事件
	SetOnExit(fn lcl.TNotifyEvent)             // 退出事件
	DestroyChildWindow() bool                  // 销毁子窗口
	Free()                                     // 释放
	Handle() types.HWND                        // 组件句柄
	Name() string                              // 获取组件名称
	SetName(value string)                      // 设置组件名称
	SetParent(value lcl.IWinControl)           // 设置控件父容器
	RevertCustomAnchors()                      // 恢复到自定义四角锚点定位
	DefaultAnchors()                           // 恢复到默认四角锚点定位
	Align() types.TAlign                       // 获取控件自动调整
	SetAlign(value types.TAlign)               // 设置控件自动调整
	Anchors() types.TAnchors                   // 获取四个角位置的锚点
	SetAnchors(value types.TAnchors)           // 设置四个角位置的锚点
	Visible() bool                             // 获取控件可视
	SetVisible(value bool)                     // 设置控件可视
	Enabled() bool                             // 获取是否启用
	SetEnabled(value bool)                     // 设置是否启用
	Left() int32                               // 获取左边距
	SetLeft(value int32)                       // 设置左边距
	Top() int32                                // 获取上边距
	SetTop(value int32)                        // 设置上边距
	Width() int32                              // 获取宽度
	SetWidth(value int32)                      // 设置宽度
	Height() int32                             // 获取高度
	SetHeight(value int32)                     // 设置高度
	BoundsRect() (result types.TRect)          // 获取矩形边界
	SetBoundsRect(value types.TRect)           // 设置矩形边界
	// contains filtered or unexported methods
}

ICEFWindowParent 接口定义

func NewCEFWindow

func NewCEFWindow(owner lcl.IComponent) ICEFWindowParent

NewCEFWindow 创建CEFWindowParent

Windows return TCEFWindowParent

MacOSX, Linux return TCEFLinkedWindowParent

type ICefAccessibilityHandler

type ICefAccessibilityHandler struct {
	// contains filtered or unexported fields
}

ICefAccessibilityHandler

/include/capi/cef_accessibility_handler_capi.h (cef_accessibility_handler_t)

func (*ICefAccessibilityHandler) Free

func (m *ICefAccessibilityHandler) Free()

func (*ICefAccessibilityHandler) Instance

func (m *ICefAccessibilityHandler) Instance() uintptr

Instance 实例

func (*ICefAccessibilityHandler) IsValid

func (m *ICefAccessibilityHandler) IsValid() bool

func (*ICefAccessibilityHandler) SetOnAccessibilityLocationChange

func (m *ICefAccessibilityHandler) SetOnAccessibilityLocationChange(fn onAccessibilityLocationChange)

func (*ICefAccessibilityHandler) SetOnAccessibilityTreeChange

func (m *ICefAccessibilityHandler) SetOnAccessibilityTreeChange(fn onAccessibilityTreeChange)

type ICefAudioHandler

type ICefAudioHandler struct {
	// contains filtered or unexported fields
}

ICefAudioHandler

func (*ICefAudioHandler) Free

func (m *ICefAudioHandler) Free()

func (*ICefAudioHandler) Instance

func (m *ICefAudioHandler) Instance() uintptr

Instance 实例

func (*ICefAudioHandler) IsValid

func (m *ICefAudioHandler) IsValid() bool

func (*ICefAudioHandler) SetOnAudioStreamError

func (m *ICefAudioHandler) SetOnAudioStreamError(fn onAudioStreamError)

func (*ICefAudioHandler) SetOnAudioStreamPacket

func (m *ICefAudioHandler) SetOnAudioStreamPacket(fn onAudioStreamPacket)

func (*ICefAudioHandler) SetOnAudioStreamStarted

func (m *ICefAudioHandler) SetOnAudioStreamStarted(fn onAudioStreamStarted)

func (*ICefAudioHandler) SetOnAudioStreamStopped

func (m *ICefAudioHandler) SetOnAudioStreamStopped(fn onAudioStreamStopped)

func (*ICefAudioHandler) SetOnGetAudioParameters

func (m *ICefAudioHandler) SetOnGetAudioParameters(fn onGetAudioParameters)

type ICefAuthCallback

type ICefAuthCallback struct {
	// contains filtered or unexported fields
}

ICefAuthCallback 授权回调

func (*ICefAuthCallback) Cancel

func (m *ICefAuthCallback) Cancel()

func (*ICefAuthCallback) Cont

func (m *ICefAuthCallback) Cont(username, password string)

func (*ICefAuthCallback) Free

func (m *ICefAuthCallback) Free()

func (*ICefAuthCallback) Instance

func (m *ICefAuthCallback) Instance() uintptr

Instance 实例

func (*ICefAuthCallback) IsValid

func (m *ICefAuthCallback) IsValid() bool

type ICefBaseRefCounted

type ICefBaseRefCounted interface {
	Instance() uintptr
	IsValid() bool
}

type ICefBeforeDownloadCallback

type ICefBeforeDownloadCallback struct {
	// contains filtered or unexported fields
}

ICefBeforeDownloadCallback

下载之前回调

func (*ICefBeforeDownloadCallback) Cont

func (m *ICefBeforeDownloadCallback) Cont(downloadPath string, showDialog bool)

Cont 设置下载目录 仅在回调函数中使用

downloadPath 设置完整的下载目录, 包含文件名

showDialog 弹出保存目录窗口

func (*ICefBeforeDownloadCallback) Free

func (m *ICefBeforeDownloadCallback) Free()

func (*ICefBeforeDownloadCallback) Instance

func (m *ICefBeforeDownloadCallback) Instance() uintptr

func (*ICefBeforeDownloadCallback) IsValid

func (m *ICefBeforeDownloadCallback) IsValid() bool

type ICefBinaryValue

type ICefBinaryValue struct {
	// contains filtered or unexported fields
}

ICefBinaryValue -> ArgumentList

func (*ICefBinaryValue) Copy

func (m *ICefBinaryValue) Copy() *ICefBinaryValue

func (*ICefBinaryValue) Free

func (m *ICefBinaryValue) Free()

func (*ICefBinaryValue) GetData

func (m *ICefBinaryValue) GetData(buffer []byte, dataOffset uint32) uint32

func (*ICefBinaryValue) GetSize

func (m *ICefBinaryValue) GetSize() uint32

func (*ICefBinaryValue) Instance

func (m *ICefBinaryValue) Instance() uintptr

Instance 实例

func (*ICefBinaryValue) IsOwned

func (m *ICefBinaryValue) IsOwned() bool

func (*ICefBinaryValue) IsValid

func (m *ICefBinaryValue) IsValid() bool

type ICefBrowser

type ICefBrowser struct {
	// contains filtered or unexported fields
}

ICefBrowser

func (*ICefBrowser) BrowserId

func (m *ICefBrowser) BrowserId() int32

BrowserId 获取浏览器ID 每一个窗口唯一ID

func (*ICefBrowser) CanGoBack

func (m *ICefBrowser) CanGoBack() bool

CanGoBack 是否允许后退

func (*ICefBrowser) CanGoForward

func (m *ICefBrowser) CanGoForward() bool

CanGoForward 是否允许前进

func (*ICefBrowser) CloseBrowser

func (m *ICefBrowser) CloseBrowser(forceClose bool)

CloseBrowser 关闭浏览器,同时关闭窗口

func (*ICefBrowser) CloseDevTools

func (m *ICefBrowser) CloseDevTools()

CloseDevTools 关闭开发者工具

func (*ICefBrowser) DownloadImage

func (m *ICefBrowser) DownloadImage(imageUrl string, isFavicon bool, maxImageSize int32, bypassCache bool)

DownloadImage 开始下载图片

func (*ICefBrowser) ExecuteDevToolsMethod

func (m *ICefBrowser) ExecuteDevToolsMethod(messageId int32, method string, dictionaryValue *ICefDictionaryValue)

ExecuteDevToolsMethod 执行开发者工具方法

func (*ICefBrowser) Find

func (m *ICefBrowser) Find(searchText string, forward, matchCase, findNext bool)

Find 检索页面文本

func (*ICefBrowser) FrameCount

func (m *ICefBrowser) FrameCount() int

FrameCount 获取当前窗口Frame数量

func (*ICefBrowser) FrameId

func (m *ICefBrowser) FrameId() int64

FrameId 获取FrameID 一个窗口中可以有多Frame

func (*ICefBrowser) Free

func (m *ICefBrowser) Free()

func (*ICefBrowser) GetFocusedFrame

func (m *ICefBrowser) GetFocusedFrame() *ICefFrame

GetFocusedFrame 获取当前窗口有焦点的Frame

func (*ICefBrowser) GetFrameById

func (m *ICefBrowser) GetFrameById(frameId int64) *ICefFrame

GetFrameById 根据FrameId获取Frame对象

func (*ICefBrowser) GetFrameByName

func (m *ICefBrowser) GetFrameByName(frameName string) *ICefFrame

GetFrameByName 根据FrameName获取Frame对象

func (*ICefBrowser) GetFrameNames

func (m *ICefBrowser) GetFrameNames() []*FrameNames

GetFrameNames 获取当前窗口所有Frame名称

func (*ICefBrowser) GetRequestContext

func (m *ICefBrowser) GetRequestContext() *ICefRequestContext

GetRequestContext -> ICefBrowserHost -> ICefRequestContext

func (*ICefBrowser) GetZoomLevel

func (m *ICefBrowser) GetZoomLevel() (result float64)

GetZoomLevel 获取缩放级别

func (*ICefBrowser) GoBack

func (m *ICefBrowser) GoBack()

GoBack 历史-后退

func (*ICefBrowser) GoForward

func (m *ICefBrowser) GoForward()

GoForward 历史-前进

func (*ICefBrowser) HasDevTools

func (m *ICefBrowser) HasDevTools() bool

HasDevTools

func (*ICefBrowser) HasView

func (m *ICefBrowser) HasView() bool

HasDevTools

func (*ICefBrowser) HostWindowHandle

func (m *ICefBrowser) HostWindowHandle() types.HWND

HostWindowHandle 获取窗口句柄, Browser窗口句柄

func (*ICefBrowser) Identifier

func (m *ICefBrowser) Identifier() int32

Identifier ICefBrowser ID

func (*ICefBrowser) Instance

func (m *ICefBrowser) Instance() uintptr

Instance 实例

func (*ICefBrowser) IsAudioMuted

func (m *ICefBrowser) IsAudioMuted() bool

IsAudioMuted

func (*ICefBrowser) IsLoading

func (m *ICefBrowser) IsLoading() bool

IsLoading 是否正在加载

func (*ICefBrowser) IsValid

func (m *ICefBrowser) IsValid() bool

func (*ICefBrowser) MainFrame

func (m *ICefBrowser) MainFrame() *ICefFrame

MainFrame 获取当前窗口的主Frame

func (*ICefBrowser) NotifyMoveOrResizeStarted

func (m *ICefBrowser) NotifyMoveOrResizeStarted()

NotifyMoveOrResizeStarted 通用移动或大小开始

func (*ICefBrowser) NotifyScreenInfoChanged

func (m *ICefBrowser) NotifyScreenInfoChanged()

NotifyScreenInfoChanged 通知屏幕改变

func (*ICefBrowser) Print

func (m *ICefBrowser) Print()

Print

func (*ICefBrowser) PrintToPdf

func (m *ICefBrowser) PrintToPdf(path string, settings *CefPdfPrintSettings, callback *ICefPdfPrintCallback)

PrintToPdf

func (*ICefBrowser) Reload

func (m *ICefBrowser) Reload()

Reload 重新加载

func (*ICefBrowser) ReloadIgnoreCache

func (m *ICefBrowser) ReloadIgnoreCache()

ReloadIgnoreCache 重新加载忽略缓存

func (*ICefBrowser) RunFileDialog

func (m *ICefBrowser) RunFileDialog(mode int32, title, defaultFilePath string, acceptFilters *lcl.TStrings)

RunFileDialog 运行文件选择窗口, 可配合在下载文件事件中使用

func (*ICefBrowser) SendCaptureLostEvent

func (m *ICefBrowser) SendCaptureLostEvent()

SendCaptureLostEvent 发送失去标题事件

func (*ICefBrowser) SendDevToolsMessage

func (m *ICefBrowser) SendDevToolsMessage(message string)

SendDevToolsMessage 发送开发者工具消息

func (*ICefBrowser) SendKeyEvent

func (m *ICefBrowser) SendKeyEvent(event *TCefKeyEvent)

SendKeyEvent 发送模拟键盘事件

func (*ICefBrowser) SendMouseClickEvent

func (m *ICefBrowser) SendMouseClickEvent(event *TCefMouseEvent, type_ TCefMouseButtonType, mouseUp bool, clickCount int32)

SendMouseClickEvent 发送鼠标点击事件

func (*ICefBrowser) SendMouseMoveEvent

func (m *ICefBrowser) SendMouseMoveEvent(event *TCefMouseEvent, mouseLeave bool)

SendMouseMoveEvent 发送鼠标移动事件

func (*ICefBrowser) SendMouseWheelEvent

func (m *ICefBrowser) SendMouseWheelEvent(event *TCefMouseEvent, deltaX, deltaY int32)

SendMouseWheelEvent 发送鼠标滚轮事件

func (*ICefBrowser) SendTouchEvent

func (m *ICefBrowser) SendTouchEvent(event *TCefTouchEvent)

SendTouchEvent 发送触摸事件

func (*ICefBrowser) SetAccessibilityState

func (m *ICefBrowser) SetAccessibilityState(accessibilityState TCefState)

SetAccessibilityState 设置可访问性状态

func (*ICefBrowser) SetAudioMuted

func (m *ICefBrowser) SetAudioMuted(mute bool)

SetAudioMuted

func (*ICefBrowser) SetAutoResizeEnabled

func (m *ICefBrowser) SetAutoResizeEnabled(enabled bool, minSize, maxSize *TCefSize)

SetAutoResizeEnabled 设置启用自动调整大小

func (*ICefBrowser) SetFocus

func (m *ICefBrowser) SetFocus(focus bool)

SetFocus 设置焦点

func (*ICefBrowser) SetZoomLevel

func (m *ICefBrowser) SetZoomLevel(zoomLevel float64)

SetZoomLevel 设置缩放级别

func (*ICefBrowser) ShowDevTools

func (m *ICefBrowser) ShowDevTools()

ShowDevTools 显示开发者工具

func (*ICefBrowser) StartDownload

func (m *ICefBrowser) StartDownload(url string)

StartDownload 开始下载

func (*ICefBrowser) StopFinding

func (m *ICefBrowser) StopFinding(clearSelection bool)

StopFinding 停止加载

func (*ICefBrowser) StopLoad

func (m *ICefBrowser) StopLoad()

StopLoad 停止加载

func (*ICefBrowser) Target

func (m *ICefBrowser) Target(targetType ...target.Type) target.ITarget

Target

IPC消息接收目标, 当前窗口
参数: targetType 可选, 接收类型

func (*ICefBrowser) TryCloseBrowser

func (m *ICefBrowser) TryCloseBrowser() bool

TryCloseBrowser 尝试关闭浏览器,同时尝试关闭窗口

func (*ICefBrowser) ViewSource

func (m *ICefBrowser) ViewSource()

ViewSource 显示网页源码

type ICefBrowserView

type ICefBrowserView struct {
	// contains filtered or unexported fields
}

ICefBrowserView

func (*ICefBrowserView) Browser

func (m *ICefBrowserView) Browser() *ICefBrowser

func (*ICefBrowserView) ChromeToolbar

func (m *ICefBrowserView) ChromeToolbar() *ICefView

func (*ICefBrowserView) Instance

func (m *ICefBrowserView) Instance() uintptr

func (*ICefBrowserView) SetPreferAccelerators

func (m *ICefBrowserView) SetPreferAccelerators(preferAccelerators bool)

type ICefBrowserViewDelegate

type ICefBrowserViewDelegate struct {
	// contains filtered or unexported fields
}

ICefBrowserViewDelegate TODO 未实现

type ICefCallback

type ICefCallback struct {
	// contains filtered or unexported fields
}

ICefCallback

func (*ICefCallback) Cancel

func (m *ICefCallback) Cancel()

Cancel 取消执行

func (*ICefCallback) Cont

func (m *ICefCallback) Cont()

Cont 继续执行

func (*ICefCallback) Free

func (m *ICefCallback) Free()

func (*ICefCallback) Instance

func (m *ICefCallback) Instance() uintptr

Instance 实例

func (*ICefCallback) IsValid

func (m *ICefCallback) IsValid() bool

type ICefClient

type ICefClient struct {
	// contains filtered or unexported fields
}

ICefClient

func (*ICefClient) Free

func (m *ICefClient) Free()

func (*ICefClient) GetAudioHandler

func (m *ICefClient) GetAudioHandler() *ICefAudioHandler

func (*ICefClient) GetCommandHandler

func (m *ICefClient) GetCommandHandler() *ICefCommandHandler

func (*ICefClient) GetContextMenuHandler

func (m *ICefClient) GetContextMenuHandler() *ICefContextMenuHandler

func (*ICefClient) GetDialogHandler

func (m *ICefClient) GetDialogHandler() *ICefDialogHandler

func (*ICefClient) GetDisplayHandler

func (m *ICefClient) GetDisplayHandler() *ICefDisplayHandler

func (*ICefClient) GetDownloadHandler

func (m *ICefClient) GetDownloadHandler() *ICefDownloadHandler

func (*ICefClient) GetDragHandler

func (m *ICefClient) GetDragHandler() *ICefDragHandler

func (*ICefClient) GetFindHandler

func (m *ICefClient) GetFindHandler() *ICefFindHandler

func (*ICefClient) GetFocusHandler

func (m *ICefClient) GetFocusHandler() *ICefFocusHandler

func (*ICefClient) GetFrameHandler

func (m *ICefClient) GetFrameHandler() *ICefFrameHandler

func (*ICefClient) GetJsdialogHandler

func (m *ICefClient) GetJsdialogHandler() *ICefJsDialogHandler

func (*ICefClient) GetKeyboardHandler

func (m *ICefClient) GetKeyboardHandler() *ICefKeyboardHandler

func (*ICefClient) GetLifeSpanHandler

func (m *ICefClient) GetLifeSpanHandler() *ICefLifeSpanHandler

func (*ICefClient) GetLoadHandler

func (m *ICefClient) GetLoadHandler() *ICefLoadHandler

func (*ICefClient) GetPermissionHandler

func (m *ICefClient) GetPermissionHandler() *ICefPermissionHandler

func (*ICefClient) GetPrintHandler

func (m *ICefClient) GetPrintHandler() *ICefPrintHandler

func (*ICefClient) GetRenderHandler

func (m *ICefClient) GetRenderHandler() *ICefRenderHandler

func (*ICefClient) GetRequestHandler

func (m *ICefClient) GetRequestHandler() *ICefRequestHandler

func (*ICefClient) Instance

func (m *ICefClient) Instance() uintptr

Instance 实例

func (*ICefClient) IsChromiumEvent

func (m *ICefClient) IsChromiumEvent() bool

func (*ICefClient) IsTClientEvent

func (m *ICefClient) IsTClientEvent() bool

func (*ICefClient) IsValid

func (m *ICefClient) IsValid() bool

func (*ICefClient) SetClient

func (m *ICefClient) SetClient(newClient *ICefClient)

type ICefCommandHandler

type ICefCommandHandler struct {
	// contains filtered or unexported fields
}

ICefCommandHandler

func (*ICefCommandHandler) Free

func (m *ICefCommandHandler) Free()

func (*ICefCommandHandler) Instance

func (m *ICefCommandHandler) Instance() uintptr

Instance 实例

func (*ICefCommandHandler) IsValid

func (m *ICefCommandHandler) IsValid() bool

func (*ICefCommandHandler) SetOnChromeCommand

func (m *ICefCommandHandler) SetOnChromeCommand(fn onChromeCommand)

type ICefCommandLine

type ICefCommandLine struct {
	// contains filtered or unexported fields
}

ICefCommandLine

func (*ICefCommandLine) AppendArgument

func (m *ICefCommandLine) AppendArgument(argument string)

func (*ICefCommandLine) AppendSwitch

func (m *ICefCommandLine) AppendSwitch(name string)

func (*ICefCommandLine) AppendSwitchWithValue

func (m *ICefCommandLine) AppendSwitchWithValue(name, value string)

func (*ICefCommandLine) Copy

func (m *ICefCommandLine) Copy() *ICefCommandLine

func (*ICefCommandLine) Free

func (m *ICefCommandLine) Free()

func (*ICefCommandLine) GetArguments

func (m *ICefCommandLine) GetArguments() *lcl.TStrings

func (*ICefCommandLine) GetArgv

func (m *ICefCommandLine) GetArgv() *lcl.TStrings

func (*ICefCommandLine) GetCommandLineString

func (m *ICefCommandLine) GetCommandLineString() string

func (*ICefCommandLine) GetProgram

func (m *ICefCommandLine) GetProgram() string

func (*ICefCommandLine) GetSwitchValue

func (m *ICefCommandLine) GetSwitchValue(name string) string

func (*ICefCommandLine) GetSwitches

func (m *ICefCommandLine) GetSwitches() *lcl.TStrings

func (*ICefCommandLine) GetSwitchesList

func (m *ICefCommandLine) GetSwitchesList() (*lcl.TStrings, *lcl.TStrings)

func (*ICefCommandLine) HasArguments

func (m *ICefCommandLine) HasArguments() bool

func (*ICefCommandLine) HasSwitch

func (m *ICefCommandLine) HasSwitch(name string) bool

func (*ICefCommandLine) HasSwitches

func (m *ICefCommandLine) HasSwitches() bool

func (*ICefCommandLine) InitFromArgv

func (m *ICefCommandLine) InitFromArgv(argc int32, argv string)

func (*ICefCommandLine) InitFromString

func (m *ICefCommandLine) InitFromString(commandLine string)

func (*ICefCommandLine) Instance

func (m *ICefCommandLine) Instance() uintptr

func (*ICefCommandLine) IsReadOnly

func (m *ICefCommandLine) IsReadOnly() bool

func (*ICefCommandLine) IsValid

func (m *ICefCommandLine) IsValid() bool

func (*ICefCommandLine) PrependWrapper

func (m *ICefCommandLine) PrependWrapper(wrapper string)

func (*ICefCommandLine) Reset

func (m *ICefCommandLine) Reset()

func (*ICefCommandLine) SetProgram

func (m *ICefCommandLine) SetProgram(prog string)

type ICefCompletionCallback

type ICefCompletionCallback struct {
	// contains filtered or unexported fields
}

ICefCompletionCallback

func (*ICefCompletionCallback) Free

func (m *ICefCompletionCallback) Free()

func (*ICefCompletionCallback) Instance

func (m *ICefCompletionCallback) Instance() uintptr

Instance 实例

func (*ICefCompletionCallback) IsValid

func (m *ICefCompletionCallback) IsValid() bool

func (*ICefCompletionCallback) SetOnComplete

func (m *ICefCompletionCallback) SetOnComplete(fn CompletionOnComplete)

type ICefContextMenuHandler

type ICefContextMenuHandler struct {
	// contains filtered or unexported fields
}

ICefContextMenuHandler

func (*ICefContextMenuHandler) Free

func (m *ICefContextMenuHandler) Free()

func (*ICefContextMenuHandler) Instance

func (m *ICefContextMenuHandler) Instance() uintptr

Instance 实例

func (*ICefContextMenuHandler) IsValid

func (m *ICefContextMenuHandler) IsValid() bool

func (*ICefContextMenuHandler) SetOnBeforeContextMenu

func (m *ICefContextMenuHandler) SetOnBeforeContextMenu(fn onBeforeContextMenu)

func (*ICefContextMenuHandler) SetOnContextMenuCommand

func (m *ICefContextMenuHandler) SetOnContextMenuCommand(fn onContextMenuCommand)

func (*ICefContextMenuHandler) SetOnContextMenuDismissed

func (m *ICefContextMenuHandler) SetOnContextMenuDismissed(fn onContextMenuDismissed)

func (*ICefContextMenuHandler) SetOnQuickMenuCommand

func (m *ICefContextMenuHandler) SetOnQuickMenuCommand(fn onQuickMenuCommand)

func (*ICefContextMenuHandler) SetOnQuickMenuDismissed

func (m *ICefContextMenuHandler) SetOnQuickMenuDismissed(fn onQuickMenuDismissed)

func (*ICefContextMenuHandler) SetRunContextMenu

func (m *ICefContextMenuHandler) SetRunContextMenu(fn runContextMenu)

func (*ICefContextMenuHandler) SetRunQuickMenu

func (m *ICefContextMenuHandler) SetRunQuickMenu(fn runQuickMenu)

type ICefContextMenuParams

type ICefContextMenuParams struct {
	// contains filtered or unexported fields
}

ICefContextMenuParams 菜单显示时参数,当前鼠标右键的frame & html元素参数

func (*ICefContextMenuParams) DictionarySuggestions

func (m *ICefContextMenuParams) DictionarySuggestions(suggestions []string) bool

DictionarySuggestions

func (*ICefContextMenuParams) EditStateFlags

EditStateFlags

func (*ICefContextMenuParams) FrameCharset

func (m *ICefContextMenuParams) FrameCharset() string

FrameCharset

func (*ICefContextMenuParams) FrameUrl

func (m *ICefContextMenuParams) FrameUrl() string

FrameUrl

func (*ICefContextMenuParams) Free

func (m *ICefContextMenuParams) Free()

func (*ICefContextMenuParams) HasImageContents

func (m *ICefContextMenuParams) HasImageContents() bool

HasImageContents

func (*ICefContextMenuParams) Instance

func (m *ICefContextMenuParams) Instance() uintptr

Instance 实例

func (*ICefContextMenuParams) IsCustomMenu

func (m *ICefContextMenuParams) IsCustomMenu() bool

IsCustomMenu

func (*ICefContextMenuParams) IsEditable

func (m *ICefContextMenuParams) IsEditable() bool

IsEditable

func (*ICefContextMenuParams) IsSpellCheckEnabled

func (m *ICefContextMenuParams) IsSpellCheckEnabled() bool

IsSpellCheckEnabled

func (*ICefContextMenuParams) IsValid

func (m *ICefContextMenuParams) IsValid() bool

func (*ICefContextMenuParams) LinkUrl

func (m *ICefContextMenuParams) LinkUrl() string

LinkUrl

func (*ICefContextMenuParams) MediaStateFlags

MediaStateFlags

func (*ICefContextMenuParams) MediaType

MediaType

func (*ICefContextMenuParams) MisspelledWord

func (m *ICefContextMenuParams) MisspelledWord() string

MisspelledWord

func (*ICefContextMenuParams) PageUrl

func (m *ICefContextMenuParams) PageUrl() string

PageUrl

func (*ICefContextMenuParams) SelectionText

func (m *ICefContextMenuParams) SelectionText() string

SelectionText

func (*ICefContextMenuParams) SourceUrl

func (m *ICefContextMenuParams) SourceUrl() string

SourceUrl

func (*ICefContextMenuParams) TitleText

func (m *ICefContextMenuParams) TitleText() string

TitleText

func (*ICefContextMenuParams) TypeFlags

TypeFlags

func (*ICefContextMenuParams) UnfilteredLinkUrl

func (m *ICefContextMenuParams) UnfilteredLinkUrl() string

UnfilteredLinkUrl

func (*ICefContextMenuParams) XCoord

func (m *ICefContextMenuParams) XCoord() int32

XCoord

func (*ICefContextMenuParams) YCoord

func (m *ICefContextMenuParams) YCoord() int32

YCoord

type ICefCookie

type ICefCookie struct {
	Url, Name, Value, Domain, Path string
	Secure, Httponly, HasExpires   bool
	Creation, LastAccess, Expires  time.Time
	Count, Total, ID               int32
	SameSite                       TCefCookieSameSite
	Priority                       TCefCookiePriority
	SetImmediately                 bool
	DeleteCookie                   bool
	Result                         bool
}

ICefCookie CEF Cookie

type ICefCookieAccessFilter

type ICefCookieAccessFilter struct {
	// contains filtered or unexported fields
}

ICefCookieAccessFilter

/include/capi/cef_resource_request_handler_capi.h (cef_cookie_access_filter_t)

func (*ICefCookieAccessFilter) Free

func (m *ICefCookieAccessFilter) Free()

func (*ICefCookieAccessFilter) Instance

func (m *ICefCookieAccessFilter) Instance() uintptr

Instance 实例

func (*ICefCookieAccessFilter) IsChromiumEvent

func (m *ICefCookieAccessFilter) IsChromiumEvent() bool

func (*ICefCookieAccessFilter) IsTClientEvent

func (m *ICefCookieAccessFilter) IsTClientEvent() bool

func (*ICefCookieAccessFilter) IsValid

func (m *ICefCookieAccessFilter) IsValid() bool

func (*ICefCookieAccessFilter) SetCanSaveCookie

func (m *ICefCookieAccessFilter) SetCanSaveCookie(fn canSaveCookie)

func (*ICefCookieAccessFilter) SetCanSendCookie

func (m *ICefCookieAccessFilter) SetCanSendCookie(fn canSendCookie)

type ICefCookieManager

type ICefCookieManager struct {
	// contains filtered or unexported fields
}

ICefCookieManager

func (*ICefCookieManager) DeleteCookies

func (m *ICefCookieManager) DeleteCookies(url, cookieName string, callback *ICefDeleteCookiesCallback) bool

func (*ICefCookieManager) FlushStore

func (m *ICefCookieManager) FlushStore(callback *ICefCompletionCallback) bool

func (*ICefCookieManager) Free

func (m *ICefCookieManager) Free()

func (*ICefCookieManager) Instance

func (m *ICefCookieManager) Instance() uintptr

Instance 实例

func (*ICefCookieManager) IsValid

func (m *ICefCookieManager) IsValid() bool

func (*ICefCookieManager) SetCookie

func (m *ICefCookieManager) SetCookie(url, name, value, domain, path string,
	secure, httponly, hasExpires bool, creation, lastAccess, expires time.Time,
	sameSite consts.TCefCookieSameSite, priority consts.TCefCookiePriority, callback *ICefSetCookieCallback) bool

func (*ICefCookieManager) VisitAllCookies

func (m *ICefCookieManager) VisitAllCookies(visitor *ICefCookieVisitor)

func (*ICefCookieManager) VisitUrlCookies

func (m *ICefCookieManager) VisitUrlCookies(url string, includeHttpOnly bool, visitor *ICefCookieVisitor) bool

type ICefCookieVisitor

type ICefCookieVisitor struct {
	// contains filtered or unexported fields
}

ICefCookieVisitor

func (*ICefCookieVisitor) Free

func (m *ICefCookieVisitor) Free()

func (*ICefCookieVisitor) Instance

func (m *ICefCookieVisitor) Instance() uintptr

Instance 实例

func (*ICefCookieVisitor) IsValid

func (m *ICefCookieVisitor) IsValid() bool

func (*ICefCookieVisitor) SetOnVisit

func (m *ICefCookieVisitor) SetOnVisit(fn cookieOnVisit)

type ICefDeleteCookiesCallback

type ICefDeleteCookiesCallback struct {
	// contains filtered or unexported fields
}

ICefDeleteCookiesCallback

func (*ICefDeleteCookiesCallback) Free

func (m *ICefDeleteCookiesCallback) Free()

func (*ICefDeleteCookiesCallback) Instance

func (m *ICefDeleteCookiesCallback) Instance() uintptr

Instance 实例

func (*ICefDeleteCookiesCallback) IsChromiumEvent

func (m *ICefDeleteCookiesCallback) IsChromiumEvent() bool

func (*ICefDeleteCookiesCallback) IsTClientEvent

func (m *ICefDeleteCookiesCallback) IsTClientEvent() bool

func (*ICefDeleteCookiesCallback) IsValid

func (m *ICefDeleteCookiesCallback) IsValid() bool

func (*ICefDeleteCookiesCallback) SetOnComplete

func (m *ICefDeleteCookiesCallback) SetOnComplete(fn deleteCookiesOnComplete)

type ICefDialogHandler

type ICefDialogHandler struct {
	// contains filtered or unexported fields
}

ICefDialogHandler

func (*ICefDialogHandler) Free

func (m *ICefDialogHandler) Free()

func (*ICefDialogHandler) Instance

func (m *ICefDialogHandler) Instance() uintptr

Instance 实例

func (*ICefDialogHandler) IsValid

func (m *ICefDialogHandler) IsValid() bool

func (*ICefDialogHandler) SetOnFileDialog

func (m *ICefDialogHandler) SetOnFileDialog(fn onFileDialog)

type ICefDictionaryValue

type ICefDictionaryValue struct {
	// contains filtered or unexported fields
}

ICefDictionaryValue -> ArgumentList

func (*ICefDictionaryValue) Clear

func (m *ICefDictionaryValue) Clear() (result bool)

func (*ICefDictionaryValue) Copy

func (m *ICefDictionaryValue) Copy(excludeEmptyChildren bool) *ICefDictionaryValue

func (*ICefDictionaryValue) Free

func (m *ICefDictionaryValue) Free()

func (*ICefDictionaryValue) GetBinary

func (m *ICefDictionaryValue) GetBinary(key string) *ICefBinaryValue

func (*ICefDictionaryValue) GetBool

func (m *ICefDictionaryValue) GetBool(key string) bool

func (*ICefDictionaryValue) GetDictionary

func (m *ICefDictionaryValue) GetDictionary(key string) *ICefDictionaryValue

func (*ICefDictionaryValue) GetDouble

func (m *ICefDictionaryValue) GetDouble(key string) (result float64)

func (*ICefDictionaryValue) GetIArray

func (m *ICefDictionaryValue) GetIArray(key string) types.IArrayValue

func (*ICefDictionaryValue) GetIBinary

func (m *ICefDictionaryValue) GetIBinary(key string) types.IBinaryValue

func (*ICefDictionaryValue) GetIKeys

func (m *ICefDictionaryValue) GetIKeys() types.IV8ValueKeys

func (*ICefDictionaryValue) GetIObject

func (m *ICefDictionaryValue) GetIObject(key string) types.IObjectValue

func (*ICefDictionaryValue) GetIValue

func (m *ICefDictionaryValue) GetIValue(key string) types.IValue

func (*ICefDictionaryValue) GetInt

func (m *ICefDictionaryValue) GetInt(key string) int32

func (*ICefDictionaryValue) GetKeys

func (m *ICefDictionaryValue) GetKeys() *ICefV8ValueKeys

func (*ICefDictionaryValue) GetList

func (m *ICefDictionaryValue) GetList(key string) *ICefListValue

func (*ICefDictionaryValue) GetString

func (m *ICefDictionaryValue) GetString(key string) string

func (*ICefDictionaryValue) GetType

func (*ICefDictionaryValue) GetValue

func (m *ICefDictionaryValue) GetValue(key string) *ICefValue

func (*ICefDictionaryValue) HasKey

func (m *ICefDictionaryValue) HasKey(key string) bool

func (*ICefDictionaryValue) Instance

func (m *ICefDictionaryValue) Instance() uintptr

Instance 实例

func (*ICefDictionaryValue) IsOwned

func (m *ICefDictionaryValue) IsOwned() bool

func (*ICefDictionaryValue) IsReadOnly

func (m *ICefDictionaryValue) IsReadOnly() bool

func (*ICefDictionaryValue) IsValid

func (m *ICefDictionaryValue) IsValid() bool

func (*ICefDictionaryValue) Remove

func (m *ICefDictionaryValue) Remove(key string) bool

func (*ICefDictionaryValue) SetBinary

func (m *ICefDictionaryValue) SetBinary(key string, value *ICefBinaryValue) (result bool)

func (*ICefDictionaryValue) SetBool

func (m *ICefDictionaryValue) SetBool(key string, value bool) bool

func (*ICefDictionaryValue) SetDictionary

func (m *ICefDictionaryValue) SetDictionary(key string, value *ICefDictionaryValue) (result bool)

func (*ICefDictionaryValue) SetDouble

func (m *ICefDictionaryValue) SetDouble(key string, value float64) bool

func (*ICefDictionaryValue) SetInt

func (m *ICefDictionaryValue) SetInt(key string, value int32) bool

func (*ICefDictionaryValue) SetList

func (m *ICefDictionaryValue) SetList(key string, value *ICefListValue) (result bool)

func (*ICefDictionaryValue) SetNull

func (m *ICefDictionaryValue) SetNull(key string) bool

func (*ICefDictionaryValue) SetString

func (m *ICefDictionaryValue) SetString(key string, value string) bool

func (*ICefDictionaryValue) SetValue

func (m *ICefDictionaryValue) SetValue(key string, value *ICefValue) (result bool)

func (*ICefDictionaryValue) Size

func (m *ICefDictionaryValue) Size() uint32

type ICefDisplay

type ICefDisplay struct {
	// contains filtered or unexported fields
}

ICefDisplay

func (*ICefDisplay) Bounds

func (m *ICefDisplay) Bounds() (result TCefRect)

func (*ICefDisplay) DeviceScaleFactor

func (m *ICefDisplay) DeviceScaleFactor() float32

func (*ICefDisplay) Free

func (m *ICefDisplay) Free()

func (*ICefDisplay) ID

func (m *ICefDisplay) ID() (result int64)

func (*ICefDisplay) Instance

func (m *ICefDisplay) Instance() uintptr

func (*ICefDisplay) IsValid

func (m *ICefDisplay) IsValid() bool

func (*ICefDisplay) Rotation

func (m *ICefDisplay) Rotation() int32

func (*ICefDisplay) WorkArea

func (m *ICefDisplay) WorkArea() (result TCefRect)

type ICefDisplayHandler

type ICefDisplayHandler struct {
	// contains filtered or unexported fields
}

ICefDisplayHandler

func (*ICefDisplayHandler) Free

func (m *ICefDisplayHandler) Free()

func (*ICefDisplayHandler) Instance

func (m *ICefDisplayHandler) Instance() uintptr

Instance 实例

func (*ICefDisplayHandler) IsValid

func (m *ICefDisplayHandler) IsValid() bool

func (*ICefDisplayHandler) SetOnAddressChange

func (m *ICefDisplayHandler) SetOnAddressChange(fn onAddressChange)

func (*ICefDisplayHandler) SetOnAutoResize

func (m *ICefDisplayHandler) SetOnAutoResize(fn onAutoResize)

func (*ICefDisplayHandler) SetOnConsoleMessage

func (m *ICefDisplayHandler) SetOnConsoleMessage(fn onConsoleMessage)

func (*ICefDisplayHandler) SetOnCursorChange

func (m *ICefDisplayHandler) SetOnCursorChange(fn onCursorChange)

func (*ICefDisplayHandler) SetOnFaviconUrlChange

func (m *ICefDisplayHandler) SetOnFaviconUrlChange(fn onFaviconUrlChange)

func (*ICefDisplayHandler) SetOnFullScreenModeChange

func (m *ICefDisplayHandler) SetOnFullScreenModeChange(fn onFullScreenModeChange)

func (*ICefDisplayHandler) SetOnLoadingProgressChange

func (m *ICefDisplayHandler) SetOnLoadingProgressChange(fn onLoadingProgressChange)

func (*ICefDisplayHandler) SetOnMediaAccessChange

func (m *ICefDisplayHandler) SetOnMediaAccessChange(fn onMediaAccessChange)

func (*ICefDisplayHandler) SetOnStatusMessage

func (m *ICefDisplayHandler) SetOnStatusMessage(fn onStatusMessage)

func (*ICefDisplayHandler) SetOnTitleChange

func (m *ICefDisplayHandler) SetOnTitleChange(fn onTitleChange)

func (*ICefDisplayHandler) SetOnTooltip

func (m *ICefDisplayHandler) SetOnTooltip(fn onTooltip)

type ICefDomDocument

type ICefDomDocument struct {
	// contains filtered or unexported fields
}

ICefDomDocument

func (*ICefDomDocument) Free

func (m *ICefDomDocument) Free()

func (*ICefDomDocument) GetBaseUrl

func (m *ICefDomDocument) GetBaseUrl() string

func (*ICefDomDocument) GetBody

func (m *ICefDomDocument) GetBody() *ICefDomNode

func (*ICefDomDocument) GetCompleteUrl

func (m *ICefDomDocument) GetCompleteUrl() string

func (*ICefDomDocument) GetDocType

func (m *ICefDomDocument) GetDocType() consts.TCefDomDocumentType

func (*ICefDomDocument) GetDocument

func (m *ICefDomDocument) GetDocument() *ICefDomNode

func (*ICefDomDocument) GetElementById

func (m *ICefDomDocument) GetElementById(id string) *ICefDomNode

func (*ICefDomDocument) GetFocusedNode

func (m *ICefDomDocument) GetFocusedNode() *ICefDomNode

func (*ICefDomDocument) GetHead

func (m *ICefDomDocument) GetHead() *ICefDomNode

func (*ICefDomDocument) GetSelectionAsMarkup

func (m *ICefDomDocument) GetSelectionAsMarkup() string

func (*ICefDomDocument) GetSelectionAsText

func (m *ICefDomDocument) GetSelectionAsText() string

func (*ICefDomDocument) GetSelectionEndOffset

func (m *ICefDomDocument) GetSelectionEndOffset() int32

func (*ICefDomDocument) GetSelectionStartOffset

func (m *ICefDomDocument) GetSelectionStartOffset() int32

func (*ICefDomDocument) GetTitle

func (m *ICefDomDocument) GetTitle() string

func (*ICefDomDocument) HasSelection

func (m *ICefDomDocument) HasSelection() bool

func (*ICefDomDocument) Instance

func (m *ICefDomDocument) Instance() uintptr

Instance 实例

func (*ICefDomDocument) IsValid

func (m *ICefDomDocument) IsValid() bool

type ICefDomNode

type ICefDomNode struct {
	// contains filtered or unexported fields
}

ICefDomNode

func (*ICefDomNode) Free

func (m *ICefDomNode) Free()

func (*ICefDomNode) GetAsMarkup

func (m *ICefDomNode) GetAsMarkup() string

func (*ICefDomNode) GetDocument

func (m *ICefDomNode) GetDocument() *ICefDomDocument

func (*ICefDomNode) GetElementAttribute

func (m *ICefDomNode) GetElementAttribute(attrName string) string

func (*ICefDomNode) GetElementAttributes

func (m *ICefDomNode) GetElementAttributes() []string

func (*ICefDomNode) GetElementBounds

func (m *ICefDomNode) GetElementBounds() (result TCefRect)

func (*ICefDomNode) GetElementInnerText

func (m *ICefDomNode) GetElementInnerText() string

func (*ICefDomNode) GetElementTagName

func (m *ICefDomNode) GetElementTagName() string

func (*ICefDomNode) GetFirstChild

func (m *ICefDomNode) GetFirstChild() *ICefDomNode

func (*ICefDomNode) GetFormControlElementType

func (m *ICefDomNode) GetFormControlElementType() string

func (*ICefDomNode) GetLastChild

func (m *ICefDomNode) GetLastChild() *ICefDomNode

func (*ICefDomNode) GetName

func (m *ICefDomNode) GetName() string

func (*ICefDomNode) GetNextSibling

func (m *ICefDomNode) GetNextSibling() *ICefDomNode

func (*ICefDomNode) GetNodeType

func (m *ICefDomNode) GetNodeType() consts.TCefDomNodeType

func (*ICefDomNode) GetParent

func (m *ICefDomNode) GetParent() *ICefDomNode

func (*ICefDomNode) GetPreviousSibling

func (m *ICefDomNode) GetPreviousSibling() *ICefDomNode

func (*ICefDomNode) GetValue

func (m *ICefDomNode) GetValue() string

func (*ICefDomNode) HasChildren

func (m *ICefDomNode) HasChildren() bool

func (*ICefDomNode) HasElementAttribute

func (m *ICefDomNode) HasElementAttribute(attrName string) bool

func (*ICefDomNode) HasElementAttributes

func (m *ICefDomNode) HasElementAttributes() bool

func (*ICefDomNode) Instance

func (m *ICefDomNode) Instance() uintptr

Instance 实例

func (*ICefDomNode) IsEditable

func (m *ICefDomNode) IsEditable() bool

func (*ICefDomNode) IsElement

func (m *ICefDomNode) IsElement() bool

func (*ICefDomNode) IsFormControlElement

func (m *ICefDomNode) IsFormControlElement() bool

func (*ICefDomNode) IsSame

func (m *ICefDomNode) IsSame() bool

func (*ICefDomNode) IsText

func (m *ICefDomNode) IsText() bool

func (*ICefDomNode) IsValid

func (m *ICefDomNode) IsValid() bool

func (*ICefDomNode) SetElementAttribute

func (m *ICefDomNode) SetElementAttribute(attrName, value string) bool

func (*ICefDomNode) SetValue

func (m *ICefDomNode) SetValue(value string) bool

type ICefDomVisitor

type ICefDomVisitor struct {
	// contains filtered or unexported fields
}

ICefDomVisitor

func (*ICefDomVisitor) Free

func (m *ICefDomVisitor) Free()

func (*ICefDomVisitor) Instance

func (m *ICefDomVisitor) Instance() uintptr

Instance 实例

func (*ICefDomVisitor) IsValid

func (m *ICefDomVisitor) IsValid() bool

func (*ICefDomVisitor) SetOnVisit

func (m *ICefDomVisitor) SetOnVisit(fn onVisit)

type ICefDownloadHandler

type ICefDownloadHandler struct {
	// contains filtered or unexported fields
}

ICefDownloadHandler

func (*ICefDownloadHandler) Free

func (m *ICefDownloadHandler) Free()

func (*ICefDownloadHandler) Instance

func (m *ICefDownloadHandler) Instance() uintptr

Instance 实例

func (*ICefDownloadHandler) IsValid

func (m *ICefDownloadHandler) IsValid() bool

func (*ICefDownloadHandler) SetCanDownload

func (m *ICefDownloadHandler) SetCanDownload(fn canDownload)

func (*ICefDownloadHandler) SetOnBeforeDownload

func (m *ICefDownloadHandler) SetOnBeforeDownload(fn onBeforeDownload)

func (*ICefDownloadHandler) SetOnDownloadUpdated

func (m *ICefDownloadHandler) SetOnDownloadUpdated(fn onDownloadUpdated)

type ICefDownloadItem

type ICefDownloadItem struct {
	// contains filtered or unexported fields
}

ICefDownloadItem 下载项

func (*ICefDownloadItem) ContentDisposition

func (m *ICefDownloadItem) ContentDisposition() string

func (*ICefDownloadItem) CurrentSpeed

func (m *ICefDownloadItem) CurrentSpeed() int64

func (*ICefDownloadItem) EndTime

func (m *ICefDownloadItem) EndTime() time.Time

func (*ICefDownloadItem) Free

func (m *ICefDownloadItem) Free()

func (*ICefDownloadItem) FullPath

func (m *ICefDownloadItem) FullPath() string

func (*ICefDownloadItem) Id

func (m *ICefDownloadItem) Id() uint32

func (*ICefDownloadItem) Instance

func (m *ICefDownloadItem) Instance() uintptr

func (*ICefDownloadItem) IsCanceled

func (m *ICefDownloadItem) IsCanceled() bool

func (*ICefDownloadItem) IsComplete

func (m *ICefDownloadItem) IsComplete() bool

func (*ICefDownloadItem) IsInProgress

func (m *ICefDownloadItem) IsInProgress() bool

func (*ICefDownloadItem) IsValid

func (m *ICefDownloadItem) IsValid() bool

func (*ICefDownloadItem) MimeType

func (m *ICefDownloadItem) MimeType() string

func (*ICefDownloadItem) OriginalUrl

func (m *ICefDownloadItem) OriginalUrl() string

func (*ICefDownloadItem) PercentComplete

func (m *ICefDownloadItem) PercentComplete() int32

func (*ICefDownloadItem) ReceivedBytes

func (m *ICefDownloadItem) ReceivedBytes() int64

func (*ICefDownloadItem) StartTime

func (m *ICefDownloadItem) StartTime() time.Time

func (*ICefDownloadItem) State

func (m *ICefDownloadItem) State() int32

State 下载状态 -1:下载之前 0:下载中 1:下载取消 2:下载完成

func (*ICefDownloadItem) SuggestedFileName

func (m *ICefDownloadItem) SuggestedFileName() string

func (*ICefDownloadItem) TotalBytes

func (m *ICefDownloadItem) TotalBytes() int64

func (*ICefDownloadItem) Url

func (m *ICefDownloadItem) Url() string

type ICefDownloadItemCallback

type ICefDownloadItemCallback struct {
	// contains filtered or unexported fields
}

ICefDownloadItemCallback

下载中回调

func (*ICefDownloadItemCallback) Cancel

func (m *ICefDownloadItemCallback) Cancel()

Cancel 取消下载 仅在回调函数中使用

func (*ICefDownloadItemCallback) Free

func (m *ICefDownloadItemCallback) Free()

func (*ICefDownloadItemCallback) Instance

func (m *ICefDownloadItemCallback) Instance() uintptr

func (*ICefDownloadItemCallback) IsValid

func (m *ICefDownloadItemCallback) IsValid() bool

func (*ICefDownloadItemCallback) Pause

func (m *ICefDownloadItemCallback) Pause()

Pause 暂停 仅在回调函数中使用

func (*ICefDownloadItemCallback) Resume

func (m *ICefDownloadItemCallback) Resume()

Resume 恢复下载 仅在回调函数中使用

type ICefDragData

type ICefDragData struct {
	// contains filtered or unexported fields
}

ICefDragData

func (*ICefDragData) AddFile

func (m *ICefDragData) AddFile(path, displayName string)

func (*ICefDragData) ClearFilenames

func (m *ICefDragData) ClearFilenames()

func (*ICefDragData) Clone

func (m *ICefDragData) Clone() *ICefDragData

func (*ICefDragData) Free

func (m *ICefDragData) Free()

func (*ICefDragData) GetFileContents

func (m *ICefDragData) GetFileContents(writer *ICefStreamWriter) uint32

func (*ICefDragData) GetFileName

func (m *ICefDragData) GetFileName() string

func (*ICefDragData) GetFileNames

func (m *ICefDragData) GetFileNames() ([]string, int32)

func (*ICefDragData) GetFragmentBaseUrl

func (m *ICefDragData) GetFragmentBaseUrl() string

func (*ICefDragData) GetFragmentHtml

func (m *ICefDragData) GetFragmentHtml() string

func (*ICefDragData) GetFragmentText

func (m *ICefDragData) GetFragmentText() string

func (*ICefDragData) GetImage

func (m *ICefDragData) GetImage() *ICefImage

func (*ICefDragData) GetImageHotspot

func (m *ICefDragData) GetImageHotspot() *TCefPoint

func (*ICefDragData) GetLinkMetadata

func (m *ICefDragData) GetLinkMetadata() string

func (*ICefDragData) GetLinkTitle

func (m *ICefDragData) GetLinkTitle() string

func (*ICefDragData) GetLinkUrl

func (m *ICefDragData) GetLinkUrl() string

func (*ICefDragData) HasImage

func (m *ICefDragData) HasImage() bool

func (*ICefDragData) Instance

func (m *ICefDragData) Instance() uintptr

Instance 实例

func (*ICefDragData) IsFile

func (m *ICefDragData) IsFile() bool

func (*ICefDragData) IsFragment

func (m *ICefDragData) IsFragment() bool
func (m *ICefDragData) IsLink() bool

func (*ICefDragData) IsReadOnly

func (m *ICefDragData) IsReadOnly() bool

func (*ICefDragData) IsValid

func (m *ICefDragData) IsValid() bool

func (*ICefDragData) ResetFileContents

func (m *ICefDragData) ResetFileContents()

func (*ICefDragData) SetFragmentBaseUrl

func (m *ICefDragData) SetFragmentBaseUrl(baseUrl string)

func (*ICefDragData) SetFragmentHtml

func (m *ICefDragData) SetFragmentHtml(html string)

func (*ICefDragData) SetFragmentText

func (m *ICefDragData) SetFragmentText(text string)

func (*ICefDragData) SetLinkMetadata

func (m *ICefDragData) SetLinkMetadata(data string)

func (*ICefDragData) SetLinkTitle

func (m *ICefDragData) SetLinkTitle(title string)

func (*ICefDragData) SetLinkUrl

func (m *ICefDragData) SetLinkUrl(url string)

type ICefDragHandler

type ICefDragHandler struct {
	// contains filtered or unexported fields
}

ICefDragHandler

func (*ICefDragHandler) Free

func (m *ICefDragHandler) Free()

func (*ICefDragHandler) Instance

func (m *ICefDragHandler) Instance() uintptr

Instance 实例

func (*ICefDragHandler) IsValid

func (m *ICefDragHandler) IsValid() bool

func (*ICefDragHandler) SetOnDragEnter

func (m *ICefDragHandler) SetOnDragEnter(fn onDragEnter)

func (*ICefDragHandler) SetOnDraggableRegionsChanged

func (m *ICefDragHandler) SetOnDraggableRegionsChanged(fn onDraggableRegionsChanged)

type ICefExtension

type ICefExtension struct {
	// contains filtered or unexported fields
}

ICefExtension

func (*ICefExtension) Free

func (m *ICefExtension) Free()

func (*ICefExtension) GetBackgroundPage

func (m *ICefExtension) GetBackgroundPage() string

func (*ICefExtension) GetBrowserActionIcon

func (m *ICefExtension) GetBrowserActionIcon() string

func (*ICefExtension) GetBrowserActionPopup

func (m *ICefExtension) GetBrowserActionPopup() string

func (*ICefExtension) GetHandler

func (m *ICefExtension) GetHandler() *ICefExtensionHandler

func (*ICefExtension) GetIdentifier

func (m *ICefExtension) GetIdentifier() string

func (*ICefExtension) GetLoaderContext

func (m *ICefExtension) GetLoaderContext() *ICefRequestContext

func (*ICefExtension) GetManifest

func (m *ICefExtension) GetManifest() *ICefDictionaryValue

func (*ICefExtension) GetOptionsPage

func (m *ICefExtension) GetOptionsPage() string

func (*ICefExtension) GetOptionsUIPage

func (m *ICefExtension) GetOptionsUIPage() string

func (*ICefExtension) GetPageActionIcon

func (m *ICefExtension) GetPageActionIcon() string

func (*ICefExtension) GetPageActionPopup

func (m *ICefExtension) GetPageActionPopup() string

func (*ICefExtension) GetPath

func (m *ICefExtension) GetPath() string

func (*ICefExtension) GetURL

func (m *ICefExtension) GetURL() string

func (*ICefExtension) Instance

func (m *ICefExtension) Instance() uintptr

Instance 实例

func (*ICefExtension) IsLoaded

func (m *ICefExtension) IsLoaded() bool

func (*ICefExtension) IsSame

func (m *ICefExtension) IsSame(that *ICefExtension) bool

func (*ICefExtension) IsValid

func (m *ICefExtension) IsValid() bool

type ICefExtensionHandler

type ICefExtensionHandler struct {
	// contains filtered or unexported fields
}

ICefExtensionHandler

func (*ICefExtensionHandler) Free

func (m *ICefExtensionHandler) Free()

func (*ICefExtensionHandler) Instance

func (m *ICefExtensionHandler) Instance() uintptr

Instance 实例

func (*ICefExtensionHandler) IsValid

func (m *ICefExtensionHandler) IsValid() bool

func (*ICefExtensionHandler) SetCanAccessBrowser

func (m *ICefExtensionHandler) SetCanAccessBrowser(fn canAccessBrowser)

func (*ICefExtensionHandler) SetGetActiveBrowser

func (m *ICefExtensionHandler) SetGetActiveBrowser(fn getActiveBrowser)

func (*ICefExtensionHandler) SetGetExtensionResource

func (m *ICefExtensionHandler) SetGetExtensionResource(fn getExtensionResource)

func (*ICefExtensionHandler) SetOnBeforeBackgroundBrowser

func (m *ICefExtensionHandler) SetOnBeforeBackgroundBrowser(fn onBeforeBackgroundBrowser)

func (*ICefExtensionHandler) SetOnBeforeBrowser

func (m *ICefExtensionHandler) SetOnBeforeBrowser(fn onBeforeBrowser)

func (*ICefExtensionHandler) SetOnExtensionLoadFailed

func (m *ICefExtensionHandler) SetOnExtensionLoadFailed(fn onExtensionLoadFailed)

func (*ICefExtensionHandler) SetOnExtensionLoaded

func (m *ICefExtensionHandler) SetOnExtensionLoaded(fn onExtensionLoaded)

func (*ICefExtensionHandler) SetOnExtensionUnloaded

func (m *ICefExtensionHandler) SetOnExtensionUnloaded(fn onExtensionUnloaded)

type ICefFileDialogCallback

type ICefFileDialogCallback struct {
	// contains filtered or unexported fields
}

ICefFileDialogCallback

/include/capi/cef_dialog_handler_capi.h (cef_file_dialog_callback_t)

func (*ICefFileDialogCallback) Cancel

func (m *ICefFileDialogCallback) Cancel()

func (*ICefFileDialogCallback) Cont

func (m *ICefFileDialogCallback) Cont(filePaths []string)

func (*ICefFileDialogCallback) Free

func (m *ICefFileDialogCallback) Free()

func (*ICefFileDialogCallback) Instance

func (m *ICefFileDialogCallback) Instance() uintptr

Instance 实例

func (*ICefFileDialogCallback) IsValid

func (m *ICefFileDialogCallback) IsValid() bool

type ICefFindHandler

type ICefFindHandler struct {
	// contains filtered or unexported fields
}

ICefFindHandler

func (*ICefFindHandler) Free

func (m *ICefFindHandler) Free()

func (*ICefFindHandler) Instance

func (m *ICefFindHandler) Instance() uintptr

Instance 实例

func (*ICefFindHandler) IsValid

func (m *ICefFindHandler) IsValid() bool

func (*ICefFindHandler) SetOnFindResult

func (m *ICefFindHandler) SetOnFindResult(fn onFindResult)

type ICefFocusHandler

type ICefFocusHandler struct {
	// contains filtered or unexported fields
}

ICefFocusHandler

func (*ICefFocusHandler) Free

func (m *ICefFocusHandler) Free()

func (*ICefFocusHandler) Instance

func (m *ICefFocusHandler) Instance() uintptr

Instance 实例

func (*ICefFocusHandler) IsValid

func (m *ICefFocusHandler) IsValid() bool

func (*ICefFocusHandler) SetOnGotFocus

func (m *ICefFocusHandler) SetOnGotFocus(fn onGotFocus)

func (*ICefFocusHandler) SetOnSetFocus

func (m *ICefFocusHandler) SetOnSetFocus(fn onSetFocus)

func (*ICefFocusHandler) SetOnTakeFocus

func (m *ICefFocusHandler) SetOnTakeFocus(fn onTakeFocus)

type ICefFrame

type ICefFrame struct {
	// contains filtered or unexported fields
}

ICefFrame Html <iframe></iframe>

func (*ICefFrame) Browser

func (m *ICefFrame) Browser() *ICefBrowser

func (*ICefFrame) Copy

func (m *ICefFrame) Copy()

Copy 复制

func (*ICefFrame) Cut

func (m *ICefFrame) Cut()

Cut 剪切

func (*ICefFrame) Del

func (m *ICefFrame) Del()

Del 删除

func (*ICefFrame) EmitRender

func (m *ICefFrame) EmitRender(messageId int32, eventName string, target target.ITarget, data ...any) bool

EmitRender IPC 发送进程 消息

messageId != 0 是带有回调函数消息

func (*ICefFrame) ExecuteJavaScript

func (m *ICefFrame) ExecuteJavaScript(code, scriptUrl string, startLine int32)

ExecuteJavaScript 执行JS

func (*ICefFrame) Free

func (m *ICefFrame) Free()

func (*ICefFrame) Identifier

func (m *ICefFrame) Identifier() (result int64)

func (*ICefFrame) Instance

func (m *ICefFrame) Instance() uintptr

Instance 实例

func (*ICefFrame) IsFocused

func (m *ICefFrame) IsFocused() bool

IsFocused 是否已获取焦点

func (*ICefFrame) IsMain

func (m *ICefFrame) IsMain() bool

IsMain 是否为主Frame

func (*ICefFrame) IsValid

func (m *ICefFrame) IsValid() bool

IsValid 该Frame是否有效

func (*ICefFrame) LoadRequest

func (m *ICefFrame) LoadRequest(request *ICefRequest)

func (*ICefFrame) LoadUrl

func (m *ICefFrame) LoadUrl(url string)

LoadUrl 加载URL

func (*ICefFrame) Name

func (m *ICefFrame) Name() string

func (*ICefFrame) Parent

func (m *ICefFrame) Parent() *ICefFrame

func (*ICefFrame) Paste

func (m *ICefFrame) Paste()

Paste 粘贴

func (*ICefFrame) Redo

func (m *ICefFrame) Redo()

Redo 恢复

func (*ICefFrame) SelectAll

func (m *ICefFrame) SelectAll()

SelectAll 选择所有

func (*ICefFrame) SendProcessMessage

func (m *ICefFrame) SendProcessMessage(targetProcess CefProcessId, message *ICefProcessMessage)

SendProcessMessage 发送进程消息

func (*ICefFrame) SendProcessMessageForJSONBytes

func (m *ICefFrame) SendProcessMessageForJSONBytes(messageName string, targetProcess CefProcessId, data []byte)

SendProcessMessageForJSONBytes 发送进程消息

func (*ICefFrame) SendProcessMessageForV8Value

func (m *ICefFrame) SendProcessMessageForV8Value(messageName string, targetProcess CefProcessId, arguments *ICefV8Value)

SendProcessMessageForV8Value 发送进程消息

func (*ICefFrame) Undo

func (m *ICefFrame) Undo()

Undo 撤销操作

func (*ICefFrame) Url

func (m *ICefFrame) Url() string

func (*ICefFrame) V8Context

func (m *ICefFrame) V8Context() *ICefV8Context

func (*ICefFrame) ViewSource

func (m *ICefFrame) ViewSource()

ViewSource 显示源码

func (*ICefFrame) VisitDom

func (m *ICefFrame) VisitDom(visitor *ICefDomVisitor)

type ICefFrameHandler

type ICefFrameHandler struct {
	// contains filtered or unexported fields
}

ICefFrameHandler

func (*ICefFrameHandler) Free

func (m *ICefFrameHandler) Free()

func (*ICefFrameHandler) Instance

func (m *ICefFrameHandler) Instance() uintptr

Instance 实例

func (*ICefFrameHandler) IsValid

func (m *ICefFrameHandler) IsValid() bool

func (*ICefFrameHandler) SetOnFrameAttached

func (m *ICefFrameHandler) SetOnFrameAttached(fn onFrameAttached)

func (*ICefFrameHandler) SetOnFrameCreated

func (m *ICefFrameHandler) SetOnFrameCreated(fn onFrameCreated)

func (*ICefFrameHandler) SetOnFrameDetached

func (m *ICefFrameHandler) SetOnFrameDetached(fn onFrameDetached)

func (*ICefFrameHandler) SetOnMainFrameChanged

func (m *ICefFrameHandler) SetOnMainFrameChanged(fn onMainFrameChanged)

type ICefGetExtensionResourceCallback

type ICefGetExtensionResourceCallback struct {
	// contains filtered or unexported fields
}

ICefGetExtensionResourceCallback

func (*ICefGetExtensionResourceCallback) Cancel

func (*ICefGetExtensionResourceCallback) Cont

func (*ICefGetExtensionResourceCallback) Free

func (*ICefGetExtensionResourceCallback) Instance

Instance 实例

func (*ICefGetExtensionResourceCallback) IsValid

type ICefImage

type ICefImage struct {
	// contains filtered or unexported fields
}

ICefImage

func (*ICefImage) AddJpeg

func (m *ICefImage) AddJpeg(scaleFactor float32, jpeg []byte) bool

func (*ICefImage) AddJpegFS

func (m *ICefImage) AddJpegFS(scaleFactor float32, filename string) bool

func (*ICefImage) AddPng

func (m *ICefImage) AddPng(scaleFactor float32, png []byte) bool

func (*ICefImage) AddPngFS

func (m *ICefImage) AddPngFS(scaleFactor float32, filename string) bool

func (*ICefImage) Free

func (m *ICefImage) Free()

func (*ICefImage) Height

func (m *ICefImage) Height() int32

func (*ICefImage) Instance

func (m *ICefImage) Instance() uintptr

Instance 实例

func (*ICefImage) IsValid

func (m *ICefImage) IsValid() bool

func (*ICefImage) Width

func (m *ICefImage) Width() int32

type ICefJsDialogCallback

type ICefJsDialogCallback struct {
	// contains filtered or unexported fields
}

ICefJsDialogCallback

/include/capi/cef_jsdialog_handler_capi.h (cef_jsdialog_callback_t)

func (*ICefJsDialogCallback) Cont

func (m *ICefJsDialogCallback) Cont(success bool, userInput string)

func (*ICefJsDialogCallback) Free

func (m *ICefJsDialogCallback) Free()

func (*ICefJsDialogCallback) Instance

func (m *ICefJsDialogCallback) Instance() uintptr

Instance 实例

func (*ICefJsDialogCallback) IsValid

func (m *ICefJsDialogCallback) IsValid() bool

type ICefJsDialogHandler

type ICefJsDialogHandler struct {
	// contains filtered or unexported fields
}

ICefJsDialogHandler

func (*ICefJsDialogHandler) Free

func (m *ICefJsDialogHandler) Free()

func (*ICefJsDialogHandler) Instance

func (m *ICefJsDialogHandler) Instance() uintptr

Instance 实例

func (*ICefJsDialogHandler) IsValid

func (m *ICefJsDialogHandler) IsValid() bool

func (*ICefJsDialogHandler) OnBeforeUnloadDialog

func (m *ICefJsDialogHandler) OnBeforeUnloadDialog(fn onBeforeUnloadDialog)

func (*ICefJsDialogHandler) OnDialogClosed

func (m *ICefJsDialogHandler) OnDialogClosed(fn onDialogClosed)

func (*ICefJsDialogHandler) OnJsDialog

func (m *ICefJsDialogHandler) OnJsDialog(fn onJsDialog)

func (*ICefJsDialogHandler) OnResetDialogState

func (m *ICefJsDialogHandler) OnResetDialogState(fn onResetDialogState)

type ICefKeyboardHandler

type ICefKeyboardHandler struct {
	// contains filtered or unexported fields
}

ICefKeyboardHandler

func (*ICefKeyboardHandler) Free

func (m *ICefKeyboardHandler) Free()

func (*ICefKeyboardHandler) Instance

func (m *ICefKeyboardHandler) Instance() uintptr

Instance 实例

func (*ICefKeyboardHandler) IsValid

func (m *ICefKeyboardHandler) IsValid() bool

func (*ICefKeyboardHandler) SetOnKeyEvent

func (m *ICefKeyboardHandler) SetOnKeyEvent(fn onKeyEvent)

func (*ICefKeyboardHandler) SetOnPreKeyEvent

func (m *ICefKeyboardHandler) SetOnPreKeyEvent(fn onPreKeyEvent)

type ICefLifeSpanHandler

type ICefLifeSpanHandler struct {
	// contains filtered or unexported fields
}

ICefLifeSpanHandler

func (*ICefLifeSpanHandler) Free

func (m *ICefLifeSpanHandler) Free()

func (*ICefLifeSpanHandler) Instance

func (m *ICefLifeSpanHandler) Instance() uintptr

Instance 实例

func (*ICefLifeSpanHandler) IsValid

func (m *ICefLifeSpanHandler) IsValid() bool

func (*ICefLifeSpanHandler) SetDoClose

func (m *ICefLifeSpanHandler) SetDoClose(fn doClose)

func (*ICefLifeSpanHandler) SetOnAfterCreated

func (m *ICefLifeSpanHandler) SetOnAfterCreated(fn onAfterCreated)

func (*ICefLifeSpanHandler) SetOnBeforeClose

func (m *ICefLifeSpanHandler) SetOnBeforeClose(fn onBeforeClose)

func (*ICefLifeSpanHandler) SetOnBeforePopup

func (m *ICefLifeSpanHandler) SetOnBeforePopup(fn onBeforePopup)

type ICefListValue

type ICefListValue struct {
	// contains filtered or unexported fields
}

ICefListValue -> ArgumentList

func (*ICefListValue) Clear

func (m *ICefListValue) Clear() (result bool)

func (*ICefListValue) Copy

func (m *ICefListValue) Copy() *ICefListValue

func (*ICefListValue) Free

func (m *ICefListValue) Free()

func (*ICefListValue) GetBinary

func (m *ICefListValue) GetBinary(index uint32) *ICefBinaryValue

func (*ICefListValue) GetBool

func (m *ICefListValue) GetBool(index uint32) bool

func (*ICefListValue) GetDictionary

func (m *ICefListValue) GetDictionary(index uint32) *ICefDictionaryValue

func (*ICefListValue) GetDouble

func (m *ICefListValue) GetDouble(index uint32) (result float64)

func (*ICefListValue) GetIArray

func (m *ICefListValue) GetIArray(index uint32) types.IArrayValue

func (*ICefListValue) GetIBinary

func (m *ICefListValue) GetIBinary(index uint32) types.IBinaryValue

func (*ICefListValue) GetIObject

func (m *ICefListValue) GetIObject(index uint32) types.IObjectValue

func (*ICefListValue) GetIValue

func (m *ICefListValue) GetIValue(index uint32) types.IValue

func (*ICefListValue) GetInt

func (m *ICefListValue) GetInt(index uint32) int32

func (*ICefListValue) GetList

func (m *ICefListValue) GetList(index uint32) *ICefListValue

func (*ICefListValue) GetString

func (m *ICefListValue) GetString(index uint32) string

func (*ICefListValue) GetType

func (m *ICefListValue) GetType(index uint32) consts.TCefValueType

func (*ICefListValue) GetValue

func (m *ICefListValue) GetValue(index uint32) *ICefValue

func (*ICefListValue) Instance

func (m *ICefListValue) Instance() uintptr

func (*ICefListValue) IsOwned

func (m *ICefListValue) IsOwned() bool

func (*ICefListValue) IsReadOnly

func (m *ICefListValue) IsReadOnly() bool

func (*ICefListValue) IsValid

func (m *ICefListValue) IsValid() bool

func (*ICefListValue) Remove

func (m *ICefListValue) Remove(index uint32) bool

func (*ICefListValue) SetBinary

func (m *ICefListValue) SetBinary(index uint32, value *ICefBinaryValue) (result bool)

func (*ICefListValue) SetBool

func (m *ICefListValue) SetBool(index uint32, value bool) bool

func (*ICefListValue) SetDictionary

func (m *ICefListValue) SetDictionary(index uint32, value *ICefDictionaryValue) (result bool)

func (*ICefListValue) SetDouble

func (m *ICefListValue) SetDouble(index uint32, value float64) bool

func (*ICefListValue) SetInt

func (m *ICefListValue) SetInt(index uint32, value int32) bool

func (*ICefListValue) SetList

func (m *ICefListValue) SetList(index uint32, value *ICefListValue) (result bool)

func (*ICefListValue) SetNull

func (m *ICefListValue) SetNull(index uint32) bool

func (*ICefListValue) SetSize

func (m *ICefListValue) SetSize(size uint32) bool

func (*ICefListValue) SetString

func (m *ICefListValue) SetString(index uint32, value string) bool

func (*ICefListValue) SetValue

func (m *ICefListValue) SetValue(index uint32, value *ICefValue) (result bool)

func (*ICefListValue) Size

func (m *ICefListValue) Size() uint32

type ICefLoadHandler

type ICefLoadHandler struct {
	// contains filtered or unexported fields
}

ICefLoadHandler

func (*ICefLoadHandler) Free

func (m *ICefLoadHandler) Free()

func (*ICefLoadHandler) Instance

func (m *ICefLoadHandler) Instance() uintptr

Instance 实例

func (*ICefLoadHandler) IsValid

func (m *ICefLoadHandler) IsValid() bool

func (*ICefLoadHandler) SetOnLoadEnd

func (m *ICefLoadHandler) SetOnLoadEnd(fn onLoadEnd)

func (*ICefLoadHandler) SetOnLoadError

func (m *ICefLoadHandler) SetOnLoadError(fn onLoadError)

func (*ICefLoadHandler) SetOnLoadStart

func (m *ICefLoadHandler) SetOnLoadStart(fn onLoadStart)

func (*ICefLoadHandler) SetOnLoadingStateChange

func (m *ICefLoadHandler) SetOnLoadingStateChange(fn onLoadingStateChange)

type ICefMediaAccessCallback

type ICefMediaAccessCallback struct {
	// contains filtered or unexported fields
}

ICefMediaAccessCallback

This interface is declared twice with almost identical parameters. "allowed_permissions" is defined as int and uint32.
/include/capi/cef_media_access_handler_capi.h (cef_media_access_callback_t)
/include/capi/cef_permission_handler_capi.h (cef_media_access_callback_t)

func (*ICefMediaAccessCallback) Cancel

func (m *ICefMediaAccessCallback) Cancel()

func (*ICefMediaAccessCallback) Cont

func (*ICefMediaAccessCallback) Free

func (m *ICefMediaAccessCallback) Free()

func (*ICefMediaAccessCallback) Instance

func (m *ICefMediaAccessCallback) Instance() uintptr

Instance 实例

func (*ICefMediaAccessCallback) IsValid

func (m *ICefMediaAccessCallback) IsValid() bool

type ICefMediaRoute

type ICefMediaRoute struct {
	// contains filtered or unexported fields
}

ICefMediaRoute

/include/capi/cef_media_router_capi.h (cef_media_observer_t)

type ICefMediaSink

type ICefMediaSink struct {
	// contains filtered or unexported fields
}

ICefMediaSink

/include/capi/cef_media_router_capi.h (cef_media_sink_t)

type ICefMenuModel

type ICefMenuModel struct {
	CefMis *keyEventAccelerator
	// contains filtered or unexported fields
}

ICefMenuModel 菜单

func (*ICefMenuModel) AddCheckItem

func (m *ICefMenuModel) AddCheckItem(commandId MenuId, text string) bool

AddCheckItem 添加一个复选框菜单项

func (*ICefMenuModel) AddItem

func (m *ICefMenuModel) AddItem(commandId MenuId, text string) bool

AddItem 添加一个菜单项

func (*ICefMenuModel) AddMenuItem

func (m *ICefMenuModel) AddMenuItem(item *MenuItem) bool

AddMenuItem 添加一个菜单项 MenuItem

func (*ICefMenuModel) AddRadioItem

func (m *ICefMenuModel) AddRadioItem(commandId MenuId, text string, groupId int32) bool

AddRadioItem 添加一个单选框菜单项-按分组

func (*ICefMenuModel) AddSeparator

func (m *ICefMenuModel) AddSeparator() bool

AddSeparator 添加一个分隔线

func (*ICefMenuModel) AddSubMenu

func (m *ICefMenuModel) AddSubMenu(commandId MenuId, text string) *ICefMenuModel

AddSubMenu 创建添加并返回一个子菜单项, 使用返回的 ICefMenuModel 给子菜单添加菜单项

func (*ICefMenuModel) Clear

func (m *ICefMenuModel) Clear() bool

Clear 清空菜单

func (*ICefMenuModel) Free

func (m *ICefMenuModel) Free()

func (*ICefMenuModel) GetCount

func (m *ICefMenuModel) GetCount() int32

GetCount 菜单项数量

func (*ICefMenuModel) GetIndexOf

func (m *ICefMenuModel) GetIndexOf(commandId MenuId) int32

GetIndexOf 获取下标

func (*ICefMenuModel) HasAccelerator

func (m *ICefMenuModel) HasAccelerator(commandId MenuId) bool

HasAccelerator 是否有快捷键

func (*ICefMenuModel) Instance

func (m *ICefMenuModel) Instance() uintptr

func (*ICefMenuModel) IsChecked

func (m *ICefMenuModel) IsChecked(commandId MenuId) bool

func (*ICefMenuModel) IsEnabled

func (m *ICefMenuModel) IsEnabled(commandId MenuId) bool

IsEnabled 是启用

func (*ICefMenuModel) IsSubMenu

func (m *ICefMenuModel) IsSubMenu() bool

IsSubMenu 当前菜单项是否为子菜单

func (*ICefMenuModel) IsVisible

func (m *ICefMenuModel) IsVisible(commandId MenuId) bool

IsVisible 是否显示

func (*ICefMenuModel) Remove

func (m *ICefMenuModel) Remove(commandId MenuId) bool

Remove 指定移除一个菜单项,可直接移除Chromium默认实现的菜单项 consts.MenuId => MENU_ID_XXX

func (*ICefMenuModel) RemoveAccelerator

func (m *ICefMenuModel) RemoveAccelerator(commandId MenuId) bool

RemoveAccelerator 删除快捷键

func (*ICefMenuModel) RemoveAt

func (m *ICefMenuModel) RemoveAt(index int32) bool

RemoveAt 指定根据下标移除一个菜单项,可直接移除Chromium默认实现的菜单项 consts.MenuId => MENU_ID_XXX

func (*ICefMenuModel) SetAccelerator

func (m *ICefMenuModel) SetAccelerator(commandId MenuId, keyCode int32, shiftPressed, ctrlPressed, altPressed bool) bool

SetAccelerator 设置快捷键

func (*ICefMenuModel) SetChecked

func (m *ICefMenuModel) SetChecked(commandId MenuId, check bool) bool

SetChecked 设置Check | Radio 选中

func (*ICefMenuModel) SetColor

func (m *ICefMenuModel) SetColor(commandId MenuId, colorType TCefMenuColorType, color *TCefARGB) bool

SetColor 设置可用菜单项 cef.NewCefARGB(a, r, g, b), 颜色根据 consts.TCefMenuColorType

func (*ICefMenuModel) SetEnabled

func (m *ICefMenuModel) SetEnabled(commandId MenuId, enabled bool) bool

SetEnabled 设置是启用

func (*ICefMenuModel) SetLabel

func (m *ICefMenuModel) SetLabel(commandId MenuId, text string) bool

SetLabel 设置标签

func (*ICefMenuModel) SetVisible

func (m *ICefMenuModel) SetVisible(commandId MenuId, visible bool) bool

SetVisible 设置是否显示

type ICefNavigationEntry

type ICefNavigationEntry struct {
	// contains filtered or unexported fields
}

ICefNavigationEntry

/include/capi/cef_navigation_entry_capi.h (cef_navigation_entry_t)

type ICefPdfPrintCallback

type ICefPdfPrintCallback struct {
	// contains filtered or unexported fields
}

ICefPdfPrintCallback

func (*ICefPdfPrintCallback) Free

func (m *ICefPdfPrintCallback) Free()

func (*ICefPdfPrintCallback) Instance

func (m *ICefPdfPrintCallback) Instance() uintptr

Instance 实例

func (*ICefPdfPrintCallback) IsValid

func (m *ICefPdfPrintCallback) IsValid() bool

func (*ICefPdfPrintCallback) OnPdfPrintFinished

func (m *ICefPdfPrintCallback) OnPdfPrintFinished(fn OnPdfPrintFinished)

type ICefPermissionHandler

type ICefPermissionHandler struct {
	// contains filtered or unexported fields
}

ICefPermissionHandler

func (*ICefPermissionHandler) Free

func (m *ICefPermissionHandler) Free()

func (*ICefPermissionHandler) Instance

func (m *ICefPermissionHandler) Instance() uintptr

Instance 实例

func (*ICefPermissionHandler) IsValid

func (m *ICefPermissionHandler) IsValid() bool

func (*ICefPermissionHandler) OnDismissPermissionPrompt

func (m *ICefPermissionHandler) OnDismissPermissionPrompt(fn onDismissPermissionPrompt)

func (*ICefPermissionHandler) OnRequestMediaAccessPermission

func (m *ICefPermissionHandler) OnRequestMediaAccessPermission(fn onRequestMediaAccessPermission)

func (*ICefPermissionHandler) OnShowPermissionPrompt

func (m *ICefPermissionHandler) OnShowPermissionPrompt(fn onShowPermissionPrompt)

type ICefPermissionPromptCallback

type ICefPermissionPromptCallback struct {
	// contains filtered or unexported fields
}

ICefPermissionPromptCallback

/include/capi/cef_permission_handler_capi.h (cef_permission_prompt_callback_t)

func (*ICefPermissionPromptCallback) Cont

func (*ICefPermissionPromptCallback) Free

func (m *ICefPermissionPromptCallback) Free()

func (*ICefPermissionPromptCallback) Instance

func (m *ICefPermissionPromptCallback) Instance() uintptr

Instance 实例

func (*ICefPermissionPromptCallback) IsValid

func (m *ICefPermissionPromptCallback) IsValid() bool

type ICefPostData

type ICefPostData struct {
	// contains filtered or unexported fields
}

ICefPostData

func (*ICefPostData) AddElement

func (m *ICefPostData) AddElement(postDataElement *ICefPostDataElement) bool

func (*ICefPostData) GetElementCount

func (m *ICefPostData) GetElementCount() uint32

func (*ICefPostData) GetElements

func (m *ICefPostData) GetElements() *TCefPostDataElementArray

func (*ICefPostData) HasExcludedElements

func (m *ICefPostData) HasExcludedElements() bool

func (*ICefPostData) Instance

func (m *ICefPostData) Instance() uintptr

Instance 实例

func (*ICefPostData) IsReadOnly

func (m *ICefPostData) IsReadOnly() bool

func (*ICefPostData) IsValid

func (m *ICefPostData) IsValid() bool

func (*ICefPostData) RemoveElement

func (m *ICefPostData) RemoveElement(postDataElement *ICefPostDataElement) bool

func (*ICefPostData) RemoveElements

func (m *ICefPostData) RemoveElements()

type ICefPostDataElement

type ICefPostDataElement struct {
	// contains filtered or unexported fields
}

ICefPostDataElement

func (*ICefPostDataElement) GetBytes

func (m *ICefPostDataElement) GetBytes() (result []byte, count uint32)

func (*ICefPostDataElement) GetBytesCount

func (m *ICefPostDataElement) GetBytesCount() uint32

func (*ICefPostDataElement) GetFile

func (m *ICefPostDataElement) GetFile() string

func (*ICefPostDataElement) GetType

func (*ICefPostDataElement) Instance

func (m *ICefPostDataElement) Instance() uintptr

Instance 实例

func (*ICefPostDataElement) IsReadOnly

func (m *ICefPostDataElement) IsReadOnly() bool

func (*ICefPostDataElement) IsValid

func (m *ICefPostDataElement) IsValid() bool

func (*ICefPostDataElement) SetToBytes

func (m *ICefPostDataElement) SetToBytes(bytes []byte)

func (*ICefPostDataElement) SetToEmpty

func (m *ICefPostDataElement) SetToEmpty()

func (*ICefPostDataElement) SetToFile

func (m *ICefPostDataElement) SetToFile(fileName string)

type ICefPrintDialogCallback

type ICefPrintDialogCallback struct {
	// contains filtered or unexported fields
}

ICefPrintDialogCallback

func (*ICefPrintDialogCallback) Cancel

func (m *ICefPrintDialogCallback) Cancel()

func (*ICefPrintDialogCallback) Cont

func (m *ICefPrintDialogCallback) Cont(settings *ICefPrintSettings)

func (*ICefPrintDialogCallback) Free

func (m *ICefPrintDialogCallback) Free()

func (*ICefPrintDialogCallback) Instance

func (m *ICefPrintDialogCallback) Instance() uintptr

Instance 实例

func (*ICefPrintDialogCallback) IsValid

func (m *ICefPrintDialogCallback) IsValid() bool

type ICefPrintHandler

type ICefPrintHandler struct {
	// contains filtered or unexported fields
}

ICefPrintHandler

func (*ICefPrintHandler) Free

func (m *ICefPrintHandler) Free()

func (*ICefPrintHandler) Instance

func (m *ICefPrintHandler) Instance() uintptr

Instance 实例

func (*ICefPrintHandler) IsValid

func (m *ICefPrintHandler) IsValid() bool

func (*ICefPrintHandler) SetGetPDFPaperSize

func (m *ICefPrintHandler) SetGetPDFPaperSize(fn getPDFPaperSize)

func (*ICefPrintHandler) SetOnPrintDialog

func (m *ICefPrintHandler) SetOnPrintDialog(fn onPrintDialog)

func (*ICefPrintHandler) SetOnPrintJob

func (m *ICefPrintHandler) SetOnPrintJob(fn onPrintJob)

func (*ICefPrintHandler) SetOnPrintReset

func (m *ICefPrintHandler) SetOnPrintReset(fn onPrintReset)

func (*ICefPrintHandler) SetOnPrintSettings

func (m *ICefPrintHandler) SetOnPrintSettings(fn onPrintSettings)

func (*ICefPrintHandler) SetOnPrintStart

func (m *ICefPrintHandler) SetOnPrintStart(fn onPrintStart)

type ICefPrintJobCallback

type ICefPrintJobCallback struct {
	// contains filtered or unexported fields
}

ICefPrintJobCallback

func (*ICefPrintJobCallback) Cont

func (m *ICefPrintJobCallback) Cont()

func (*ICefPrintJobCallback) Free

func (m *ICefPrintJobCallback) Free()

func (*ICefPrintJobCallback) Instance

func (m *ICefPrintJobCallback) Instance() uintptr

Instance 实例

func (*ICefPrintJobCallback) IsValid

func (m *ICefPrintJobCallback) IsValid() bool

type ICefPrintSettings

type ICefPrintSettings struct {
	// contains filtered or unexported fields
}

ICefPrintSettings

func (*ICefPrintSettings) Free

func (m *ICefPrintSettings) Free()

func (*ICefPrintSettings) GetColorModel

func (m *ICefPrintSettings) GetColorModel() consts.TCefColorModel

func (*ICefPrintSettings) GetCopies

func (m *ICefPrintSettings) GetCopies() int32

func (*ICefPrintSettings) GetDeviceName

func (m *ICefPrintSettings) GetDeviceName() string

func (*ICefPrintSettings) GetDpi

func (m *ICefPrintSettings) GetDpi() int32

func (*ICefPrintSettings) GetDuplexMode

func (m *ICefPrintSettings) GetDuplexMode() consts.TCefDuplexMode

func (*ICefPrintSettings) GetPageRanges

func (m *ICefPrintSettings) GetPageRanges() []TCefRange

func (*ICefPrintSettings) GetPageRangesCount

func (m *ICefPrintSettings) GetPageRangesCount() uint32

func (*ICefPrintSettings) Instance

func (m *ICefPrintSettings) Instance() uintptr

Instance 实例

func (*ICefPrintSettings) IsLandscape

func (m *ICefPrintSettings) IsLandscape() bool

func (*ICefPrintSettings) IsReadOnly

func (m *ICefPrintSettings) IsReadOnly() bool

func (*ICefPrintSettings) IsSelectionOnly

func (m *ICefPrintSettings) IsSelectionOnly() bool

func (*ICefPrintSettings) IsValid

func (m *ICefPrintSettings) IsValid() bool

func (*ICefPrintSettings) SetCollate

func (m *ICefPrintSettings) SetCollate(collate bool)

func (*ICefPrintSettings) SetColorModel

func (m *ICefPrintSettings) SetColorModel(model consts.TCefColorModel)

func (*ICefPrintSettings) SetCopies

func (m *ICefPrintSettings) SetCopies(copies int32)

func (*ICefPrintSettings) SetDeviceName

func (m *ICefPrintSettings) SetDeviceName(name string)

func (*ICefPrintSettings) SetDpi

func (m *ICefPrintSettings) SetDpi(dpi int32)

func (*ICefPrintSettings) SetDuplexMode

func (m *ICefPrintSettings) SetDuplexMode(mode consts.TCefDuplexMode)

func (*ICefPrintSettings) SetOrientation

func (m *ICefPrintSettings) SetOrientation(landscape bool)

func (*ICefPrintSettings) SetPageRanges

func (m *ICefPrintSettings) SetPageRanges(ranges []TCefRange)

func (*ICefPrintSettings) SetPrinterPrintableArea

func (m *ICefPrintSettings) SetPrinterPrintableArea(physicalSizeDeviceUnits *TCefSize, printableAreaDeviceUnits *TCefRect, landscapeNeedsFlip bool)

func (*ICefPrintSettings) SetSelectionOnly

func (m *ICefPrintSettings) SetSelectionOnly(selectionOnly bool)

func (*ICefPrintSettings) WillCollate

func (m *ICefPrintSettings) WillCollate() bool

type ICefProcessMessage

type ICefProcessMessage struct {
	// contains filtered or unexported fields
}

ICefProcessMessage

func (*ICefProcessMessage) ArgumentList

func (m *ICefProcessMessage) ArgumentList() *ICefListValue

ArgumentList 参数列表

func (*ICefProcessMessage) Copy

func (*ICefProcessMessage) Free

func (m *ICefProcessMessage) Free()

func (*ICefProcessMessage) Instance

func (m *ICefProcessMessage) Instance() uintptr

Instance 实例

func (*ICefProcessMessage) IsValid

func (m *ICefProcessMessage) IsValid() bool

func (*ICefProcessMessage) Name

func (m *ICefProcessMessage) Name() string

type ICefRenderHandler

type ICefRenderHandler struct {
	// contains filtered or unexported fields
}

ICefRenderHandler

func (*ICefRenderHandler) Free

func (m *ICefRenderHandler) Free()

func (*ICefRenderHandler) Instance

func (m *ICefRenderHandler) Instance() uintptr

Instance 实例

func (*ICefRenderHandler) IsValid

func (m *ICefRenderHandler) IsValid() bool

func (*ICefRenderHandler) SetGetAccessibilityHandler

func (m *ICefRenderHandler) SetGetAccessibilityHandler(fn renderHandlerGetAccessibilityHandler)

func (*ICefRenderHandler) SetGetRootScreenRect

func (m *ICefRenderHandler) SetGetRootScreenRect(fn renderHandlerGetRootScreenRect)

func (*ICefRenderHandler) SetGetScreenInfo

func (m *ICefRenderHandler) SetGetScreenInfo(fn renderHandlerGetScreenInfo)

func (*ICefRenderHandler) SetGetScreenPoint

func (m *ICefRenderHandler) SetGetScreenPoint(fn renderHandlerGetScreenPoint)

func (*ICefRenderHandler) SetGetTouchHandleSize

func (m *ICefRenderHandler) SetGetTouchHandleSize(fn renderHandlerGetTouchHandleSize)

func (*ICefRenderHandler) SetGetViewRect

func (m *ICefRenderHandler) SetGetViewRect(fn renderHandlerGetViewRect)

func (*ICefRenderHandler) SetOnAcceleratedPaint

func (m *ICefRenderHandler) SetOnAcceleratedPaint(fn renderHandlerOnAcceleratedPaint)

func (*ICefRenderHandler) SetOnIMECompositionRangeChanged

func (m *ICefRenderHandler) SetOnIMECompositionRangeChanged(fn renderHandlerOnIMECompositionRangeChanged)

func (*ICefRenderHandler) SetOnPaint

func (m *ICefRenderHandler) SetOnPaint(fn renderHandlerOnPaint)

func (*ICefRenderHandler) SetOnPopupShow

func (m *ICefRenderHandler) SetOnPopupShow(fn renderHandlerOnPopupShow)

func (*ICefRenderHandler) SetOnPopupSize

func (m *ICefRenderHandler) SetOnPopupSize(fn renderHandlerOnPopupSize)

func (*ICefRenderHandler) SetOnScrollOffsetChanged

func (m *ICefRenderHandler) SetOnScrollOffsetChanged(fn renderHandlerOnScrollOffsetChanged)

func (*ICefRenderHandler) SetOnStartDragging

func (m *ICefRenderHandler) SetOnStartDragging(fn renderHandlerOnStartDragging)

func (*ICefRenderHandler) SetOnTextSelectionChanged

func (m *ICefRenderHandler) SetOnTextSelectionChanged(fn renderHandlerOnTextSelectionChanged)

func (*ICefRenderHandler) SetOnTouchHandleStateChanged

func (m *ICefRenderHandler) SetOnTouchHandleStateChanged(fn renderHandlerOnTouchHandleStateChanged)

func (*ICefRenderHandler) SetOnUpdateDragCursor

func (m *ICefRenderHandler) SetOnUpdateDragCursor(fn renderHandlerOnUpdateDragCursor)

func (*ICefRenderHandler) SetOnVirtualKeyboardRequested

func (m *ICefRenderHandler) SetOnVirtualKeyboardRequested(fn renderHandlerOnVirtualKeyboardRequested)

type ICefRequest

type ICefRequest struct {
	// contains filtered or unexported fields
}

ICefRequest

func (*ICefRequest) Flags

func (m *ICefRequest) Flags() TCefUrlRequestFlags

func (*ICefRequest) Free

func (m *ICefRequest) Free()

func (*ICefRequest) GetFirstPartyForCookies

func (m *ICefRequest) GetFirstPartyForCookies() string

func (*ICefRequest) GetHeaderByName

func (m *ICefRequest) GetHeaderByName(name string) string

GetHeaderByName

func (*ICefRequest) GetHeaderMap

func (m *ICefRequest) GetHeaderMap() *ICefStringMultiMap

GetHeaderMap

func (*ICefRequest) GetPostData

func (m *ICefRequest) GetPostData() *ICefPostData

func (*ICefRequest) Identifier

func (m *ICefRequest) Identifier() (result uint64)

func (*ICefRequest) Instance

func (m *ICefRequest) Instance() uintptr

Instance 实例

func (*ICefRequest) IsReadOnly

func (m *ICefRequest) IsReadOnly() bool

IsReadOnly 是否只读

func (*ICefRequest) IsValid

func (m *ICefRequest) IsValid() bool

func (*ICefRequest) Method

func (m *ICefRequest) Method() string

func (*ICefRequest) ReferrerPolicy

func (m *ICefRequest) ReferrerPolicy() TCefReferrerPolicy

func (*ICefRequest) ReferrerUrl

func (m *ICefRequest) ReferrerUrl() string

func (*ICefRequest) ResourceType

func (m *ICefRequest) ResourceType() TCefResourceType

func (*ICefRequest) SetFirstPartyForCookies

func (m *ICefRequest) SetFirstPartyForCookies(url string)

SetFirstPartyForCookies

func (*ICefRequest) SetFlags

func (m *ICefRequest) SetFlags(flags TCefUrlRequestFlags)

SetFlags 设置请求标记

func (*ICefRequest) SetHeaderByName

func (m *ICefRequest) SetHeaderByName(name, value string, overwrite bool)

SetHeaderByName

func (*ICefRequest) SetHeaderMap

func (m *ICefRequest) SetHeaderMap(headerMap *ICefStringMultiMap)

func (*ICefRequest) SetMethod

func (m *ICefRequest) SetMethod(method string)

SetMethod 设置请求方式

func (*ICefRequest) SetPostData

func (m *ICefRequest) SetPostData(value *ICefPostData)

func (*ICefRequest) SetReferrer

func (m *ICefRequest) SetReferrer(referrerUrl string, policy TCefReferrerPolicy)

SetReferrer 设置来源策略

func (*ICefRequest) SetURL

func (m *ICefRequest) SetURL(url string)

SetURL 设置URL

func (*ICefRequest) TransitionType

func (m *ICefRequest) TransitionType() TCefTransitionType

func (*ICefRequest) URL

func (m *ICefRequest) URL() string

type ICefRequestContext

type ICefRequestContext struct {
	// contains filtered or unexported fields
}

ICefRequestContext

func (*ICefRequestContext) CanSetPreference

func (m *ICefRequestContext) CanSetPreference(name string) bool

func (*ICefRequestContext) ClearCertificateExceptions

func (m *ICefRequestContext) ClearCertificateExceptions(callback *ICefCompletionCallback)

func (*ICefRequestContext) ClearHttpAuthCredentials

func (m *ICefRequestContext) ClearHttpAuthCredentials(callback *ICefCompletionCallback)

func (*ICefRequestContext) ClearSchemeHandlerFactories

func (m *ICefRequestContext) ClearSchemeHandlerFactories() bool

func (*ICefRequestContext) CloseAllConnections

func (m *ICefRequestContext) CloseAllConnections(callback *ICefCompletionCallback)

func (*ICefRequestContext) DidLoadExtension

func (m *ICefRequestContext) DidLoadExtension(extensionId string)

func (*ICefRequestContext) Free

func (m *ICefRequestContext) Free()

func (*ICefRequestContext) GetAllPreferences

func (m *ICefRequestContext) GetAllPreferences(includeDefaults bool) *ICefDictionaryValue

func (*ICefRequestContext) GetCachePath

func (m *ICefRequestContext) GetCachePath() string

func (*ICefRequestContext) GetCookieManager

func (m *ICefRequestContext) GetCookieManager(callback *ICefCompletionCallback) *ICefCookieManager

func (*ICefRequestContext) GetExtension

func (m *ICefRequestContext) GetExtension(extensionId string) *ICefExtension

func (*ICefRequestContext) GetExtensions

func (m *ICefRequestContext) GetExtensions() (result []string, ok bool)

func (*ICefRequestContext) GetHandler

func (*ICefRequestContext) GetPreference

func (m *ICefRequestContext) GetPreference(name string) *ICefValue

func (*ICefRequestContext) HasExtension

func (m *ICefRequestContext) HasExtension(extensionId string)

func (*ICefRequestContext) HasPreference

func (m *ICefRequestContext) HasPreference(name string) bool

func (*ICefRequestContext) Instance

func (m *ICefRequestContext) Instance() uintptr

Instance 实例

func (*ICefRequestContext) IsGlobal

func (m *ICefRequestContext) IsGlobal() bool

func (*ICefRequestContext) IsSame

func (m *ICefRequestContext) IsSame(other *ICefRequestContext) bool

func (*ICefRequestContext) IsSharingWith

func (m *ICefRequestContext) IsSharingWith(other *ICefRequestContext) bool

func (*ICefRequestContext) IsValid

func (m *ICefRequestContext) IsValid() bool

func (*ICefRequestContext) LoadExtension

func (m *ICefRequestContext) LoadExtension(rootDirectory string, manifest *ICefDictionaryValue, handler *ICefExtensionHandler)

func (*ICefRequestContext) RegisterSchemeHandlerFactory

func (m *ICefRequestContext) RegisterSchemeHandlerFactory(schemeName, domainName string, factory *ICefSchemeHandlerFactory) bool

RegisterSchemeHandlerFactory

func (*ICefRequestContext) ResolveHost

func (m *ICefRequestContext) ResolveHost(origin string)

ResolveHost TODO ICefResolveCallback

func (*ICefRequestContext) SetPreference

func (m *ICefRequestContext) SetPreference(name string, value *ICefValue) (error string, ok bool)

type ICefRequestContextHandler

type ICefRequestContextHandler struct {
	// contains filtered or unexported fields
}

ICefRequestContextHandler

func (*ICefRequestContextHandler) Free

func (m *ICefRequestContextHandler) Free()

func (*ICefRequestContextHandler) Instance

func (m *ICefRequestContextHandler) Instance() uintptr

Instance 实例

func (*ICefRequestContextHandler) IsChromiumEvent

func (m *ICefRequestContextHandler) IsChromiumEvent() bool

func (*ICefRequestContextHandler) IsTClientEvent

func (m *ICefRequestContextHandler) IsTClientEvent() bool

func (*ICefRequestContextHandler) IsValid

func (m *ICefRequestContextHandler) IsValid() bool

func (*ICefRequestContextHandler) SetGetResourceRequestHandler

func (m *ICefRequestContextHandler) SetGetResourceRequestHandler(fn getResourceRequestHandler)

func (*ICefRequestContextHandler) SetOnRequestContextInitialized

func (m *ICefRequestContextHandler) SetOnRequestContextInitialized(fn onRequestContextInitialized)

type ICefRequestHandler

type ICefRequestHandler struct {
	// contains filtered or unexported fields
}

ICefRequestHandler

func (*ICefRequestHandler) Free

func (m *ICefRequestHandler) Free()

func (*ICefRequestHandler) Instance

func (m *ICefRequestHandler) Instance() uintptr

Instance 实例

func (*ICefRequestHandler) IsValid

func (m *ICefRequestHandler) IsValid() bool

func (*ICefRequestHandler) SetGetAuthCredentials

func (m *ICefRequestHandler) SetGetAuthCredentials(fn requestHandlerGetAuthCredentials)

func (*ICefRequestHandler) SetGetResourceRequestHandler

func (m *ICefRequestHandler) SetGetResourceRequestHandler(fn requestHandlerGetResourceRequestHandler)

func (*ICefRequestHandler) SetOnBeforeBrowse

func (m *ICefRequestHandler) SetOnBeforeBrowse(fn requestHandlerOnBeforeBrowse)

func (*ICefRequestHandler) SetOnCertificateError

func (m *ICefRequestHandler) SetOnCertificateError(fn requestHandlerOnCertificateError)

func (*ICefRequestHandler) SetOnDocumentAvailableInMainFrame

func (m *ICefRequestHandler) SetOnDocumentAvailableInMainFrame(fn requestHandlerOnDocumentAvailableInMainFrame)

func (*ICefRequestHandler) SetOnOpenUrlFromTab

func (m *ICefRequestHandler) SetOnOpenUrlFromTab(fn requestHandlerOnOpenUrlFromTab)

func (*ICefRequestHandler) SetOnRenderProcessTerminated

func (m *ICefRequestHandler) SetOnRenderProcessTerminated(fn requestHandlerOnRenderProcessTerminated)

func (*ICefRequestHandler) SetOnRenderViewReady

func (m *ICefRequestHandler) SetOnRenderViewReady(fn requestHandlerOnRenderViewReady)

func (*ICefRequestHandler) SetOnSelectClientCertificate

func (m *ICefRequestHandler) SetOnSelectClientCertificate(fn requestHandlerOnSelectClientCertificate)

type ICefResourceHandler

type ICefResourceHandler struct {
	// contains filtered or unexported fields
}

ICefResourceHandler

/include/capi/cef_resource_handler_capi.h (cef_resource_handler_t)

func (*ICefResourceHandler) Cancel

func (m *ICefResourceHandler) Cancel(fn resourceHandlerCancel)

func (*ICefResourceHandler) Free

func (m *ICefResourceHandler) Free()

func (*ICefResourceHandler) GetResponseHeaders

func (m *ICefResourceHandler) GetResponseHeaders(fn resourceHandlerGetResponseHeaders)

func (*ICefResourceHandler) Instance

func (m *ICefResourceHandler) Instance() uintptr

Instance 实例

func (*ICefResourceHandler) IsValid

func (m *ICefResourceHandler) IsValid() bool

func (*ICefResourceHandler) Open

func (m *ICefResourceHandler) Open(fn resourceHandlerOpen)

func (*ICefResourceHandler) ProcessRequest

func (m *ICefResourceHandler) ProcessRequest(fn resourceHandlerProcessRequest)

ProcessRequest deprecated

func (*ICefResourceHandler) Read

func (m *ICefResourceHandler) Read(fn resourceHandlerRead)

func (*ICefResourceHandler) ReadResponse

func (m *ICefResourceHandler) ReadResponse(fn resourceHandlerReadResponse)

ReadResponse deprecated

func (*ICefResourceHandler) Skip

func (m *ICefResourceHandler) Skip(fn resourceHandlerSkip)

type ICefResourceReadCallback

type ICefResourceReadCallback struct {
	// contains filtered or unexported fields
}

ICefResourceReadCallback

/include/capi/cef_resource_handler_capi.h (cef_resource_read_callback_t)

func (*ICefResourceReadCallback) Cont

func (m *ICefResourceReadCallback) Cont(bytesSkipped int64)

func (*ICefResourceReadCallback) Free

func (m *ICefResourceReadCallback) Free()

func (*ICefResourceReadCallback) Instance

func (m *ICefResourceReadCallback) Instance() uintptr

Instance 实例

func (*ICefResourceReadCallback) IsValid

func (m *ICefResourceReadCallback) IsValid() bool

type ICefResourceRequestHandler

type ICefResourceRequestHandler struct {
	// contains filtered or unexported fields
}

ICefResourceRequestHandler

/include/capi/cef_resource_request_handler_capi.h (cef_resource_request_handler_t)

func (*ICefResourceRequestHandler) Free

func (m *ICefResourceRequestHandler) Free()

func (*ICefResourceRequestHandler) Instance

func (m *ICefResourceRequestHandler) Instance() uintptr

Instance 实例

func (*ICefResourceRequestHandler) IsChromiumEvent

func (m *ICefResourceRequestHandler) IsChromiumEvent() bool

func (*ICefResourceRequestHandler) IsTClientEvent

func (m *ICefResourceRequestHandler) IsTClientEvent() bool

func (*ICefResourceRequestHandler) IsValid

func (m *ICefResourceRequestHandler) IsValid() bool

func (*ICefResourceRequestHandler) SetGetCookieAccessFilter

func (m *ICefResourceRequestHandler) SetGetCookieAccessFilter(fn getCookieAccessFilter)

func (*ICefResourceRequestHandler) SetGetResourceHandler

func (m *ICefResourceRequestHandler) SetGetResourceHandler(fn getResourceHandler)

func (*ICefResourceRequestHandler) SetGetResourceResponseFilter

func (m *ICefResourceRequestHandler) SetGetResourceResponseFilter(fn getResourceResponseFilter)

func (*ICefResourceRequestHandler) SetOnBeforeResourceLoad

func (m *ICefResourceRequestHandler) SetOnBeforeResourceLoad(fn onBeforeResourceLoad)

func (*ICefResourceRequestHandler) SetOnProtocolExecution

func (m *ICefResourceRequestHandler) SetOnProtocolExecution(fn onProtocolExecution)

func (*ICefResourceRequestHandler) SetOnResourceLoadComplete

func (m *ICefResourceRequestHandler) SetOnResourceLoadComplete(fn onResourceLoadComplete)

func (*ICefResourceRequestHandler) SetOnResourceRedirect

func (m *ICefResourceRequestHandler) SetOnResourceRedirect(fn onResourceRedirect)

func (*ICefResourceRequestHandler) SetOnResourceResponse

func (m *ICefResourceRequestHandler) SetOnResourceResponse(fn onResourceResponse)

type ICefResourceSkipCallback

type ICefResourceSkipCallback struct {
	// contains filtered or unexported fields
}

ICefResourceSkipCallback

/include/capi/cef_resource_handler_capi.h (cef_resource_skip_callback_t)

func (*ICefResourceSkipCallback) Cont

func (m *ICefResourceSkipCallback) Cont(bytesRead int64)

func (*ICefResourceSkipCallback) Free

func (m *ICefResourceSkipCallback) Free()

func (*ICefResourceSkipCallback) Instance

func (m *ICefResourceSkipCallback) Instance() uintptr

Instance 实例

func (*ICefResourceSkipCallback) IsValid

func (m *ICefResourceSkipCallback) IsValid() bool

type ICefResponse

type ICefResponse struct {
	// contains filtered or unexported fields
}

ICefResponse

func (*ICefResponse) Charset

func (m *ICefResponse) Charset() string

func (*ICefResponse) Error

func (m *ICefResponse) Error() TCefErrorCode

func (*ICefResponse) Free

func (m *ICefResponse) Free()

func (*ICefResponse) GetHeaderByName

func (m *ICefResponse) GetHeaderByName(name string) string

GetHeaderByName

func (*ICefResponse) GetHeaderMap

func (m *ICefResponse) GetHeaderMap() *ICefStringMultiMap

GetHeaderMap

func (*ICefResponse) Instance

func (m *ICefResponse) Instance() uintptr

Instance 实例

func (*ICefResponse) IsReadOnly

func (m *ICefResponse) IsReadOnly() bool

IsReadOnly 是否只读

func (*ICefResponse) IsValid

func (m *ICefResponse) IsValid() bool

func (*ICefResponse) MimeType

func (m *ICefResponse) MimeType() string

func (*ICefResponse) SetCharset

func (m *ICefResponse) SetCharset(charset string)

SetCharset 设置编码

func (*ICefResponse) SetError

func (m *ICefResponse) SetError(error TCefErrorCode)

SetError 设置错误码

func (*ICefResponse) SetHeaderByName

func (m *ICefResponse) SetHeaderByName(name, value string, overwrite bool)

SetHeaderByName

func (*ICefResponse) SetHeaderMap

func (m *ICefResponse) SetHeaderMap(headerMap *ICefStringMultiMap)

GetHeaderMap

func (*ICefResponse) SetMimeType

func (m *ICefResponse) SetMimeType(mimetype string)

SetMimeType mime类型

func (*ICefResponse) SetStatus

func (m *ICefResponse) SetStatus(status int32)

SetStatus 设置状态码

func (*ICefResponse) SetStatusText

func (m *ICefResponse) SetStatusText(statusText string)

SetStatusText 设置状态文本

func (*ICefResponse) SetURL

func (m *ICefResponse) SetURL(url string)

SetURL 设置URL

func (*ICefResponse) Status

func (m *ICefResponse) Status() int32

func (*ICefResponse) StatusText

func (m *ICefResponse) StatusText() string

func (*ICefResponse) URL

func (m *ICefResponse) URL() string

type ICefResponseFilter

type ICefResponseFilter struct {
	// contains filtered or unexported fields
}

ICefResponseFilter

/include/capi/cef_response_filter_capi.h (cef_response_filter_t)

func (*ICefResponseFilter) Filter

func (m *ICefResponseFilter) Filter(fn responseFilterFilter)

func (*ICefResponseFilter) Free

func (m *ICefResponseFilter) Free()

func (*ICefResponseFilter) InitFilter

func (m *ICefResponseFilter) InitFilter(fn responseFilterInitFilter)

func (*ICefResponseFilter) Instance

func (m *ICefResponseFilter) Instance() uintptr

Instance 实例

func (*ICefResponseFilter) IsValid

func (m *ICefResponseFilter) IsValid() bool

type ICefRunContextMenuCallback

type ICefRunContextMenuCallback struct {
	// contains filtered or unexported fields
}

ICefRunContextMenuCallback

/include/capi/cef_context_menu_handler_capi.h (cef_run_context_menu_callback_t)

func (*ICefRunContextMenuCallback) Cancel

func (m *ICefRunContextMenuCallback) Cancel()

func (*ICefRunContextMenuCallback) Cont

func (m *ICefRunContextMenuCallback) Cont(commandId int32, eventFlags consts.TCefEventFlags)

func (*ICefRunContextMenuCallback) Free

func (m *ICefRunContextMenuCallback) Free()

func (*ICefRunContextMenuCallback) Instance

func (m *ICefRunContextMenuCallback) Instance() uintptr

Instance 实例

func (*ICefRunContextMenuCallback) IsValid

func (m *ICefRunContextMenuCallback) IsValid() bool

type ICefRunQuickMenuCallback

type ICefRunQuickMenuCallback struct {
	// contains filtered or unexported fields
}

ICefRunQuickMenuCallback

/include/capi/cef_context_menu_handler_capi.h (cef_run_quick_menu_callback_t)

func (*ICefRunQuickMenuCallback) Cancel

func (m *ICefRunQuickMenuCallback) Cancel()

func (*ICefRunQuickMenuCallback) Cont

func (m *ICefRunQuickMenuCallback) Cont(commandId int32, eventFlags consts.TCefEventFlags)

func (*ICefRunQuickMenuCallback) Free

func (m *ICefRunQuickMenuCallback) Free()

func (*ICefRunQuickMenuCallback) Instance

func (m *ICefRunQuickMenuCallback) Instance() uintptr

Instance 实例

func (*ICefRunQuickMenuCallback) IsValid

func (m *ICefRunQuickMenuCallback) IsValid() bool

type ICefSchemeHandlerFactory

type ICefSchemeHandlerFactory struct {
	// contains filtered or unexported fields
}

ICefSchemeHandlerFactory

/include/capi/cef_scheme_capi.h (cef_scheme_handler_factory_t)

func (*ICefSchemeHandlerFactory) Free

func (m *ICefSchemeHandlerFactory) Free()

func (*ICefSchemeHandlerFactory) Instance

func (m *ICefSchemeHandlerFactory) Instance() uintptr

Instance 实例

func (*ICefSchemeHandlerFactory) IsValid

func (m *ICefSchemeHandlerFactory) IsValid() bool

func (*ICefSchemeHandlerFactory) SetNew

func (m *ICefSchemeHandlerFactory) SetNew(fn schemeHandlerFactoryNew)

type ICefSelectClientCertificateCallback

type ICefSelectClientCertificateCallback struct {
	// contains filtered or unexported fields
}

ICefSelectClientCertificateCallback

/include/capi/cef_request_handler_capi.h (cef_select_client_certificate_callback_t)

func (*ICefSelectClientCertificateCallback) Free

func (*ICefSelectClientCertificateCallback) Instance

Instance 实例

func (*ICefSelectClientCertificateCallback) IsValid

func (*ICefSelectClientCertificateCallback) Select

type ICefSetCookieCallback

type ICefSetCookieCallback struct {
	// contains filtered or unexported fields
}

ICefSetCookieCallback

func (*ICefSetCookieCallback) Free

func (m *ICefSetCookieCallback) Free()

func (*ICefSetCookieCallback) Instance

func (m *ICefSetCookieCallback) Instance() uintptr

Instance 实例

func (*ICefSetCookieCallback) IsChromiumEvent

func (m *ICefSetCookieCallback) IsChromiumEvent() bool

func (*ICefSetCookieCallback) IsTClientEvent

func (m *ICefSetCookieCallback) IsTClientEvent() bool

func (*ICefSetCookieCallback) IsValid

func (m *ICefSetCookieCallback) IsValid() bool

func (*ICefSetCookieCallback) SetOnComplete

func (m *ICefSetCookieCallback) SetOnComplete(fn setCookieOnComplete)

type ICefSslInfo

type ICefSslInfo struct {
	// contains filtered or unexported fields
}

ICefSslInfo

/include/capi/cef_ssl_info_capi.h (cef_sslinfo_t)

func (*ICefSslInfo) Free

func (m *ICefSslInfo) Free()

func (*ICefSslInfo) GetCertStatus

func (m *ICefSslInfo) GetCertStatus() consts.TCefCertStatus

func (*ICefSslInfo) GetX509Certificate

func (m *ICefSslInfo) GetX509Certificate() *ICefX509Certificate

func (*ICefSslInfo) Instance

func (m *ICefSslInfo) Instance() uintptr

Instance 实例

func (*ICefSslInfo) IsValid

func (m *ICefSslInfo) IsValid() bool

type ICefStreamReader

type ICefStreamReader struct {
	// contains filtered or unexported fields
}

ICefStreamReader

func (*ICefStreamReader) Eof

func (m *ICefStreamReader) Eof() bool

func (*ICefStreamReader) Free

func (m *ICefStreamReader) Free()

func (*ICefStreamReader) Instance

func (m *ICefStreamReader) Instance() uintptr

Instance 实例

func (*ICefStreamReader) IsValid

func (m *ICefStreamReader) IsValid() bool

func (*ICefStreamReader) MayBlock

func (m *ICefStreamReader) MayBlock() bool

func (*ICefStreamReader) Read

func (m *ICefStreamReader) Read(data []byte, size, n uint32) uint32

func (*ICefStreamReader) Seek

func (m *ICefStreamReader) Seek(offset int64, whence int32) int32

func (*ICefStreamReader) Tell

func (m *ICefStreamReader) Tell() (result int64)

type ICefStreamWriter

type ICefStreamWriter struct {
	*TCefBaseRefCounted
}

ICefStreamWriter

/include/capi/cef_stream_capi.h (cef_stream_writer_t)

func (*ICefStreamWriter) Flush

func (m *ICefStreamWriter) Flush() int32

func (*ICefStreamWriter) MayBlock

func (m *ICefStreamWriter) MayBlock() bool

func (*ICefStreamWriter) Seek

func (m *ICefStreamWriter) Seek(offset int64, whence int32) int32

func (*ICefStreamWriter) Tell

func (m *ICefStreamWriter) Tell() (result int64)

func (*ICefStreamWriter) Write

func (m *ICefStreamWriter) Write(data []byte, size, n uint32) uint32

type ICefStringMultiMap

type ICefStringMultiMap struct {
	// contains filtered or unexported fields
}

ICefStringMultiMap 实例

func (*ICefStringMultiMap) Append

func (m *ICefStringMultiMap) Append(key, value string) bool

Append 给key追加值

func (*ICefStringMultiMap) Clear

func (m *ICefStringMultiMap) Clear()

Clear 清空

func (*ICefStringMultiMap) FindCount

func (m *ICefStringMultiMap) FindCount(key string) uint32

FindCount key值数量

func (*ICefStringMultiMap) GetEnumerate

func (m *ICefStringMultiMap) GetEnumerate(key string, index uint32) string

GetEnumerate 根据 key and index 获取

func (*ICefStringMultiMap) GetKey

func (m *ICefStringMultiMap) GetKey(index uint32) string

GetKey 根据 index 获取key

func (*ICefStringMultiMap) GetSize

func (m *ICefStringMultiMap) GetSize() uint32

GetSize 大小

func (*ICefStringMultiMap) GetValue

func (m *ICefStringMultiMap) GetValue(index uint32) string

GetValue 根据 index 获取value

func (*ICefStringMultiMap) Instance

func (m *ICefStringMultiMap) Instance() uintptr

Instance 实例

func (*ICefStringMultiMap) IsValid

func (m *ICefStringMultiMap) IsValid() bool

type ICefV8Accessor

type ICefV8Accessor struct {
	// contains filtered or unexported fields
}

ICefV8Accessor

func (*ICefV8Accessor) Destroy

func (m *ICefV8Accessor) Destroy()

func (*ICefV8Accessor) Free

func (m *ICefV8Accessor) Free()

func (*ICefV8Accessor) Get

func (m *ICefV8Accessor) Get(fn V8AccessorGet)

Get 读取函数

func (*ICefV8Accessor) Instance

func (m *ICefV8Accessor) Instance() uintptr

Instance 实例

func (*ICefV8Accessor) Set

func (m *ICefV8Accessor) Set(fn V8AccessorSet)

Set 写入访问函数

type ICefV8ArrayBufferReleaseCallback

type ICefV8ArrayBufferReleaseCallback struct {
	// contains filtered or unexported fields
}

ICefV8ArrayBufferReleaseCallback

func (*ICefV8ArrayBufferReleaseCallback) Instance

Instance 实例

func (*ICefV8ArrayBufferReleaseCallback) ReleaseBuffer

ReleaseBuffer 释放时回调函数, 默认自动释放

array buffer 缓存

返回 true:释放buffer, false:不释放buffer

type ICefV8Context

type ICefV8Context struct {
	// contains filtered or unexported fields
}

ICefV8Context

v8上下文对象

生命周期

  1. 在回调函数中有效
  2. 回调函数外使用 cef.V8ContextRef.Current() 获取上下文对象

func (*ICefV8Context) Browser

func (m *ICefV8Context) Browser() *ICefBrowser

func (*ICefV8Context) Enter

func (m *ICefV8Context) Enter() bool

Enter 进入上下文

func (*ICefV8Context) Eval

func (m *ICefV8Context) Eval(code, scriptUrl string, startLine int32) (value *ICefV8Value, exception *ICefV8Exception, ok bool)

func (*ICefV8Context) Exit

func (m *ICefV8Context) Exit() bool

Exit 退出上下文

func (*ICefV8Context) Frame

func (m *ICefV8Context) Frame() *ICefFrame

func (*ICefV8Context) Free

func (m *ICefV8Context) Free()

func (*ICefV8Context) Global

func (m *ICefV8Context) Global() *ICefV8Value

func (*ICefV8Context) Instance

func (m *ICefV8Context) Instance() uintptr

Instance 实例

func (*ICefV8Context) IsSame

func (m *ICefV8Context) IsSame(that *ICefV8Context) bool

func (*ICefV8Context) IsValid

func (m *ICefV8Context) IsValid() bool

type ICefV8Exception

type ICefV8Exception struct {
	// contains filtered or unexported fields
}

ICefV8Exception

func (*ICefV8Exception) EndColumn

func (m *ICefV8Exception) EndColumn() int32

func (*ICefV8Exception) EndPosition

func (m *ICefV8Exception) EndPosition() int32

func (*ICefV8Exception) Instance

func (m *ICefV8Exception) Instance() uintptr

Instance 实例

func (*ICefV8Exception) IsValid

func (m *ICefV8Exception) IsValid() bool

func (*ICefV8Exception) LineNumber

func (m *ICefV8Exception) LineNumber() int32

func (*ICefV8Exception) Message

func (m *ICefV8Exception) Message() string

func (*ICefV8Exception) ScriptResourceName

func (m *ICefV8Exception) ScriptResourceName() string

func (*ICefV8Exception) SourceLine

func (m *ICefV8Exception) SourceLine() string

func (*ICefV8Exception) StartColumn

func (m *ICefV8Exception) StartColumn() int32

func (*ICefV8Exception) StartPosition

func (m *ICefV8Exception) StartPosition() int32

type ICefV8Handler

type ICefV8Handler struct {
	// contains filtered or unexported fields
}

ICefV8Handler

func (*ICefV8Handler) Destroy

func (m *ICefV8Handler) Destroy()

func (*ICefV8Handler) Execute

func (m *ICefV8Handler) Execute(fn V8HandlerExecute)

Execute 执行拦截函数

func (*ICefV8Handler) Instance

func (m *ICefV8Handler) Instance() uintptr

Instance 实例

type ICefV8Interceptor

type ICefV8Interceptor struct {
	// contains filtered or unexported fields
}

ICefV8Interceptor

func (*ICefV8Interceptor) Destroy

func (m *ICefV8Interceptor) Destroy()

Destroy 销毁这个拦截器

func (*ICefV8Interceptor) GetByIndex

func (m *ICefV8Interceptor) GetByIndex(fn V8InterceptorGetByIndex)

GetByIndex 拦截函数 根据index获取一个值

func (*ICefV8Interceptor) GetByName

func (m *ICefV8Interceptor) GetByName(fn V8InterceptorGetByName)

GetByName 拦截函数 根据name获取一个值

func (*ICefV8Interceptor) Instance

func (m *ICefV8Interceptor) Instance() uintptr

Instance 实例

func (*ICefV8Interceptor) SetByIndex

func (m *ICefV8Interceptor) SetByIndex(fn V8InterceptorSetByIndex)

SetByIndex 拦截函数 根据index设置一个值

func (*ICefV8Interceptor) SetByName

func (m *ICefV8Interceptor) SetByName(fn V8InterceptorSetByName)

SetByName 拦截函数 根据name设置一个值

type ICefV8StackTrace

type ICefV8StackTrace struct {
	// contains filtered or unexported fields
}

ICefV8StackTrace

type ICefV8Value

type ICefV8Value struct {
	// contains filtered or unexported fields
}

ICefV8Value

func (*ICefV8Value) AdjustExternallyAllocatedMemory

func (m *ICefV8Value) AdjustExternallyAllocatedMemory(changeInBytes int32) int32

func (*ICefV8Value) ClearException

func (m *ICefV8Value) ClearException() bool

func (*ICefV8Value) DeleteValueByIndex

func (m *ICefV8Value) DeleteValueByIndex(index int) bool

func (*ICefV8Value) DeleteValueByKey

func (m *ICefV8Value) DeleteValueByKey(key string) bool

DeleteValueByKey export

func (*ICefV8Value) ExecuteFunction

func (m *ICefV8Value) ExecuteFunction(obj *ICefV8Value, arguments *TCefV8ValueArray) *ICefV8Value

func (*ICefV8Value) ExecuteFunctionWithContext

func (m *ICefV8Value) ExecuteFunctionWithContext(v8Context *ICefV8Context, obj *ICefV8Value, arguments *TCefV8ValueArray) *ICefV8Value

func (*ICefV8Value) ExecuteFunctionWithContextForArgsBytes

func (m *ICefV8Value) ExecuteFunctionWithContextForArgsBytes(v8Context *ICefV8Context, obj *ICefV8Value, arguments []byte) *ICefV8Value

func (*ICefV8Value) Free

func (m *ICefV8Value) Free()

func (*ICefV8Value) GetArrayBufferReleaseCallback

func (m *ICefV8Value) GetArrayBufferReleaseCallback() *ICefV8ArrayBufferReleaseCallback

func (*ICefV8Value) GetArrayLength

func (m *ICefV8Value) GetArrayLength() int

func (*ICefV8Value) GetBoolValue

func (m *ICefV8Value) GetBoolValue() bool

func (*ICefV8Value) GetDateValue

func (m *ICefV8Value) GetDateValue() time.Time

func (*ICefV8Value) GetDoubleValue

func (m *ICefV8Value) GetDoubleValue() (result float64)

func (*ICefV8Value) GetExternallyAllocatedMemory

func (m *ICefV8Value) GetExternallyAllocatedMemory() int32

func (*ICefV8Value) GetFunctionHandler

func (m *ICefV8Value) GetFunctionHandler() *ICefV8Handler

func (*ICefV8Value) GetFunctionName

func (m *ICefV8Value) GetFunctionName() string

func (*ICefV8Value) GetIKeys

func (m *ICefV8Value) GetIKeys() types.IV8ValueKeys

func (*ICefV8Value) GetIntValue

func (m *ICefV8Value) GetIntValue() int32

func (*ICefV8Value) GetKeys

func (m *ICefV8Value) GetKeys() *ICefV8ValueKeys

func (*ICefV8Value) GetStringValue

func (m *ICefV8Value) GetStringValue() string

func (*ICefV8Value) GetUIntValue

func (m *ICefV8Value) GetUIntValue() uint32

func (*ICefV8Value) GetUserData

func (m *ICefV8Value) GetUserData() *ICefV8Value

func (*ICefV8Value) GetValueByIndex

func (m *ICefV8Value) GetValueByIndex(index int) *ICefV8Value

GetValueByIndex 当前是数组时,通过下标取值V8Value

func (*ICefV8Value) GetValueByKey

func (m *ICefV8Value) GetValueByKey(key string) *ICefV8Value

GetValueByKey export

func (*ICefV8Value) HasValueByIndex

func (m *ICefV8Value) HasValueByIndex(index int32) bool

func (*ICefV8Value) HasValueByKey

func (m *ICefV8Value) HasValueByKey(key string) bool

func (*ICefV8Value) Instance

func (m *ICefV8Value) Instance() uintptr

func (*ICefV8Value) IsArray

func (m *ICefV8Value) IsArray() bool

func (*ICefV8Value) IsArrayBuffer

func (m *ICefV8Value) IsArrayBuffer() bool

func (*ICefV8Value) IsBool

func (m *ICefV8Value) IsBool() bool

func (*ICefV8Value) IsDate

func (m *ICefV8Value) IsDate() bool

func (*ICefV8Value) IsDouble

func (m *ICefV8Value) IsDouble() bool

func (*ICefV8Value) IsFunction

func (m *ICefV8Value) IsFunction() bool

func (*ICefV8Value) IsInt

func (m *ICefV8Value) IsInt() bool

func (*ICefV8Value) IsNull

func (m *ICefV8Value) IsNull() bool

func (*ICefV8Value) IsObject

func (m *ICefV8Value) IsObject() bool

func (*ICefV8Value) IsPromise

func (m *ICefV8Value) IsPromise() bool

func (*ICefV8Value) IsSame

func (m *ICefV8Value) IsSame() bool

func (*ICefV8Value) IsString

func (m *ICefV8Value) IsString() bool

func (*ICefV8Value) IsUInt

func (m *ICefV8Value) IsUInt() bool

func (*ICefV8Value) IsUndefined

func (m *ICefV8Value) IsUndefined() bool

func (*ICefV8Value) IsUserCreated

func (m *ICefV8Value) IsUserCreated() bool

func (*ICefV8Value) IsValid

func (m *ICefV8Value) IsValid() bool

func (*ICefV8Value) NeuterArrayBuffer

func (m *ICefV8Value) NeuterArrayBuffer() bool

func (*ICefV8Value) RejectPromise

func (m *ICefV8Value) RejectPromise(errorMsg string) bool

func (*ICefV8Value) ResolvePromise

func (m *ICefV8Value) ResolvePromise(arg *ICefV8Value) bool

func (*ICefV8Value) SetCanNotFree

func (m *ICefV8Value) SetCanNotFree(v bool)

func (*ICefV8Value) SetRethrowExceptions

func (m *ICefV8Value) SetRethrowExceptions(reThrow bool) bool

func (*ICefV8Value) SetUserData

func (m *ICefV8Value) SetUserData(data *ICefV8Value) bool

func (*ICefV8Value) SetValueByAccessor

func (m *ICefV8Value) SetValueByAccessor(key string, settings consts.TCefV8AccessControls, attribute consts.TCefV8PropertyAttributes) bool

SetValueByAccessor export

func (*ICefV8Value) SetValueByIndex

func (m *ICefV8Value) SetValueByIndex(index int32, value *ICefV8Value) bool

func (*ICefV8Value) SetValueByKey

func (m *ICefV8Value) SetValueByKey(key string, value *ICefV8Value, attribute consts.TCefV8PropertyAttributes) bool

SetValueByKey export

func (*ICefV8Value) WillRethrowExceptions

func (m *ICefV8Value) WillRethrowExceptions() bool

type ICefV8ValueKeys

type ICefV8ValueKeys struct {
	// contains filtered or unexported fields
}

ICefV8ValueKeys

func (*ICefV8ValueKeys) Count

func (m *ICefV8ValueKeys) Count() int

func (*ICefV8ValueKeys) Free

func (m *ICefV8ValueKeys) Free()

func (*ICefV8ValueKeys) Get

func (m *ICefV8ValueKeys) Get(index int) string

type ICefValue

type ICefValue struct {
	// contains filtered or unexported fields
}

ICefValue -> ArgumentList

func (*ICefValue) Copy

func (m *ICefValue) Copy() *ICefValue

func (*ICefValue) Free

func (m *ICefValue) Free()

func (*ICefValue) GetBinary

func (m *ICefValue) GetBinary() *ICefBinaryValue

func (*ICefValue) GetBool

func (m *ICefValue) GetBool() bool

func (*ICefValue) GetDictionary

func (m *ICefValue) GetDictionary() *ICefDictionaryValue

func (*ICefValue) GetDouble

func (m *ICefValue) GetDouble() (result float64)

func (*ICefValue) GetIArray

func (m *ICefValue) GetIArray() types.IArrayValue

func (*ICefValue) GetIBinary

func (m *ICefValue) GetIBinary() types.IBinaryValue

func (*ICefValue) GetIObject

func (m *ICefValue) GetIObject() types.IObjectValue

func (*ICefValue) GetInt

func (m *ICefValue) GetInt() int32

func (*ICefValue) GetList

func (m *ICefValue) GetList() *ICefListValue

func (*ICefValue) GetString

func (m *ICefValue) GetString() string

func (*ICefValue) GetType

func (m *ICefValue) GetType() consts.TCefValueType

func (*ICefValue) Instance

func (m *ICefValue) Instance() uintptr

Instance 实例

func (*ICefValue) IsOwned

func (m *ICefValue) IsOwned() bool

func (*ICefValue) IsReadOnly

func (m *ICefValue) IsReadOnly() bool

func (*ICefValue) IsValid

func (m *ICefValue) IsValid() bool

func (*ICefValue) SetBinary

func (m *ICefValue) SetBinary(value *ICefBinaryValue) (result bool)

func (*ICefValue) SetBool

func (m *ICefValue) SetBool(value bool) bool

func (*ICefValue) SetDictionary

func (m *ICefValue) SetDictionary(value *ICefDictionaryValue) (result bool)

func (*ICefValue) SetDouble

func (m *ICefValue) SetDouble(value float64) bool

func (*ICefValue) SetInt

func (m *ICefValue) SetInt(value int32) bool

func (*ICefValue) SetList

func (m *ICefValue) SetList(value *ICefListValue) (result bool)

func (*ICefValue) SetNull

func (m *ICefValue) SetNull() bool

func (*ICefValue) SetString

func (m *ICefValue) SetString(value string) bool

type ICefView

type ICefView struct {
	// contains filtered or unexported fields
}

ICefView

func (*ICefView) Instance

func (m *ICefView) Instance() uintptr

Instance 实例

type ICefWindow

type ICefWindow struct {
	// contains filtered or unexported fields
}

ICefWindow

func (*ICefWindow) Activate

func (m *ICefWindow) Activate()

Activate 激活窗口

func (*ICefWindow) AddOverlayView

func (m *ICefWindow) AddOverlayView()

AddOverlayView TODO 未实现

func (*ICefWindow) BringToTop

func (m *ICefWindow) BringToTop()

BringToTop 将窗口移至最上层

func (*ICefWindow) CancelMenu

func (m *ICefWindow) CancelMenu()

CancelMenu 取消菜单

func (*ICefWindow) CenterWindow

func (m *ICefWindow) CenterWindow(size *TCefSize)

CenterWindow 根据大小窗口居中

func (*ICefWindow) ClientAreaBoundsInScreen

func (m *ICefWindow) ClientAreaBoundsInScreen() (result TCefRect)

ClientAreaBoundsInScreen 获取客户端所在指定屏幕位置

func (*ICefWindow) Close

func (m *ICefWindow) Close()

Close 关闭窗口, 主窗口调用

func (*ICefWindow) Deactivate

func (m *ICefWindow) Deactivate()

Deactivate 停止激活窗口

func (*ICefWindow) Display

func (m *ICefWindow) Display() *ICefDisplay

Display

func (*ICefWindow) Free

func (m *ICefWindow) Free()

func (*ICefWindow) Hide

func (m *ICefWindow) Hide()

Hide 显示窗口

func (*ICefWindow) Instance

func (m *ICefWindow) Instance() uintptr

func (*ICefWindow) IsActive

func (m *ICefWindow) IsActive() bool

IsActive 是否激活

func (*ICefWindow) IsAlwaysOnTop

func (m *ICefWindow) IsAlwaysOnTop() bool

IsAlwaysOnTop 窗口是否置顶

func (*ICefWindow) IsClosed

func (m *ICefWindow) IsClosed() bool

IsClosed 是否关闭

func (*ICefWindow) IsFullscreen

func (m *ICefWindow) IsFullscreen() bool

IsFullscreen 是否全屏

func (*ICefWindow) IsMaximized

func (m *ICefWindow) IsMaximized() bool

IsMaximized 是否最大化

func (*ICefWindow) IsMinimized

func (m *ICefWindow) IsMinimized() bool

IsMinimized 是否最小化

func (*ICefWindow) Maximize

func (m *ICefWindow) Maximize()

Maximize 最大化窗口

func (*ICefWindow) Minimize

func (m *ICefWindow) Minimize()

Minimize 最小化窗口

func (*ICefWindow) RemoveAccelerator

func (m *ICefWindow) RemoveAccelerator(commandId int32)

RemoveAccelerator 移除指定快捷键

func (*ICefWindow) RemoveAllAccelerators

func (m *ICefWindow) RemoveAllAccelerators()

RemoveAllAccelerators 移除所有快捷键

func (*ICefWindow) Restore

func (m *ICefWindow) Restore()

Restore 窗口还原

func (*ICefWindow) SendKeyPress

func (m *ICefWindow) SendKeyPress(keyCode int32, eventFlags uint32)

SendKeyPress 发送键盘事件

func (*ICefWindow) SendMouseEvents

func (m *ICefWindow) SendMouseEvents(button consts.TCefMouseButtonType, mouseDown, mouseUp bool)

SendMouseEvents 发送鼠标事件

func (*ICefWindow) SendMouseMove

func (m *ICefWindow) SendMouseMove(screenX, screenY int32)

SendMouseMove 发送鼠标移动事件

func (*ICefWindow) SetAccelerator

func (m *ICefWindow) SetAccelerator(commandId, keyCode int32, shiftPressed, ctrlPressed, altPressed bool)

SetAccelerator 设置快捷键

func (*ICefWindow) SetAlwaysOnTop

func (m *ICefWindow) SetAlwaysOnTop(onTop bool)

SetAlwaysOnTop 设置窗口是否置顶

func (*ICefWindow) SetBackgroundColor

func (m *ICefWindow) SetBackgroundColor(rect *types.TCefColor)

SetBackgroundColor 设置背景色

func (*ICefWindow) SetBounds

func (m *ICefWindow) SetBounds(rect *TCefRect)

SetBounds 设置窗口边界

func (*ICefWindow) SetDraggableRegions

func (m *ICefWindow) SetDraggableRegions(regions []TCefDraggableRegion)

SetDraggableRegions 设置拖拽区域

func (*ICefWindow) SetFullscreen

func (m *ICefWindow) SetFullscreen(fullscreen bool)

SetFullscreen 设置窗口全屏

func (*ICefWindow) SetPosition

func (m *ICefWindow) SetPosition(point *TCefPoint)

SetPosition 设置窗口位置

func (*ICefWindow) SetSize

func (m *ICefWindow) SetSize(size *TCefSize)

SetSize 设置窗口宽高

func (*ICefWindow) SetTitle

func (m *ICefWindow) SetTitle(title string)

SetTitle 设置窗口标题

func (*ICefWindow) SetWindow

func (m *ICefWindow) SetWindow(window *ICefWindow)

func (*ICefWindow) SetWindowAppIcon

func (m *ICefWindow) SetWindowAppIcon(scaleFactor float32, filename string) error

SetWindowAppIcon 设置窗口应用图标

func (*ICefWindow) SetWindowAppIconFS

func (m *ICefWindow) SetWindowAppIconFS(scaleFactor float32, filename string) error

SetWindowAppIconFS 设置窗口应用图标

func (*ICefWindow) SetWindowIcon

func (m *ICefWindow) SetWindowIcon(scaleFactor float32, filename string) error

SetWindowIcon 设置窗口图标

func (*ICefWindow) SetWindowIconFS

func (m *ICefWindow) SetWindowIconFS(scaleFactor float32, filename string) error

SetWindowIconFS 设置窗口图标

func (*ICefWindow) Show

func (m *ICefWindow) Show()

Show 显示窗口

func (*ICefWindow) ShowMenu

func (m *ICefWindow) ShowMenu(menuModel *ICefMenuModel, point TCefPoint, anchorPosition consts.TCefMenuAnchorPosition)

ShowMenu 显示菜单

func (*ICefWindow) Title

func (m *ICefWindow) Title() string

Title 获取窗口标题

func (*ICefWindow) WindowAppIcon

func (m *ICefWindow) WindowAppIcon() *ICefImage

WindowAppIcon 获取窗口应用图标

func (*ICefWindow) WindowHandle

func (m *ICefWindow) WindowHandle() consts.TCefWindowHandle

WindowHandle 获取窗口句柄

func (*ICefWindow) WindowIcon

func (m *ICefWindow) WindowIcon() *ICefImage

WindowIcon 获取窗口图标

func (*ICefWindow) WindowState

func (m *ICefWindow) WindowState() t.TWindowState

WindowState 返回窗口最小化、最大化、全屏状态

type ICefX509CertPrincipal

type ICefX509CertPrincipal struct {
	// contains filtered or unexported fields
}

ICefX509CertPrincipal /include/capi/cef_x509_certificate_capi.h (cef_x509cert_principal_t)

func (*ICefX509CertPrincipal) Free

func (m *ICefX509CertPrincipal) Free()

func (*ICefX509CertPrincipal) GetCommonName

func (m *ICefX509CertPrincipal) GetCommonName() string

func (*ICefX509CertPrincipal) GetCountryName

func (m *ICefX509CertPrincipal) GetCountryName() string

func (*ICefX509CertPrincipal) GetDisplayName

func (m *ICefX509CertPrincipal) GetDisplayName() string

func (*ICefX509CertPrincipal) GetDomainComponents

func (m *ICefX509CertPrincipal) GetDomainComponents() *lcl.TStrings

func (*ICefX509CertPrincipal) GetLocalityName

func (m *ICefX509CertPrincipal) GetLocalityName() string

func (*ICefX509CertPrincipal) GetOrganizationNames

func (m *ICefX509CertPrincipal) GetOrganizationNames() *lcl.TStrings

func (*ICefX509CertPrincipal) GetOrganizationUnitNames

func (m *ICefX509CertPrincipal) GetOrganizationUnitNames() *lcl.TStrings

func (*ICefX509CertPrincipal) GetStateOrProvinceName

func (m *ICefX509CertPrincipal) GetStateOrProvinceName() string

func (*ICefX509CertPrincipal) GetStreetAddresses

func (m *ICefX509CertPrincipal) GetStreetAddresses() *lcl.TStrings

func (*ICefX509CertPrincipal) Instance

func (m *ICefX509CertPrincipal) Instance() uintptr

Instance 实例

func (*ICefX509CertPrincipal) IsValid

func (m *ICefX509CertPrincipal) IsValid() bool

type ICefX509Certificate

type ICefX509Certificate struct {
	// contains filtered or unexported fields
}

ICefX509Certificate

/include/capi/cef_x509_certificate_capi.h (cef_x509certificate_t)

func (*ICefX509Certificate) Free

func (m *ICefX509Certificate) Free()

func (*ICefX509Certificate) GetDEREncodedIssuerChain

func (m *ICefX509Certificate) GetDEREncodedIssuerChain(chainCount uint32) *TCefBinaryValueArray

func (*ICefX509Certificate) GetDerEncoded

func (m *ICefX509Certificate) GetDerEncoded() *ICefBinaryValue

func (*ICefX509Certificate) GetIssuer

func (*ICefX509Certificate) GetIssuerChainSize

func (m *ICefX509Certificate) GetIssuerChainSize() uint32

func (*ICefX509Certificate) GetPEMEncodedIssuerChain

func (m *ICefX509Certificate) GetPEMEncodedIssuerChain(chainCount uint32) *TCefBinaryValueArray

func (*ICefX509Certificate) GetPemEncoded

func (m *ICefX509Certificate) GetPemEncoded() *ICefBinaryValue

func (*ICefX509Certificate) GetSerialNumber

func (m *ICefX509Certificate) GetSerialNumber() *ICefBinaryValue

func (*ICefX509Certificate) GetSubject

func (m *ICefX509Certificate) GetSubject() *ICefX509CertPrincipal

func (*ICefX509Certificate) GetValidExpiry

func (m *ICefX509Certificate) GetValidExpiry() (result int64)

func (*ICefX509Certificate) GetValidExpiryAsDateTime

func (m *ICefX509Certificate) GetValidExpiryAsDateTime() time.Time

func (*ICefX509Certificate) GetValidStart

func (m *ICefX509Certificate) GetValidStart() (result int64)

func (*ICefX509Certificate) GetValidStartAsDateTime

func (m *ICefX509Certificate) GetValidStartAsDateTime() time.Time

func (*ICefX509Certificate) Instance

func (m *ICefX509Certificate) Instance() uintptr

Instance 实例

func (*ICefX509Certificate) IsValid

func (m *ICefX509Certificate) IsValid() bool

type IChromium

type IChromium interface {
	IChromiumProc
	IChromiumEvent
}

IChromium 组件接口

func NewChromium

func NewChromium(owner lcl.IComponent, config *tCefChromiumConfig) IChromium

NewChromium 创建一个新的 TCEFChromium

type IChromiumEvent

type IChromiumEvent interface {
	lcl.IObject
	SetOnAfterCreated(fn chromiumEventOnAfterCreated)
	SetOnBeforeBrowser(fn chromiumEventOnBeforeBrowser)
	SetOnAddressChange(fn chromiumEventOnAddressChange)
	SetOnBeforeClose(fn chromiumEventOnBeforeClose)
	SetOnClose(fn chromiumEventOnClose)
	SetOnPdfPrintFinished(fn chromiumEventOnPdfPrintFinished)
	SetOnZoomPctAvailable(fn chromiumEventOnResultFloat)
	SetOnLoadStart(fn chromiumEventOnLoadStart)
	SetOnLoadingStateChange(fn chromiumEventOnLoadingStateChange)
	SetOnLoadingProgressChange(fn chromiumEventOnLoadingProgressChange)
	SetOnLoadError(fn chromiumEventOnLoadError)
	SetOnLoadEnd(fn chromiumEventOnLoadEnd)
	SetOnBeforeDownload(fn chromiumEventOnBeforeDownload)
	SetOnDownloadUpdated(fn chromiumEventOnDownloadUpdated)
	SetOnFullScreenModeChange(fn chromiumEventOnFullScreenModeChange)
	SetOnKeyEvent(fn chromiumEventOnKeyEvent)
	SetOnTitleChange(fn chromiumEventOnTitleChange)
	SetOnRenderCompMsg(fn chromiumEventOnCompMsg)
	SetOnWidgetCompMsg(fn chromiumEventOnCompMsg)
	SetOnBrowserCompMsg(fn chromiumEventOnCompMsg)
	SetOnRenderProcessTerminated(fn chromiumEventOnRenderProcessTerminated)
	SetOnRenderViewReady(fn chromiumEventOnRenderViewReady)
	SetOnScrollOffsetChanged(fn chromiumEventOnScrollOffsetChanged)
	SetOnProcessMessageReceived(fn BrowseProcessMessageReceived)
	SetOnFindResult(fn chromiumEventOnFindResult)
	SetOnBeforeResourceLoad(fn chromiumEventOnBeforeResourceLoad)
	SetOnResourceResponse(fn chromiumEventOnResourceResponse)
	SetOnResourceRedirect(fn chromiumEventOnResourceRedirect)
	SetOnResourceLoadComplete(fn chromiumEventOnResourceLoadComplete)
	SetOnCookieSet(fn chromiumEventOnCookieSet)
	SetOnCookiesDeleted(fn chromiumEventOnCookiesDeleted)
	SetOnCookiesFlushed(fn chromiumEventOnCookiesFlushed)
	SetOnCookiesVisited(fn chromiumEventOnCookiesVisited)
	SetOnCookieVisitorDestroyed(fn chromiumEventOnCookieVisitorDestroyed)
	SetOnBeforeContextMenu(fn chromiumEventOnBeforeContextMenu)
	SetOnContextMenuCommand(fn chromiumEventOnContextMenuCommand)
	SetOnContextMenuDismissed(fn chromiumEventOnContextMenuDismissed)
	SetOnFrameAttached(fn chromiumEventOnFrameAttached)
	SetOnFrameCreated(fn chromiumEventOnFrameCreated)
	SetOnFrameDetached(fn chromiumEventOnFrameDetached)
	SetOnMainFrameChanged(fn chromiumEventOnMainFrameChanged)
	SetOnBeforePopup(fn chromiumEventOnBeforePopup)
	SetOnOpenUrlFromTab(fn chromiumEventOnOpenUrlFromTab)
	SetOnDragEnter(fn chromiumEventOnDragEnter)
	SetOnDraggableRegionsChanged(fn chromiumEventOnDraggableRegionsChanged)
	SetOnGetAuthCredentials(fn chromiumEventOnGetAuthCredentials)
	SetOnAcceleratedPaint(fn chromiumEventOnAcceleratedPaint)
	SetOnAllConnectionsClosed(fn chromiumEventOnAllConnectionsClosed)
	SetOnAudioStreamError(fn chromiumEventOnAudioStreamError)
	SetOnAudioStreamPacket(fn chromiumEventOnAudioStreamPacket)
	SetOnAudioStreamStarted(fn chromiumEventOnAudioStreamStarted)
	SetOnAudioStreamStopped(fn chromiumEventOnAudioStreamStopped)
	SetOnAutoResize(fn chromiumEventOnAutoResize)
	SetOnBeforeUnloadDialog(fn chromiumEventOnBeforeUnloadDialog)
	SetOnCanDownload(fn chromiumEventOnCanDownload)
	SetOnCanSaveCookie(fn chromiumEventOnCanSaveCookie)
	SetOnCanSendCookie(fn chromiumEventOnCanSendCookie)
	SetOnCertificateError(fn chromiumEventOnCertificateError)
	SetOnCertificateExceptionsCleared(fn chromiumEventOnCertificateExceptionsCleared)
	SetOnChromeCommand(fn chromiumEventOnChromeCommand)
	SetOnConsoleMessage(fn chromiumEventOnConsoleMessage)
	SetOnCursorChange(fn chromiumEventOnCursorChange)
	SetOnDevToolsAgentAttached(fn chromiumEventOnDevToolsAgentAttached)
	SetOnDevToolsAgentDetached(fn chromiumEventOnDevToolsAgentDetached)
	SetOnDevToolsEvent(fn chromiumEventOnDevToolsEvent)
	SetOnDevToolsMessage(fn chromiumEventOnDevToolsMessage)
	SetOnDevToolsMethodRawResult(fn chromiumEventOnDevToolsMethodRawResult)
	SetOnDevToolsMethodResult(fn chromiumEventOnDevToolsMethodResult)
	SetOnDevToolsRawEvent(fn chromiumEventOnDevToolsRawEvent)
	SetOnDevToolsRawMessage(fn chromiumEventOnDevToolsRawMessage)
	SetOnDialogClosed(fn chromiumEventOnDialogClosed)
	SetOnDismissPermissionPrompt(fn chromiumEventOnDismissPermissionPrompt)
	SetOnDocumentAvailableInMainFrame(fn chromiumEventOnDocumentAvailableInMainFrame)
	SetOnDownloadImageFinished(fn chromiumEventOnDownloadImageFinished)
	SetOnExecuteTaskOnCefThread(fn chromiumEventOnExecuteTaskOnCefThread)
	SetOnExtensionBeforeBackgroundBrowser(fn chromiumEventOnExtensionBeforeBackgroundBrowser)
	SetOnExtensionBeforeBrowser(fn chromiumEventOnExtensionBeforeBrowser)
	SetOnExtensionCanAccessBrowser(fn chromiumEventOnExtensionCanAccessBrowser)
	SetOnExtensionGetActiveBrowser(fn chromiumEventOnExtensionGetActiveBrowser)
	SetOnExtensionGetExtensionResource(fn chromiumEventOnExtensionGetExtensionResource)
	SetOnExtensionLoaded(fn chromiumEventOnExtensionLoaded)
	SetOnExtensionLoadFailed(fn chromiumEventOnExtensionLoadFailed)
	SetOnExtensionUnloaded(fn chromiumEventOnExtensionUnloaded)
	SetOnFavIconUrlChange(fn chromiumEventOnFavIconUrlChange)
	SetOnFileDialog(fn chromiumEventOnFileDialog)
	SetOnGetAccessibilityHandler(fn chromiumEventOnGetAccessibilityHandler)
	SetOnGetAudioParameters(fn chromiumEventOnGetAudioParameters)
	SetOnGetResourceHandler(fn chromiumEventOnGetResourceHandler)
	SetOnGetResourceRequestHandlerReqCtxHdlr(fn chromiumEventOnGetResourceRequestHandlerReqCtxHdlr)
	SetOnGetResourceRequestHandlerReqHdlr(fn chromiumEventOnGetResourceRequestHandlerReqHdlr)
	SetOnGetResourceResponseFilter(fn chromiumEventOnGetResourceResponseFilter)
	SetOnGetRootScreenRect(fn chromiumEventOnGetRootScreenRect)
	SetOnGetScreenInfo(fn chromiumEventOnGetScreenInfo)
	SetOnGetScreenPoint(fn chromiumEventOnGetScreenPoint)
	SetOnGetTouchHandleSize(fn chromiumEventOnGetTouchHandleSize)
	SetOnGetViewRect(fn chromiumEventOnGetViewRect)
	SetOnGotFocus(fn chromiumEventOnGotFocus)
	SetOnHttpAuthCredentialsCleared(fn chromiumEventOnHttpAuthCredentialsCleared)
	SetOnIMECompositionRangeChanged(fn chromiumEventOnIMECompositionRangeChanged)
	SetOnJsDialog(fn chromiumEventOnJsDialog)
	SetOnMediaAccessChange(fn chromiumEventOnMediaAccessChange)
	SetOnMediaRouteCreateFinished(fn chromiumEventOnMediaRouteCreateFinished)
	SetOnMediaSinkDeviceInfo(fn chromiumEventOnMediaSinkDeviceInfo)
	SetOnNavigationVisitorResultAvailable(fn chromiumEventOnNavigationVisitorResultAvailable)
	SetOnPaint(fn chromiumEventOnPaint)
	SetOnPopupShow(fn chromiumEventOnPopupShow)
	SetOnPopupSize(fn chromiumEventOnPopupSize)
	SetOnPrefsAvailable(fn chromiumEventOnPrefsAvailable)
	SetOnPrefsUpdated(fn chromiumEventOnPrefsUpdated)
	SetOnPreKeyEvent(fn chromiumEventOnPreKeyEvent)
	SetOnProtocolExecution(fn chromiumEventOnProtocolExecution)
	SetOnQuickMenuCommand(fn chromiumEventOnQuickMenuCommand)
	SetOnQuickMenuDismissed(fn chromiumEventOnQuickMenuDismissed)
	SetOnRequestContextInitialized(fn chromiumEventOnRequestContextInitialized)
	SetOnRequestMediaAccessPermission(fn chromiumEventOnRequestMediaAccessPermission)
	SetOnResetDialogState(fn chromiumEventOnResetDialogState)
	SetOnResolvedHostAvailable(fn chromiumEventOnResolvedHostAvailable)
	SetOnRouteMessageReceived(fn chromiumEventOnRouteMessageReceived)
	SetOnRoutes(fn chromiumEventOnRoutes)
	SetOnRouteStateChanged(fn chromiumEventOnRouteStateChanged)
	SetOnRunContextMenu(fn chromiumEventOnRunContextMenu)
	SetOnRunQuickMenu(fn chromiumEventOnRunQuickMenu)
	SetOnSelectClientCertificate(fn chromiumEventOnSelectClientCertificate)
	SetOnSetFocus(fn chromiumEventOnSetFocus)
	SetOnShowPermissionPrompt(fn chromiumEventOnShowPermissionPrompt)
	SetOnSinks(fn chromiumEventOnSinks)
	SetOnStartDragging(fn chromiumEventOnStartDragging)
	SetOnStatusMessage(fn chromiumEventOnStatusMessage)
	SetOnTakeFocus(fn chromiumEventOnTakeFocus)
	SetOnTextResultAvailable(fn chromiumEventOnTextResultAvailable)
	SetOnTextSelectionChanged(fn chromiumEventOnTextSelectionChanged)
	SetOnTooltip(fn chromiumEventOnTooltip)
	SetOnTouchHandleStateChanged(fn chromiumEventOnTouchHandleStateChanged)
	SetOnUpdateDragCursor(fn chromiumEventOnUpdateDragCursor)
	SetOnVirtualKeyboardRequested(fn chromiumEventOnVirtualKeyboardRequested)
}

IChromiumEvent Chromium 事件行为接口

type IChromiumProc

type IChromiumProc interface {
	lcl.IObject
	Instance() uintptr
	ChromiumConfig() *tCefChromiumConfig
	Browser() *ICefBrowser
	BrowserById(id int32) *ICefBrowser
	BrowserIdByIndex(index int32) int32
	BrowserCount() int32
	BrowserId() int32
	SetDefaultURL(defaultURL string)
	SetEnableMultiBrowserMode(enableMultiBrowserMode bool)
	LoadUrl(url string)
	LoadHtml(html string)
	StartDownload(url string)
	DownloadImage(imageUrl string, isFavicon bool, maxImageSize int32, bypassCache bool)
	Reload()
	ReloadIgnoreCache()
	StopLoad()
	ResetZoomLevel()
	CloseAllBrowsers()
	CreateBrowser(window ICEFWindowParent) bool
	CreateBrowserByBrowserViewComponent(homePage string, browserViewComponent *TCEFBrowserViewComponent) bool
	Initialized() bool
	IsSameBrowser(browser *ICefBrowser) bool
	PrintToPDF(saveFilePath string)
	Print()
	BrowserZoom(zoom ZOOM)
	GoBack()
	GoForward()
	NotifyMoveOrResizeStarted()
	CloseBrowser(forceClose bool)
	ExecuteJavaScript(code, scriptURL string, startLine int32)
	ShowDevTools(window ICEFWindowParent)
	CloseDevTools(window ICEFWindowParent)
	VisitAllCookies(id int32)
	VisitURLCookies(url string, includeHttpOnly bool, id int32)
	DeleteCookies(url, cookieName string, deleteImmediately bool)
	SetCookie(url, name, value, domain, path string,
		secure, httponly, hasExpires bool,
		creation, lastAccess, expires time.Time,
		sameSite TCefCookieSameSite, priority TCefCookiePriority, aSetImmediately bool, aID int32)
	SetProxy(cefProxy *TCefProxy)
	UpdatePreferences()
	ExecuteDevToolsMethod(messageId int32, method string, dictionaryValue *ICefDictionaryValue)
	//SendProcessMessage(targetProcess CefProcessId, processMessage *ICefProcessMessage)
	CefClient() *ICefClient
	SendProcessMessageForJSONBytes(name string, targetProcess CefProcessId, message argument.IList)
	CreateClientHandler(client *ICefClient, alsOSR bool) bool
	SetFocus(value bool)
	SendCaptureLostEvent()
	FrameIsFocused() bool
	TryCloseBrowser() bool
	BrowserHandle() types.HWND
	WidgetHandle() types.HWND
	RenderHandle() types.HWND
	SetCustomHeader(customHeader *TCustomHeader)
	CustomHeader() *TCustomHeader
	SetJavascriptEnabled(value bool)
	JavascriptEnabled() bool
	SetWebRTCIPHandlingPolicy(value TCefWebRTCHandlingPolicy)
	WebRTCIPHandlingPolicy() TCefWebRTCHandlingPolicy
	SetWebRTCMultipleRoutes(value TCefState)
	WebRTCMultipleRoutes() TCefState
	SetWebRTCNonproxiedUDP(value TCefState)
	WebRTCNonproxiedUDP() TCefState
	SetBatterySaverModeState(value TCefBatterySaverModeState)
	BatterySaverModeState() TCefBatterySaverModeState
	SetHighEfficiencyMode(value TCefState)
	HighEfficiencyMode() TCefState
	SetLoadImagesAutomatically(value bool)
	LoadImagesAutomatically() bool
	SetQuicAllowed(value bool)
	QuicAllowed() bool
	SetOffline(value bool)
	Offline() bool
	SetDefaultWindowInfoExStyle(exStyle types.DWORD)
	DefaultWindowInfoExStyle() types.DWORD
	SetBlock3rdPartyCookies(value bool)
	Block3rdPartyCookies() bool
	SetAcceptCookies(cp TCefCookiePref)
	AcceptCookies() TCefCookiePref
	SetAcceptLanguageList(languageList string)
	AcceptLanguageList() string
	SetPrintingEnabled(value bool)
	PrintingEnabled() bool
	SetYouTubeRestrict(value bool)
	YouTubeRestrict() bool
	SetSafeSearch(value bool)
	SafeSearch() bool
	SetAudioMuted(value bool)
	AudioMuted() bool
	SetDragOperations(value TCefDragOperations)
	DragOperations() TCefDragOperations
	FrameCount() uint32
	SetSpellCheckerDicts(value string)
	SpellCheckerDicts() string
	SetSpellChecking(value bool)
	SpellChecking() bool
	SetAlwaysOpenPDFExternally(value bool)
	AlwaysOpenPDFExternally() bool
	SetAlwaysAuthorizePlugins(value bool)
	AlwaysAuthorizePlugins() bool
	SetAllowOutdatedPlugins(value bool)
	AllowOutdatedPlugins() bool
	SetSendReferrer(value bool)
	SendReferrer() bool
	SetDoNotTrack(value bool)
	DoNotTrack() bool
	SetZoomStep(value int8)
	ZoomStep() int8
	SetZoomPct(value float64)
	ZoomPct() float64
	SetZoomLevel(value float64)
	ZoomLevel() float64
	SetDefaultEncoding(value string)
	DefaultEncoding() string
}

IChromiumProc Chromium 功能函数接口

type ILCLBrowserWindow

type ILCLBrowserWindow interface {
	IBrowserWindow
	BrowserWindow() *LCLBrowserWindow //返回 LCLBrowserWindow 窗口结构
	EnableDefaultCloseEvent()         //启用默认关闭事件
	WindowParent() ICEFWindowParent   //浏览器父窗口组件
	DisableTransparent()              //禁用窗口透明
	EnableTransparent(value uint8)    //用用并设置窗口透明
	DisableSystemMenu()               //禁用标题栏系统菜单
	DisableHelp()                     //禁用标题栏帮助
	EnableSystemMenu()                //启用标题栏系统菜单
	EnableHelp()                      //启用标题栏帮助
	NewTray() ITray                   //创建LCL的系统托盘
}

ILCLBrowserWindow 浏览器 LCL 窗口组件接口 继承 IBrowserWindow

定义了LCL常用函数

type ITray

type ITray interface {
	SetTitle(title string) //SetTitle 设置标题
	Show()                 //Show 显示/启动 托盘

	SetOnClick(fn TrayICONClick)                 //SetOnClick 单击事件
	SetOnDblClick(fn TrayICONClick)              //SetOnDblClick 双击事件
	SetIconFS(iconResourcePath string)           //SetIconFS 设置托盘图标
	SetIcon(iconResourcePath string)             //SetIcon 设置托盘图标
	SetHint(value string)                        //SetHint 设置托盘hint(鼠标移动到托盘图标显示的文字)
	AsSysTray() *SysTray                         //AsSysTray 尝试转换为 SysTray 组件托盘,如果创建的是其它类型托盘返回nil
	AsViewsFrameTray() *ViewsFrameTray           //AsViewsFrameTray 尝试转换为 views framework 组件托盘, 如果创建的是其它类型托盘返回nil
	AsCEFTray() *CEFTray                         //AsCEFTray 尝试转换为 LCL+CEF 组件托盘, 如果创建的是其它类型托盘返回nil
	AsLCLTray() *LCLTray                         //AsLCLTray 尝试转换为 LCL 组件托盘, 如果创建的是其它类型托盘返回nil
	Notice(title, content string, timeout int32) //Notice 托盘系统通知
	// contains filtered or unexported methods
}

ITray 托盘定义接口

实现4种系统托盘 1: LCLTray LCL组件, 2: CEFTray CEF基于LCL组件+html, 3: ViewsFrameTray VF(views framework)组件+html, 4: SysTray 系统原生

1. LCLTray 对Windows、MacOSX支持较好,linux由于gtk2与gtk3原因目前无法正常使用

2. CEFTray Windows

3. ViewsFrameTray Windows

4. SysTray 对Windows、MacOSX和Linux支持较好

type IViewsFrameworkBrowserWindow

type IViewsFrameworkBrowserWindow interface {
	IBrowserWindow
	BrowserWindow() *ViewsFrameworkBrowserWindow                                //返回 ViewsFrameworkBrowserWindow 窗口结构
	CreateTopLevelWindow()                                                      //创建窗口, 在窗口组件中需要默认调用Show函数
	CenterWindow(size *TCefSize)                                                //设置窗口居中,同时指定窗口大小
	Component() lcl.IComponent                                                  //窗口父组件
	WindowComponent() *TCEFWindowComponent                                      //窗口组件
	BrowserViewComponent() *TCEFBrowserViewComponent                            //窗口浏览器组件
	SetOnWindowCreated(onWindowCreated WindowComponentOnWindowCreated)          //设置窗口默认的创建回调事件函数
	SetOnGetInitialBounds(onGetInitialBounds WindowComponentOnGetInitialBounds) //设置窗口初始bounds
}

IViewsFrameworkBrowserWindow 浏览器 VF 窗口组件接口 继承 IBrowserWindow

定义了ViewsFramework常用函数

type KeyEventCallback

type KeyEventCallback func(browse *ICefBrowser, event *TCefKeyEvent, result *bool)

type LCLBrowserWindow

type LCLBrowserWindow struct {
	*lcl.TForm //window form
	// contains filtered or unexported fields
}

LCLBrowserWindow 基于CEF lcl 窗口组件

该窗口使用CEF和LCL组件实现,CEF<=1.106.xx版本 在windows、MacOSX可正常使用, Linux无法输入中文, CEF>=2.107.xx版本linux强制使用 ViewsFrameworkBrowserWindow 窗口组件

func NewLCLBrowserWindow

func NewLCLBrowserWindow(config *tCefChromiumConfig, windowProperty WindowProperty, owner ...lcl.IComponent) *LCLBrowserWindow

NewLCLBrowserWindow 创建一个 LCL 带有 chromium 窗口

该窗口默认不具备默认事件处理能力, 通过 EnableDefaultEvent 函数注册事件处理

func NewLCLWindow

func NewLCLWindow(windowProperty WindowProperty, owner ...lcl.IComponent) *LCLBrowserWindow

NewLCLWindow 创建一个LCL window窗口

func (*LCLBrowserWindow) AsLCLBrowserWindow

func (m *LCLBrowserWindow) AsLCLBrowserWindow() ILCLBrowserWindow

AsLCLBrowserWindow 转换为LCL窗口组件,这里返回LCL窗口组件

func (*LCLBrowserWindow) AsViewsFrameworkBrowserWindow

func (m *LCLBrowserWindow) AsViewsFrameworkBrowserWindow() IViewsFrameworkBrowserWindow

AsViewsFrameworkBrowserWindow 转换为VF窗口组件,这里返回nil

func (*LCLBrowserWindow) Bounds

func (m *LCLBrowserWindow) Bounds() *TCefRect

Bounds 窗口坐标和宽高

func (*LCLBrowserWindow) Browser

func (m *LCLBrowserWindow) Browser() *ICefBrowser

Browser

func (*LCLBrowserWindow) BrowserWindow

func (m *LCLBrowserWindow) BrowserWindow() *LCLBrowserWindow

BrowserWindow 返回LCL窗口组件实例对象

func (*LCLBrowserWindow) Chromium

func (m *LCLBrowserWindow) Chromium() IChromium

Chromium 返回 chromium

func (*LCLBrowserWindow) ChromiumCreate

func (m *LCLBrowserWindow) ChromiumCreate(config *tCefChromiumConfig, defaultUrl string)

ChromiumCreate

创建window浏览器组件
不带有默认事件的chromium

func (*LCLBrowserWindow) Close

func (m *LCLBrowserWindow) Close()

Close 关闭窗口 非browser窗口使用

func (*LCLBrowserWindow) CloseBrowserWindow

func (m *LCLBrowserWindow) CloseBrowserWindow()

CloseBrowserWindow 关闭带有浏览器的窗口

func (*LCLBrowserWindow) DisableHelp

func (m *LCLBrowserWindow) DisableHelp()

DisableHelp 禁用帮助菜单

func (*LCLBrowserWindow) DisableMaximize

func (m *LCLBrowserWindow) DisableMaximize()

DisableMaximize 禁用最大化按钮

func (*LCLBrowserWindow) DisableMinimize

func (m *LCLBrowserWindow) DisableMinimize()

DisableMinimize 禁用最小化按钮

func (*LCLBrowserWindow) DisableResize

func (m *LCLBrowserWindow) DisableResize()

DisableResize 禁用调整窗口大小

func (*LCLBrowserWindow) DisableSystemMenu

func (m *LCLBrowserWindow) DisableSystemMenu()

DisableSystemMenu 禁用系统菜单-同时禁用最小化,最大化,关闭按钮

func (*LCLBrowserWindow) DisableTransparent

func (m *LCLBrowserWindow) DisableTransparent()

DisableTransparent 禁用口透明

func (*LCLBrowserWindow) EnableAllDefaultEvent

func (m *LCLBrowserWindow) EnableAllDefaultEvent()

EnableAllDefaultEvent 启用所有默认事件行为

func (*LCLBrowserWindow) EnableDefaultCloseEvent

func (m *LCLBrowserWindow) EnableDefaultCloseEvent()

EnableDefaultCloseEvent 启用默认关闭事件行为-该窗口将被关闭

func (*LCLBrowserWindow) EnableHelp

func (m *LCLBrowserWindow) EnableHelp()

EnableHelp 启用帮助菜单

func (*LCLBrowserWindow) EnableMaximize

func (m *LCLBrowserWindow) EnableMaximize()

EnableMaximize 启用最大化按钮

func (*LCLBrowserWindow) EnableMinimize

func (m *LCLBrowserWindow) EnableMinimize()

EnableMinimize 启用最小化按钮

func (*LCLBrowserWindow) EnableResize

func (m *LCLBrowserWindow) EnableResize()

EnableResize 启用允许调整窗口大小

func (*LCLBrowserWindow) EnableSystemMenu

func (m *LCLBrowserWindow) EnableSystemMenu()

EnableSystemMenu 启用系统菜单

func (*LCLBrowserWindow) EnableTransparent

func (m *LCLBrowserWindow) EnableTransparent(value uint8)

EnableTransparent 使窗口透明 value 0 ~ 255

func (*LCLBrowserWindow) FormCreate

func (m *LCLBrowserWindow) FormCreate()

FormCreate

创建窗口
不带有默认事件的窗口

func (*LCLBrowserWindow) Handle

func (m *LCLBrowserWindow) Handle() types.HWND

Handle 窗口句柄

func (*LCLBrowserWindow) Hide

func (m *LCLBrowserWindow) Hide()

Hide

func (*LCLBrowserWindow) HideTitle

func (m *LCLBrowserWindow) HideTitle()

隐藏标题栏

func (*LCLBrowserWindow) Id

func (m *LCLBrowserWindow) Id() int32

Id 浏览器窗口ID

func (*LCLBrowserWindow) IsClosing

func (m *LCLBrowserWindow) IsClosing() bool

IsClosing 返回窗口是否正在关闭/或已关闭 true正在或已关闭

func (*LCLBrowserWindow) IsLCL

func (m *LCLBrowserWindow) IsLCL() bool

IsLCL 返回是否LCL窗口组件,这里返回true

func (*LCLBrowserWindow) IsViewsFramework

func (m *LCLBrowserWindow) IsViewsFramework() bool

IsViewsFramework 返回是否VF窗口组件,这里返回false

func (*LCLBrowserWindow) Maximize

func (m *LCLBrowserWindow) Maximize()

for other platform maximize and restore

func (*LCLBrowserWindow) Minimize

func (m *LCLBrowserWindow) Minimize()

Minimize

func (*LCLBrowserWindow) NewCefTray

func (m *LCLBrowserWindow) NewCefTray(width, height int32, url string) ITray

NewCefTray LCL窗口组件 非windows系统不支持CefTray

func (*LCLBrowserWindow) NewSysTray

func (m *LCLBrowserWindow) NewSysTray() ITray

NewSysTray LCL窗口组件,系统托盘

func (*LCLBrowserWindow) NewTray

func (m *LCLBrowserWindow) NewTray() ITray

NewTray 适用于 windows linux macos 系统托盘

func (*LCLBrowserWindow) Point

func (m *LCLBrowserWindow) Point() *TCefPoint

Point 窗口坐标

func (*LCLBrowserWindow) Restore

func (m *LCLBrowserWindow) Restore()

Restore

func (*LCLBrowserWindow) SetBounds

func (m *LCLBrowserWindow) SetBounds(x, y, width, height int32)

SetBounds 设置窗口坐标和宽高

func (*LCLBrowserWindow) SetCenterWindow

func (m *LCLBrowserWindow) SetCenterWindow(value bool)

SetCenterWindow 窗口居中

func (*LCLBrowserWindow) SetDefaultInTaskBar

func (m *LCLBrowserWindow) SetDefaultInTaskBar()

SetDefaultInTaskBar 以默认的方式展示在任务栏上

func (*LCLBrowserWindow) SetHeight

func (m *LCLBrowserWindow) SetHeight(value int32)

SetHeight 设置窗口高

func (*LCLBrowserWindow) SetNotInTaskBar

func (m *LCLBrowserWindow) SetNotInTaskBar()

SetNotInTaskBar 不会展示在任务栏上

func (*LCLBrowserWindow) SetOnActivate

func (m *LCLBrowserWindow) SetOnActivate(fn TNotifyEvent)

SetOnActivate 事件,不会覆盖默认事件,返回值:false继续执行默认事件, true跳过默认事件

func (*LCLBrowserWindow) SetOnActivateAfter

func (m *LCLBrowserWindow) SetOnActivateAfter(fn lcl.TNotifyEvent)

SetOnActivateAfter 每次激活窗口之后执行一次

func (*LCLBrowserWindow) SetOnClose

func (m *LCLBrowserWindow) SetOnClose(fn TCloseEvent)

SetOnClose 事件,不会覆盖默认事件,返回值:false继续执行默认事件, true跳过默认事件

func (*LCLBrowserWindow) SetOnCloseQuery

func (m *LCLBrowserWindow) SetOnCloseQuery(fn TCloseQueryEvent)

SetOnCloseQuery 事件,不会覆盖默认事件,返回值:false继续执行默认事件, true跳过默认事件

func (*LCLBrowserWindow) SetOnResize

func (m *LCLBrowserWindow) SetOnResize(fn TNotifyEvent)

SetOnResize 事件,不会覆盖默认事件,返回值:false继续执行默认事件, true跳过默认事件

func (*LCLBrowserWindow) SetOnShow

func (m *LCLBrowserWindow) SetOnShow(fn TNotifyEvent)

SetOnShow 事件,不会覆盖默认事件,返回值:false继续执行默认事件, true跳过默认事件

func (*LCLBrowserWindow) SetPoint

func (m *LCLBrowserWindow) SetPoint(x, y int32)

SetPoint 设置窗口坐标

func (*LCLBrowserWindow) SetShowInTaskBar

func (m *LCLBrowserWindow) SetShowInTaskBar()

SetShowInTaskBar 展示在任务栏上

func (*LCLBrowserWindow) SetSize

func (m *LCLBrowserWindow) SetSize(width, height int32)

SetSize 设置窗口宽高

func (*LCLBrowserWindow) SetTitle

func (m *LCLBrowserWindow) SetTitle(title string)

SetTitle 设置窗口标题栏标题

func (*LCLBrowserWindow) SetVisible

func (m *LCLBrowserWindow) SetVisible(value bool)

SetVisible

func (*LCLBrowserWindow) SetWidth

func (m *LCLBrowserWindow) SetWidth(value int32)

SetWidth 设置窗口宽

func (*LCLBrowserWindow) SetWindowType

func (m *LCLBrowserWindow) SetWindowType(windowType consts.WINDOW_TYPE)

SetWindowType 设置窗口类型

func (*LCLBrowserWindow) Show

func (m *LCLBrowserWindow) Show()

Show

func (*LCLBrowserWindow) ShowTitle

func (m *LCLBrowserWindow) ShowTitle()

显示标题栏

func (*LCLBrowserWindow) Size

func (m *LCLBrowserWindow) Size() *TCefSize

Size 窗口宽高

func (*LCLBrowserWindow) Visible

func (m *LCLBrowserWindow) Visible() bool

Visible

func (*LCLBrowserWindow) WindowParent

func (m *LCLBrowserWindow) WindowParent() ICEFWindowParent

WindowParent

返回chromium的父组件对象,该对象不是window组件对象,属于window的一个子组件
在windows下它是 TCEFWindowParent, linux或macOSx下它是 TCEFLinkedWindowParent
通过函数可调整该组件的属性

func (*LCLBrowserWindow) WindowProperty

func (m *LCLBrowserWindow) WindowProperty() *WindowProperty

WindowProperty 部分提供部分窗口属性设置

func (*LCLBrowserWindow) WindowState

func (m *LCLBrowserWindow) WindowState() types.TWindowState

WindowState 返回窗口最小化、最大化、全屏状态

func (*LCLBrowserWindow) WindowType

func (m *LCLBrowserWindow) WindowType() consts.WINDOW_TYPE

WindowType 返回窗口类型

type LCLTray

type LCLTray struct {
	// contains filtered or unexported fields
}

LCLTray LCL组件 托盘

func (*LCLTray) AddMenuItem

func (m *LCLTray) AddMenuItem(caption string, onClick MenuItemClick) *lcl.TMenuItem

AddMenuItem 添加一个托盘菜单

func (*LCLTray) AsCEFTray

func (m *LCLTray) AsCEFTray() *CEFTray

AsCEFTray 尝试转换为 LCL+CEF 组件托盘, 如果创建的是其它类型托盘返回nil

func (*LCLTray) AsLCLTray

func (m *LCLTray) AsLCLTray() *LCLTray

AsLCLTray 尝试转换为 LCL 组件托盘, 如果创建的是其它类型托盘返回nil

func (*LCLTray) AsSysTray

func (m *LCLTray) AsSysTray() *SysTray

AsSysTray 尝试转换为 SysTray 组件托盘,如果创建的是其它类型托盘返回nil

func (*LCLTray) AsViewsFrameTray

func (m *LCLTray) AsViewsFrameTray() *ViewsFrameTray

AsViewsFrameTray 尝试转换为 views framework 组件托盘, 如果创建的是其它类型托盘返回nil

func (*LCLTray) Hide

func (m *LCLTray) Hide()

Hide 隐藏 托盘

func (*LCLTray) NewMenuItem

func (m *LCLTray) NewMenuItem(caption string, onClick MenuItemClick) *lcl.TMenuItem

NewMenuItem 创建一个菜单,还未添加到托盘

func (*LCLTray) Notice

func (m *LCLTray) Notice(title, content string, timeout int32)

Notice 显示系统通知

title 标题

content 内容

timeout 显示时间(毫秒)

func (*LCLTray) SetHint

func (m *LCLTray) SetHint(value string)

SetHint 设置提示

func (*LCLTray) SetIcon

func (m *LCLTray) SetIcon(iconResourcePath string)

SetIcon 设置托盘图标

func (*LCLTray) SetIconFS

func (m *LCLTray) SetIconFS(iconResourcePath string)

SetIconFS 设置托盘图标

func (*LCLTray) SetOnClick

func (m *LCLTray) SetOnClick(fn TrayICONClick)

SetOnClick 设置单击事件

func (*LCLTray) SetOnDblClick

func (m *LCLTray) SetOnDblClick(fn TrayICONClick)

SetOnDblClick 设置双击事件

func (*LCLTray) SetOnMouseDown

func (m *LCLTray) SetOnMouseDown(fn lcl.TMouseEvent)

SetOnMouseDown 鼠标按下事件

func (*LCLTray) SetOnMouseMove

func (m *LCLTray) SetOnMouseMove(fn lcl.TMouseMoveEvent)

SetOnMouseMove 鼠标移动事件

func (*LCLTray) SetOnMouseUp

func (m *LCLTray) SetOnMouseUp(fn TMouseEvent)

SetOnMouseUp 鼠标抬起事件

func (*LCLTray) SetTitle

func (m *LCLTray) SetTitle(title string)

SetTitle 设置标题

func (*LCLTray) SetVisible

func (m *LCLTray) SetVisible(v bool)

SetVisible 设置显示状态

func (*LCLTray) Show

func (m *LCLTray) Show()

Show 显示/启动 托盘

func (*LCLTray) TrayMenu

func (m *LCLTray) TrayMenu() *lcl.TPopupMenu

TrayMenu 创建并返回托盘根菜单 PopupMenu

func (*LCLTray) Visible

func (m *LCLTray) Visible() bool

Visible 显示状态

type MenuItem struct {
	CommandId   MenuId // >= 26500 and <= 28500
	Accelerator string // 快捷键 shift ctrl alt【按键VK..】(shift+ctrl+alt+n)
	Text        string //显示文本
	Label       string
	GroupId     int32 //分组 配合 MenuType 使用
	MenuType    TCefContextMenuType
	Callback    FuncCallback //点击 或 快捷键触发的回调
}

MenuItem 菜单项

type MenuItemClick func()

type OnPdfPrintFinished

type OnPdfPrintFinished func(path string, ok bool)

type RenderProcessMessageReceived

type RenderProcessMessageReceived func(browser *ICefBrowser, frame *ICefFrame, sourceProcess consts.CefProcessId, message *ICefProcessMessage) bool

type ResultBool

type ResultBool struct {
	// contains filtered or unexported fields
}

ResultBool bool返回值

func (*ResultBool) SetValue

func (m *ResultBool) SetValue(value bool)

func (*ResultBool) Value

func (m *ResultBool) Value() bool

type ResultBytes

type ResultBytes struct {
	// contains filtered or unexported fields
}

ResultBytes []byte返回值

func (*ResultBytes) SetValue

func (m *ResultBytes) SetValue(value []byte)

func (*ResultBytes) Value

func (m *ResultBytes) Value() []byte

type ResultString

type ResultString struct {
	// contains filtered or unexported fields
}

ResultString 字符串返回值

func (*ResultString) SetValue

func (m *ResultString) SetValue(value string)

func (*ResultString) Value

func (m *ResultString) Value() string

type ResultV8Value

type ResultV8Value struct {
	// contains filtered or unexported fields
}

ResultV8Value 返回 ICefV8Value 的替代结构

func (*ResultV8Value) SetResult

func (m *ResultV8Value) SetResult(v8value *ICefV8Value)

SetResult 设置 ICefV8Value 返回值

type SysMenu

type SysMenu struct {
	// contains filtered or unexported fields
}

SysMenu 系统菜单

func (*SysMenu) Add

func (m *SysMenu) Add(menuItem *SysMenuItem)

Add 添加菜单项

func (*SysMenu) AddMenuItem

func (m *SysMenu) AddMenuItem(label string, action MenuItemClick) *SysMenuItem

AddMenuItem 添加菜单项

func (*SysMenu) AddSeparator

func (m *SysMenu) AddSeparator()

AddSeparator 添加分隔线

type SysMenuItem

type SysMenuItem struct {
	// contains filtered or unexported fields
}

SysMenuItem 菜单项

func (*SysMenuItem) AddSubMenu

func (m *SysMenuItem) AddSubMenu(label string, click ...MenuItemClick) *SysMenuItem

AddSubMenu 添加并创建子菜单,返回菜单项

func (*SysMenuItem) Check

func (m *SysMenuItem) Check()

Check

func (*SysMenuItem) Checked

func (m *SysMenuItem) Checked() bool

Checked 选中状态

func (*SysMenuItem) Click

func (m *SysMenuItem) Click(fn MenuItemClick)

Click 设置菜单项事件

func (*SysMenuItem) Disable

func (m *SysMenuItem) Disable()

Disable 禁用状态

func (*SysMenuItem) Disabled

func (m *SysMenuItem) Disabled() bool

Disabled 禁用

func (*SysMenuItem) Enable

func (m *SysMenuItem) Enable()

Enable 启用

func (*SysMenuItem) Hide

func (m *SysMenuItem) Hide()

Hide 隐藏

func (*SysMenuItem) Icon

func (m *SysMenuItem) Icon() []byte

Icon 获取图标

func (*SysMenuItem) IsSeparator

func (m *SysMenuItem) IsSeparator() bool

IsSeparator 是否分隔线

func (*SysMenuItem) Label

func (m *SysMenuItem) Label() string

Label 获取Label

func (*SysMenuItem) SetChecked

func (m *SysMenuItem) SetChecked(v bool)

SetChecked 设置选中

func (*SysMenuItem) SetDisable

func (m *SysMenuItem) SetDisable(v bool)

SetDisable 设置禁用/启用

func (*SysMenuItem) SetIcon

func (m *SysMenuItem) SetIcon(iconResourcePath string)

SetIcon windows推荐使用ico图标, linux推荐使用png图标, macosx使用ico和png都可

func (*SysMenuItem) SetIconBytes

func (m *SysMenuItem) SetIconBytes(v []byte)

SetIcon windows推荐使用ico图标, linux推荐使用png图标, macosx使用ico和png都可

func (*SysMenuItem) SetIconFS

func (m *SysMenuItem) SetIconFS(iconResourcePath string)

SetIconFS windows推荐使用ico图标, linux推荐使用png图标, macosx使用ico和png都可

func (*SysMenuItem) SetLabel

func (m *SysMenuItem) SetLabel(v string)

SetLabel 设置Label

func (*SysMenuItem) SetSeparator

func (m *SysMenuItem) SetSeparator(v bool)

SetSeparator 设置是否分隔线

func (*SysMenuItem) SetTooltip

func (m *SysMenuItem) SetTooltip(v string)

SetTooltip 设置提示

func (*SysMenuItem) Show

func (m *SysMenuItem) Show()

Show 显示

func (*SysMenuItem) Uncheck

func (m *SysMenuItem) Uncheck()

Uncheck

type SysTray

type SysTray struct {
	// contains filtered or unexported fields
}

SysTray 系统原生

func (*SysTray) Add

func (m *SysTray) Add(menuItem *SysMenuItem)

Add 添加一个菜单项

func (*SysTray) AddMenuItem

func (m *SysTray) AddMenuItem(label string, click ...MenuItemClick) *SysMenuItem

AddMenuItem 添加一个菜单项

func (*SysTray) AddSeparator

func (m *SysTray) AddSeparator()

AddSeparator 添加一个分隔线

func (*SysTray) AsCEFTray

func (m *SysTray) AsCEFTray() *CEFTray

AsCEFTray 尝试转换为 LCL+CEF 组件托盘, 如果创建的是其它类型托盘返回nil

func (*SysTray) AsLCLTray

func (m *SysTray) AsLCLTray() *LCLTray

AsLCLTray 尝试转换为 LCL 组件托盘, 如果创建的是其它类型托盘返回nil

func (*SysTray) AsSysTray

func (m *SysTray) AsSysTray() *SysTray

AsSysTray 尝试转换为 SysTray 组件托盘,如果创建的是其它类型托盘返回nil

func (*SysTray) AsViewsFrameTray

func (m *SysTray) AsViewsFrameTray() *ViewsFrameTray

AsViewsFrameTray 尝试转换为 views framework 组件托盘, 如果创建的是其它类型托盘返回nil

func (*SysTray) CreateMenu

func (m *SysTray) CreateMenu()

CreateMenu 创建托盘菜单, 如果托盘菜单是空, 把菜单项添加到托盘 该方法主动调用后 如果托盘菜单已创建则添加进去, 之后鼠标事件失效

仅MacOSX平台

func (*SysTray) NewMenuItem

func (m *SysTray) NewMenuItem(label string, click ...MenuItemClick) *SysMenuItem

NewMenuItem 创建一个新菜单项

func (*SysTray) Notice

func (m *SysTray) Notice(title, content string, timeout int32)

Notice 显示系统通知

title 标题

content 内容

timeout 显示时间(毫秒)

func (*SysTray) ResetMenu

func (m *SysTray) ResetMenu()

ResetMenu 重置托盘菜单

func (*SysTray) SetHint

func (m *SysTray) SetHint(value string)

SetHint 设置托盘提示

func (*SysTray) SetIcon

func (m *SysTray) SetIcon(iconResourcePath string)

SetIcon 设置托盘图标

func (*SysTray) SetIconFS

func (m *SysTray) SetIconFS(iconResourcePath string)

SetIconFS 设置托盘图标

func (*SysTray) SetMenuNil

func (m *SysTray) SetMenuNil()

SetMenuNil 托盘菜单设置为nil, 如果托盘菜单不是空, 把菜单项设置为nil 该方法主动调用后 将移除托盘菜单, 之后鼠标事件生效

仅MacOSX平台

func (*SysTray) SetOnClick

func (m *SysTray) SetOnClick(fn TrayICONClick)

SetOnClick 鼠标单击事件

func (*SysTray) SetOnDblClick

func (m *SysTray) SetOnDblClick(fn TrayICONClick)

SetOnDblClick 鼠标双击事件

func (*SysTray) SetOnRClick

func (m *SysTray) SetOnRClick(fn func(menu systray.IMenu))

SetOnRClick 鼠标右键

func (*SysTray) SetTitle

func (m *SysTray) SetTitle(title string)

SetTitle 设置托盘标题

func (*SysTray) Show

func (m *SysTray) Show()

Show 显示/启动 托盘

type TCEFApplication

type TCEFApplication struct {
	// contains filtered or unexported fields
}

TCEFApplication CEF应用对象

func NewApplication

func NewApplication(disableRegisDefaultEvent ...bool) *TCEFApplication

NewApplication 创建CEF应用

参数: disableRegisDefaultEvent = true 时不会注册默认事件

func (*TCEFApplication) AcceptLanguageList

func (m *TCEFApplication) AcceptLanguageList() string

func (*TCEFApplication) AddCrDelegate

func (m *TCEFApplication) AddCrDelegate()

AddCrDelegate MacOSX Delegate

func (*TCEFApplication) AddCustomCommandLine

func (m *TCEFApplication) AddCustomCommandLine(commandLine, value string)

func (*TCEFApplication) AllowFileAccessFromFiles

func (m *TCEFApplication) AllowFileAccessFromFiles() bool

func (*TCEFApplication) AllowInsecureLocalhost

func (m *TCEFApplication) AllowInsecureLocalhost() bool

func (*TCEFApplication) AllowRunningInsecureContent

func (m *TCEFApplication) AllowRunningInsecureContent() bool

func (*TCEFApplication) AllowUniversalAccessFromFileUrls

func (m *TCEFApplication) AllowUniversalAccessFromFileUrls() bool

func (*TCEFApplication) ApiHashCommit

func (m *TCEFApplication) ApiHashCommit() string

func (*TCEFApplication) ApiHashPlatform

func (m *TCEFApplication) ApiHashPlatform() string

func (*TCEFApplication) ApiHashUniversal

func (m *TCEFApplication) ApiHashUniversal() string

func (*TCEFApplication) AutoplayPolicy

func (m *TCEFApplication) AutoplayPolicy() TCefAutoplayPolicy

func (*TCEFApplication) AvailableSystemMemory

func (m *TCEFApplication) AvailableSystemMemory() uint64

func (*TCEFApplication) BackgroundColor

func (m *TCEFApplication) BackgroundColor() types.TCefColor

func (*TCEFApplication) BlinkSettings

func (m *TCEFApplication) BlinkSettings() string

func (*TCEFApplication) BrowserSubprocessPath

func (m *TCEFApplication) BrowserSubprocessPath() string

func (*TCEFApplication) Cache

func (m *TCEFApplication) Cache() string

func (*TCEFApplication) CheckCEFFiles

func (m *TCEFApplication) CheckCEFFiles() bool

func (*TCEFApplication) ChildProcessesCount

func (m *TCEFApplication) ChildProcessesCount() int32

func (*TCEFApplication) ChromeBuild

func (m *TCEFApplication) ChromeBuild() uint16

func (*TCEFApplication) ChromeElfPath

func (m *TCEFApplication) ChromeElfPath() string

func (*TCEFApplication) ChromeMajorVer

func (m *TCEFApplication) ChromeMajorVer() uint16

func (*TCEFApplication) ChromeMinorVer

func (m *TCEFApplication) ChromeMinorVer() uint16

func (*TCEFApplication) ChromeRelease

func (m *TCEFApplication) ChromeRelease() uint16

func (*TCEFApplication) ChromeRuntime

func (m *TCEFApplication) ChromeRuntime() bool

func (*TCEFApplication) ChromeVersion

func (m *TCEFApplication) ChromeVersion() string

func (*TCEFApplication) CommandLineArgsDisabled

func (m *TCEFApplication) CommandLineArgsDisabled() bool

func (*TCEFApplication) CookieableSchemesExcludeDefaults

func (m *TCEFApplication) CookieableSchemesExcludeDefaults() bool

func (*TCEFApplication) CookieableSchemesList

func (m *TCEFApplication) CookieableSchemesList() string

func (*TCEFApplication) DefaultEncoding

func (m *TCEFApplication) DefaultEncoding() string

func (*TCEFApplication) DeleteCache

func (m *TCEFApplication) DeleteCache() bool

func (*TCEFApplication) DeleteCookies

func (m *TCEFApplication) DeleteCookies() bool

func (*TCEFApplication) Destroy

func (m *TCEFApplication) Destroy()

func (*TCEFApplication) DevToolsProtocolLogFile

func (m *TCEFApplication) DevToolsProtocolLogFile() string

func (*TCEFApplication) DeviceScaleFactor

func (m *TCEFApplication) DeviceScaleFactor() float32

func (*TCEFApplication) DisableBackForwardCache

func (m *TCEFApplication) DisableBackForwardCache() bool

func (*TCEFApplication) DisableBackgroundNetworking

func (m *TCEFApplication) DisableBackgroundNetworking() bool

func (*TCEFApplication) DisableBlinkFeatures

func (m *TCEFApplication) DisableBlinkFeatures() string

func (*TCEFApplication) DisableChromeLoginPrompt

func (m *TCEFApplication) DisableChromeLoginPrompt() bool

func (*TCEFApplication) DisableComponentUpdate

func (m *TCEFApplication) DisableComponentUpdate() bool

func (*TCEFApplication) DisableExtensions

func (m *TCEFApplication) DisableExtensions() bool

func (*TCEFApplication) DisableFeatures

func (m *TCEFApplication) DisableFeatures() string

func (*TCEFApplication) DisableImageLoading

func (m *TCEFApplication) DisableImageLoading() bool

func (*TCEFApplication) DisableJavascript

func (m *TCEFApplication) DisableJavascript() bool

func (*TCEFApplication) DisableJavascriptAccessClipboard

func (m *TCEFApplication) DisableJavascriptAccessClipboard() bool

func (*TCEFApplication) DisableJavascriptCloseWindows

func (m *TCEFApplication) DisableJavascriptCloseWindows() bool

func (*TCEFApplication) DisableJavascriptDomPaste

func (m *TCEFApplication) DisableJavascriptDomPaste() bool

func (*TCEFApplication) DisableNewBrowserInfoTimeout

func (m *TCEFApplication) DisableNewBrowserInfoTimeout() bool

func (*TCEFApplication) DisablePDFExtension

func (m *TCEFApplication) DisablePDFExtension() bool

func (*TCEFApplication) DisablePopupBlocking

func (m *TCEFApplication) DisablePopupBlocking() bool

func (*TCEFApplication) DisableReadingFromCanvas

func (m *TCEFApplication) DisableReadingFromCanvas() bool

func (*TCEFApplication) DisableRequestHandlingForTesting

func (m *TCEFApplication) DisableRequestHandlingForTesting() bool

func (*TCEFApplication) DisableSafeBrowsing

func (m *TCEFApplication) DisableSafeBrowsing() bool

func (*TCEFApplication) DisableSiteIsolationTrials

func (m *TCEFApplication) DisableSiteIsolationTrials() bool

func (*TCEFApplication) DisableSpellChecking

func (m *TCEFApplication) DisableSpellChecking() bool
func (m *TCEFApplication) DisableTabToLinks() bool

func (*TCEFApplication) DisableTextAreaResize

func (m *TCEFApplication) DisableTextAreaResize() bool

func (*TCEFApplication) DisableWebSecurity

func (m *TCEFApplication) DisableWebSecurity() bool

func (*TCEFApplication) DisableZygote

func (m *TCEFApplication) DisableZygote() bool

func (*TCEFApplication) EnableBlinkFeatures

func (m *TCEFApplication) EnableBlinkFeatures() string

func (*TCEFApplication) EnableFeatures

func (m *TCEFApplication) EnableFeatures() string

func (*TCEFApplication) EnableGPU

func (m *TCEFApplication) EnableGPU() bool

func (*TCEFApplication) EnableHighDPISupport

func (m *TCEFApplication) EnableHighDPISupport() bool

func (*TCEFApplication) EnableMediaStream

func (m *TCEFApplication) EnableMediaStream() bool

func (*TCEFApplication) EnablePrintPreview

func (m *TCEFApplication) EnablePrintPreview() bool

func (*TCEFApplication) EnableProfanityFilter

func (m *TCEFApplication) EnableProfanityFilter() bool

func (*TCEFApplication) EnableSpeechInput

func (m *TCEFApplication) EnableSpeechInput() bool

func (*TCEFApplication) EnableUsermediaScreenCapturing

func (m *TCEFApplication) EnableUsermediaScreenCapturing() bool

func (*TCEFApplication) ExternalMessagePump

func (m *TCEFApplication) ExternalMessagePump() bool

func (*TCEFApplication) FastUnload

func (m *TCEFApplication) FastUnload() bool

func (*TCEFApplication) ForceFieldTrialParams

func (m *TCEFApplication) ForceFieldTrialParams() string

func (*TCEFApplication) ForceFieldTrials

func (m *TCEFApplication) ForceFieldTrials() string

func (*TCEFApplication) ForcedDeviceScaleFactor

func (m *TCEFApplication) ForcedDeviceScaleFactor() float32

func (*TCEFApplication) FrameworkDirPath

func (m *TCEFApplication) FrameworkDirPath() string

func (*TCEFApplication) Free

func (m *TCEFApplication) Free()

func (*TCEFApplication) GlobalContextInitialized

func (m *TCEFApplication) GlobalContextInitialized() bool

func (*TCEFApplication) HyperlinkAuditing

func (m *TCEFApplication) HyperlinkAuditing() bool

func (*TCEFApplication) IgnoreCertificateErrors

func (m *TCEFApplication) IgnoreCertificateErrors() bool

func (*TCEFApplication) ImageShrinkStandaloneToFit

func (m *TCEFApplication) ImageShrinkStandaloneToFit() bool

func (*TCEFApplication) Instance

func (m *TCEFApplication) Instance() uintptr

Instance 实例

func (*TCEFApplication) JavaScriptFlags

func (m *TCEFApplication) JavaScriptFlags() string

func (*TCEFApplication) KioskPrinting

func (m *TCEFApplication) KioskPrinting() bool

func (*TCEFApplication) LastErrorMessage

func (m *TCEFApplication) LastErrorMessage() string

func (*TCEFApplication) LibCefPath

func (m *TCEFApplication) LibCefPath() string

func (*TCEFApplication) LibCefVersion

func (m *TCEFApplication) LibCefVersion() string

func (*TCEFApplication) LibLoaded

func (m *TCEFApplication) LibLoaded() bool

func (*TCEFApplication) Locale

func (m *TCEFApplication) Locale() string

func (*TCEFApplication) LocalesDirPath

func (m *TCEFApplication) LocalesDirPath() string

func (*TCEFApplication) LocalesRequired

func (m *TCEFApplication) LocalesRequired() string

func (*TCEFApplication) LogFile

func (m *TCEFApplication) LogFile() string

func (*TCEFApplication) LogProcessInfo

func (m *TCEFApplication) LogProcessInfo() bool

func (*TCEFApplication) LogSeverity

func (m *TCEFApplication) LogSeverity() LogSeverity

func (*TCEFApplication) MainBundlePath

func (m *TCEFApplication) MainBundlePath() string

MainBundlePath 仅用于macOS

func (*TCEFApplication) MetricsRecordingOnly

func (m *TCEFApplication) MetricsRecordingOnly() bool

func (*TCEFApplication) MissingBinariesException

func (m *TCEFApplication) MissingBinariesException() bool

func (*TCEFApplication) MissingLibFiles

func (m *TCEFApplication) MissingLibFiles() string

func (*TCEFApplication) MultiThreadedMessageLoop

func (m *TCEFApplication) MultiThreadedMessageLoop() bool

func (*TCEFApplication) MustCreateBrowserProcessHandler

func (m *TCEFApplication) MustCreateBrowserProcessHandler() bool

func (*TCEFApplication) MustCreateLoadHandler

func (m *TCEFApplication) MustCreateLoadHandler() bool

func (*TCEFApplication) MustCreateRenderProcessHandler

func (m *TCEFApplication) MustCreateRenderProcessHandler() bool

func (*TCEFApplication) MustCreateResourceBundleHandler

func (m *TCEFApplication) MustCreateResourceBundleHandler() bool

func (*TCEFApplication) MustFreeLibrary

func (m *TCEFApplication) MustFreeLibrary() bool

func (*TCEFApplication) MuteAudio

func (m *TCEFApplication) MuteAudio() bool

func (*TCEFApplication) NetLogCaptureMode

func (m *TCEFApplication) NetLogCaptureMode() TCefNetLogCaptureMode

func (*TCEFApplication) NetLogEnabled

func (m *TCEFApplication) NetLogEnabled() bool

func (*TCEFApplication) NetLogFile

func (m *TCEFApplication) NetLogFile() string

func (*TCEFApplication) NoSandbox

func (m *TCEFApplication) NoSandbox() bool

func (*TCEFApplication) OverrideSpellCheckLang

func (m *TCEFApplication) OverrideSpellCheckLang() string

func (*TCEFApplication) PackLoadingDisabled

func (m *TCEFApplication) PackLoadingDisabled() bool

func (*TCEFApplication) PersistSessionCookies

func (m *TCEFApplication) PersistSessionCookies() bool

func (*TCEFApplication) PersistUserPreferences

func (m *TCEFApplication) PersistUserPreferences() bool

func (*TCEFApplication) ProcessType

func (m *TCEFApplication) ProcessType() TCefProcessType

func (*TCEFApplication) ProcessTypeValue

func (m *TCEFApplication) ProcessTypeValue() (processTypeValue TCefProcessTypeValue)

func (*TCEFApplication) QuitMessageLoop

func (m *TCEFApplication) QuitMessageLoop()

QuitMessageLoop 退出消息轮询

func (*TCEFApplication) ReRaiseExceptions

func (m *TCEFApplication) ReRaiseExceptions() bool

func (*TCEFApplication) RemoteDebuggingPort

func (m *TCEFApplication) RemoteDebuggingPort() int32

func (*TCEFApplication) ResourcesDirPath

func (m *TCEFApplication) ResourcesDirPath() string

func (*TCEFApplication) RootCache

func (m *TCEFApplication) RootCache() string

func (*TCEFApplication) RunMessageLoop

func (m *TCEFApplication) RunMessageLoop()

RunMessageLoop

func (*TCEFApplication) SetAcceptLanguageList

func (m *TCEFApplication) SetAcceptLanguageList(value string)

func (*TCEFApplication) SetAllowFileAccessFromFiles

func (m *TCEFApplication) SetAllowFileAccessFromFiles(value bool)

func (*TCEFApplication) SetAllowInsecureLocalhost

func (m *TCEFApplication) SetAllowInsecureLocalhost(value bool)

func (*TCEFApplication) SetAllowRunningInsecureContent

func (m *TCEFApplication) SetAllowRunningInsecureContent(value bool)

func (*TCEFApplication) SetAllowUniversalAccessFromFileUrls

func (m *TCEFApplication) SetAllowUniversalAccessFromFileUrls(value bool)

func (*TCEFApplication) SetAutoplayPolicy

func (m *TCEFApplication) SetAutoplayPolicy(value TCefAutoplayPolicy)

func (*TCEFApplication) SetBackgroundColor

func (m *TCEFApplication) SetBackgroundColor(value types.TCefColor)

func (*TCEFApplication) SetBlinkSettings

func (m *TCEFApplication) SetBlinkSettings(value string)

func (*TCEFApplication) SetBrowserSubprocessPath

func (m *TCEFApplication) SetBrowserSubprocessPath(value string)

func (*TCEFApplication) SetCache

func (m *TCEFApplication) SetCache(value string)

func (*TCEFApplication) SetCheckCEFFiles

func (m *TCEFApplication) SetCheckCEFFiles(value bool)

func (*TCEFApplication) SetChromeRuntime

func (m *TCEFApplication) SetChromeRuntime(value bool)

func (*TCEFApplication) SetCommandLineArgsDisabled

func (m *TCEFApplication) SetCommandLineArgsDisabled(value bool)

SetCommandLineArgsDisabled 开启/禁用设置命令行参数

func (*TCEFApplication) SetCookieableSchemesExcludeDefaults

func (m *TCEFApplication) SetCookieableSchemesExcludeDefaults(value bool)

func (*TCEFApplication) SetCookieableSchemesList

func (m *TCEFApplication) SetCookieableSchemesList(value string)

func (*TCEFApplication) SetCurrentDir

func (m *TCEFApplication) SetCurrentDir() bool

func (*TCEFApplication) SetDefaultEncoding

func (m *TCEFApplication) SetDefaultEncoding(value string)

func (*TCEFApplication) SetDeleteCache

func (m *TCEFApplication) SetDeleteCache(value bool)

func (*TCEFApplication) SetDeleteCookies

func (m *TCEFApplication) SetDeleteCookies(value bool)

func (*TCEFApplication) SetDevToolsProtocolLogFile

func (m *TCEFApplication) SetDevToolsProtocolLogFile(value string)

func (*TCEFApplication) SetDisableBackForwardCache

func (m *TCEFApplication) SetDisableBackForwardCache(value bool)

func (*TCEFApplication) SetDisableBackgroundNetworking

func (m *TCEFApplication) SetDisableBackgroundNetworking(value bool)

func (*TCEFApplication) SetDisableBlinkFeatures

func (m *TCEFApplication) SetDisableBlinkFeatures(value string)

func (*TCEFApplication) SetDisableChromeLoginPrompt

func (m *TCEFApplication) SetDisableChromeLoginPrompt(value bool)

func (*TCEFApplication) SetDisableComponentUpdate

func (m *TCEFApplication) SetDisableComponentUpdate(value bool)

func (*TCEFApplication) SetDisableExtensions

func (m *TCEFApplication) SetDisableExtensions(value bool)

func (*TCEFApplication) SetDisableFeatures

func (m *TCEFApplication) SetDisableFeatures(value string)

func (*TCEFApplication) SetDisableImageLoading

func (m *TCEFApplication) SetDisableImageLoading(value bool)

func (*TCEFApplication) SetDisableJavascript

func (m *TCEFApplication) SetDisableJavascript(value bool)

func (*TCEFApplication) SetDisableJavascriptAccessClipboard

func (m *TCEFApplication) SetDisableJavascriptAccessClipboard(value bool)

func (*TCEFApplication) SetDisableJavascriptCloseWindows

func (m *TCEFApplication) SetDisableJavascriptCloseWindows(value bool)

func (*TCEFApplication) SetDisableJavascriptDomPaste

func (m *TCEFApplication) SetDisableJavascriptDomPaste(value bool)

func (*TCEFApplication) SetDisableNewBrowserInfoTimeout

func (m *TCEFApplication) SetDisableNewBrowserInfoTimeout(value bool)

func (*TCEFApplication) SetDisablePDFExtension

func (m *TCEFApplication) SetDisablePDFExtension(value bool)

func (*TCEFApplication) SetDisablePopupBlocking

func (m *TCEFApplication) SetDisablePopupBlocking(value bool)

func (*TCEFApplication) SetDisableReadingFromCanvas

func (m *TCEFApplication) SetDisableReadingFromCanvas(value bool)

func (*TCEFApplication) SetDisableRequestHandlingForTesting

func (m *TCEFApplication) SetDisableRequestHandlingForTesting(value bool)

func (*TCEFApplication) SetDisableSafeBrowsing

func (m *TCEFApplication) SetDisableSafeBrowsing(value bool)

func (*TCEFApplication) SetDisableSiteIsolationTrials

func (m *TCEFApplication) SetDisableSiteIsolationTrials(value bool)

func (*TCEFApplication) SetDisableSpellChecking

func (m *TCEFApplication) SetDisableSpellChecking(value bool)
func (m *TCEFApplication) SetDisableTabToLinks(value bool)

func (*TCEFApplication) SetDisableTextAreaResize

func (m *TCEFApplication) SetDisableTextAreaResize(value bool)

func (*TCEFApplication) SetDisableWebSecurity

func (m *TCEFApplication) SetDisableWebSecurity(value bool)

func (*TCEFApplication) SetDisableZygote

func (m *TCEFApplication) SetDisableZygote(value bool)

func (*TCEFApplication) SetEnableBlinkFeatures

func (m *TCEFApplication) SetEnableBlinkFeatures(value string)

func (*TCEFApplication) SetEnableFeatures

func (m *TCEFApplication) SetEnableFeatures(value string)

func (*TCEFApplication) SetEnableGPU

func (m *TCEFApplication) SetEnableGPU(value bool)

func (*TCEFApplication) SetEnableHighDPISupport

func (m *TCEFApplication) SetEnableHighDPISupport(value bool)

func (*TCEFApplication) SetEnableMediaStream

func (m *TCEFApplication) SetEnableMediaStream(value bool)

func (*TCEFApplication) SetEnablePrintPreview

func (m *TCEFApplication) SetEnablePrintPreview(value bool)

func (*TCEFApplication) SetEnableProfanityFilter

func (m *TCEFApplication) SetEnableProfanityFilter(value bool)

func (*TCEFApplication) SetEnableSpeechInput

func (m *TCEFApplication) SetEnableSpeechInput(value bool)

func (*TCEFApplication) SetEnableUsermediaScreenCapturing

func (m *TCEFApplication) SetEnableUsermediaScreenCapturing(value bool)

func (*TCEFApplication) SetExternalMessagePump

func (m *TCEFApplication) SetExternalMessagePump(value bool)

func (*TCEFApplication) SetFastUnload

func (m *TCEFApplication) SetFastUnload(value bool)

func (*TCEFApplication) SetForceFieldTrialParams

func (m *TCEFApplication) SetForceFieldTrialParams(value string)

func (*TCEFApplication) SetForceFieldTrials

func (m *TCEFApplication) SetForceFieldTrials(value string)

func (*TCEFApplication) SetForcedDeviceScaleFactor

func (m *TCEFApplication) SetForcedDeviceScaleFactor(value float32)

func (*TCEFApplication) SetFrameworkDirPath

func (m *TCEFApplication) SetFrameworkDirPath(value string)

func (*TCEFApplication) SetHyperlinkAuditing

func (m *TCEFApplication) SetHyperlinkAuditing(value bool)

func (*TCEFApplication) SetIgnoreCertificateErrors

func (m *TCEFApplication) SetIgnoreCertificateErrors(value bool)

func (*TCEFApplication) SetImageShrinkStandaloneToFit

func (m *TCEFApplication) SetImageShrinkStandaloneToFit(value bool)

func (*TCEFApplication) SetJavaScriptFlags

func (m *TCEFApplication) SetJavaScriptFlags(value string)

func (*TCEFApplication) SetKioskPrinting

func (m *TCEFApplication) SetKioskPrinting(value bool)

func (*TCEFApplication) SetLocale

func (m *TCEFApplication) SetLocale(value LANGUAGE)

func (*TCEFApplication) SetLocalesDirPath

func (m *TCEFApplication) SetLocalesDirPath(value string)

func (*TCEFApplication) SetLocalesRequired

func (m *TCEFApplication) SetLocalesRequired(value string)

func (*TCEFApplication) SetLogFile

func (m *TCEFApplication) SetLogFile(value string)

func (*TCEFApplication) SetLogProcessInfo

func (m *TCEFApplication) SetLogProcessInfo(value bool)

func (*TCEFApplication) SetLogSeverity

func (m *TCEFApplication) SetLogSeverity(value LogSeverity)

func (*TCEFApplication) SetMainBundlePath

func (m *TCEFApplication) SetMainBundlePath(value string)

SetMainBundlePath 仅用于macOS

func (*TCEFApplication) SetMetricsRecordingOnly

func (m *TCEFApplication) SetMetricsRecordingOnly(value bool)

func (*TCEFApplication) SetMissingBinariesException

func (m *TCEFApplication) SetMissingBinariesException(value bool)

func (*TCEFApplication) SetMultiThreadedMessageLoop

func (m *TCEFApplication) SetMultiThreadedMessageLoop(value bool)

func (*TCEFApplication) SetMustCreateBrowserProcessHandler

func (m *TCEFApplication) SetMustCreateBrowserProcessHandler(value bool)

func (*TCEFApplication) SetMustCreateLoadHandler

func (m *TCEFApplication) SetMustCreateLoadHandler(value bool)

func (*TCEFApplication) SetMustCreateRenderProcessHandler

func (m *TCEFApplication) SetMustCreateRenderProcessHandler(value bool)

func (*TCEFApplication) SetMustCreateResourceBundleHandler

func (m *TCEFApplication) SetMustCreateResourceBundleHandler(value bool)

func (*TCEFApplication) SetMustFreeLibrary

func (m *TCEFApplication) SetMustFreeLibrary(value bool)

func (*TCEFApplication) SetMuteAudio

func (m *TCEFApplication) SetMuteAudio(value bool)

func (*TCEFApplication) SetNetLogCaptureMode

func (m *TCEFApplication) SetNetLogCaptureMode(value TCefNetLogCaptureMode)

func (*TCEFApplication) SetNetLogEnabled

func (m *TCEFApplication) SetNetLogEnabled(value bool)

func (*TCEFApplication) SetNetLogFile

func (m *TCEFApplication) SetNetLogFile(value string)

func (*TCEFApplication) SetNoSandbox

func (m *TCEFApplication) SetNoSandbox(value bool)

func (*TCEFApplication) SetObjectRootName

func (m *TCEFApplication) SetObjectRootName(name string)

SetObjectRootName

GO绑定JS对象类型所属对象名定义

func (*TCEFApplication) SetOnBeforeChildProcessLaunch

func (m *TCEFApplication) SetOnBeforeChildProcessLaunch(fn GlobalCEFAppEventOnBeforeChildProcessLaunch)

启动子进程之前自定义命令行参数设置

func (*TCEFApplication) SetOnBrowserCreated

func (m *TCEFApplication) SetOnBrowserCreated(fn GlobalCEFAppEventOnBrowserCreated)

func (*TCEFApplication) SetOnBrowserDestroyed

func (m *TCEFApplication) SetOnBrowserDestroyed(fn GlobalCEFAppEventOnBrowserDestroyed)

func (*TCEFApplication) SetOnContextCreated

func (m *TCEFApplication) SetOnContextCreated(fn GlobalCEFAppEventOnContextCreated)

func (*TCEFApplication) SetOnContextInitialized

func (m *TCEFApplication) SetOnContextInitialized(fn GlobalCEFAppEventOnContextInitialized)

func (*TCEFApplication) SetOnContextReleased

func (m *TCEFApplication) SetOnContextReleased(fn GlobalCEFAppEventOnContextReleased)

func (*TCEFApplication) SetOnFocusedNodeChanged

func (m *TCEFApplication) SetOnFocusedNodeChanged(fn GlobalCEFAppEventOnFocusedNodeChanged)

func (*TCEFApplication) SetOnGetDataResource

func (m *TCEFApplication) SetOnGetDataResource(fn GlobalCEFAppEventOnGetDataResource)

func (*TCEFApplication) SetOnGetDataResourceForScale

func (m *TCEFApplication) SetOnGetDataResourceForScale(fn GlobalCEFAppEventOnGetDataResourceForScale)

func (*TCEFApplication) SetOnGetDefaultClient

func (m *TCEFApplication) SetOnGetDefaultClient(fn GlobalCEFAppEventOnGetDefaultClient)

func (*TCEFApplication) SetOnGetLocalizedString

func (m *TCEFApplication) SetOnGetLocalizedString(fn GlobalCEFAppEventOnGetLocalizedString)

func (*TCEFApplication) SetOnProcessMessageReceived

func (m *TCEFApplication) SetOnProcessMessageReceived(fn RenderProcessMessageReceived)

进程间通信处理消息接收

func (*TCEFApplication) SetOnRegCustomSchemes

func (m *TCEFApplication) SetOnRegCustomSchemes(fn GlobalCEFAppEventOnRegCustomSchemes)

func (*TCEFApplication) SetOnRegisterCustomPreferences

func (m *TCEFApplication) SetOnRegisterCustomPreferences(fn GlobalCEFAppEventOnRegisterCustomPreferences)

TODO TCefPreferenceRegistrarRef

func (*TCEFApplication) SetOnRenderLoadEnd

func (m *TCEFApplication) SetOnRenderLoadEnd(fn GlobalCEFAppEventOnRenderLoadEnd)

func (*TCEFApplication) SetOnRenderLoadError

func (m *TCEFApplication) SetOnRenderLoadError(fn GlobalCEFAppEventOnRenderLoadError)

func (*TCEFApplication) SetOnRenderLoadStart

func (m *TCEFApplication) SetOnRenderLoadStart(fn GlobalCEFAppEventOnRenderLoadStart)

func (*TCEFApplication) SetOnRenderLoadingStateChange

func (m *TCEFApplication) SetOnRenderLoadingStateChange(fn GlobalCEFAppEventOnRenderLoadingStateChange)

func (*TCEFApplication) SetOnUncaughtException

func (m *TCEFApplication) SetOnUncaughtException(fn GlobalCEFAppEventOnUncaughtException)

func (*TCEFApplication) SetOnWebKitInitialized

func (m *TCEFApplication) SetOnWebKitInitialized(fn GlobalCEFAppEventOnWebKitInitialized)

func (*TCEFApplication) SetOverrideSpellCheckLang

func (m *TCEFApplication) SetOverrideSpellCheckLang(value string)

func (*TCEFApplication) SetPackLoadingDisabled

func (m *TCEFApplication) SetPackLoadingDisabled(value bool)

func (*TCEFApplication) SetPersistSessionCookies

func (m *TCEFApplication) SetPersistSessionCookies(value bool)

func (*TCEFApplication) SetPersistUserPreferences

func (m *TCEFApplication) SetPersistUserPreferences(value bool)

func (*TCEFApplication) SetReRaiseExceptions

func (m *TCEFApplication) SetReRaiseExceptions(value bool)

func (*TCEFApplication) SetRemoteDebuggingPort

func (m *TCEFApplication) SetRemoteDebuggingPort(value int32)

func (*TCEFApplication) SetResourcesDirPath

func (m *TCEFApplication) SetResourcesDirPath(value string)

func (*TCEFApplication) SetRootCache

func (m *TCEFApplication) SetRootCache(value string)

func (*TCEFApplication) SetSetCurrentDir

func (m *TCEFApplication) SetSetCurrentDir(value bool)

func (*TCEFApplication) SetShowMessageDlg

func (m *TCEFApplication) SetShowMessageDlg(value bool)

func (*TCEFApplication) SetSingleProcess

func (m *TCEFApplication) SetSingleProcess(value bool)

func (*TCEFApplication) SetSitePerProcess

func (m *TCEFApplication) SetSitePerProcess(value bool)

func (*TCEFApplication) SetSmoothScrolling

func (m *TCEFApplication) SetSmoothScrolling(value TCefState)

func (*TCEFApplication) SetTouchEvents

func (m *TCEFApplication) SetTouchEvents(value TCefState)

func (*TCEFApplication) SetTreatInsecureOriginAsSecure

func (m *TCEFApplication) SetTreatInsecureOriginAsSecure(value string)

func (*TCEFApplication) SetUncaughtExceptionStackSize

func (m *TCEFApplication) SetUncaughtExceptionStackSize(value int32)

func (*TCEFApplication) SetUseFakeUIForMediaStream

func (m *TCEFApplication) SetUseFakeUIForMediaStream(value bool)

func (*TCEFApplication) SetUseMockKeyChain

func (m *TCEFApplication) SetUseMockKeyChain(value bool)

func (*TCEFApplication) SetUserAgent

func (m *TCEFApplication) SetUserAgent(value string)

func (*TCEFApplication) SetUserAgentProduct

func (m *TCEFApplication) SetUserAgentProduct(value string)

func (*TCEFApplication) SetUserDataPath

func (m *TCEFApplication) SetUserDataPath(value string)

func (*TCEFApplication) SetWindowlessRenderingEnabled

func (m *TCEFApplication) SetWindowlessRenderingEnabled(value bool)

func (*TCEFApplication) ShowMessageDlg

func (m *TCEFApplication) ShowMessageDlg() bool

func (*TCEFApplication) SingleProcess

func (m *TCEFApplication) SingleProcess() bool

func (*TCEFApplication) SitePerProcess

func (m *TCEFApplication) SitePerProcess() bool

func (*TCEFApplication) SmoothScrolling

func (m *TCEFApplication) SmoothScrolling() TCefState

func (*TCEFApplication) StartMainProcess

func (m *TCEFApplication) StartMainProcess() bool

StartMainProcess 启动主进程

func (*TCEFApplication) StartSubProcess

func (m *TCEFApplication) StartSubProcess() (result bool)

StartSubProcess 启动子进程, 如果指定了子进程执行程序, 将执行指定的子进程程序

func (*TCEFApplication) Status

func (m *TCEFApplication) Status() TCefApplicationStatus

func (*TCEFApplication) StopScheduler

func (m *TCEFApplication) StopScheduler()

func (*TCEFApplication) SystemMemoryLoad

func (m *TCEFApplication) SystemMemoryLoad() types.Cardinal

func (*TCEFApplication) TotalSystemMemory

func (m *TCEFApplication) TotalSystemMemory() uint64

func (*TCEFApplication) TouchEvents

func (m *TCEFApplication) TouchEvents() TCefState

func (*TCEFApplication) TreatInsecureOriginAsSecure

func (m *TCEFApplication) TreatInsecureOriginAsSecure() string

func (*TCEFApplication) UncaughtExceptionStackSize

func (m *TCEFApplication) UncaughtExceptionStackSize() int32

func (*TCEFApplication) UseFakeUIForMediaStream

func (m *TCEFApplication) UseFakeUIForMediaStream() bool

func (*TCEFApplication) UseMockKeyChain

func (m *TCEFApplication) UseMockKeyChain() bool

func (*TCEFApplication) UsedMemory

func (m *TCEFApplication) UsedMemory() uint64

func (*TCEFApplication) UserAgent

func (m *TCEFApplication) UserAgent() string

func (*TCEFApplication) UserAgentProduct

func (m *TCEFApplication) UserAgentProduct() string

func (*TCEFApplication) UserDataPath

func (m *TCEFApplication) UserDataPath() string

func (*TCEFApplication) WindowlessRenderingEnabled

func (m *TCEFApplication) WindowlessRenderingEnabled() bool

type TCEFBrowserViewComponent

type TCEFBrowserViewComponent struct {
	lcl.IComponent
	// contains filtered or unexported fields
}

TCEFBrowserViewComponent

func NewBrowserViewComponent

func NewBrowserViewComponent(AOwner lcl.IComponent) *TCEFBrowserViewComponent

NewBrowserViewComponent

func (*TCEFBrowserViewComponent) Browser

func (m *TCEFBrowserViewComponent) Browser() *ICefBrowser

Browser

func (*TCEFBrowserViewComponent) CreateBrowserView

func (m *TCEFBrowserViewComponent) CreateBrowserView(client *ICefClient, url string, requestContextSettings *TCefRequestContextSettings, browserSettings *TCefBrowserSettings, extraInfo *ICefDictionaryValue)

CreateBrowserView

func (*TCEFBrowserViewComponent) GetForBrowser

func (m *TCEFBrowserViewComponent) GetForBrowser(browser *ICefBrowser)

GetForBrowser

func (*TCEFBrowserViewComponent) Instance

func (m *TCEFBrowserViewComponent) Instance() uintptr

Instance

func (*TCEFBrowserViewComponent) RequestFocus

func (m *TCEFBrowserViewComponent) RequestFocus()

RequestFocus

func (*TCEFBrowserViewComponent) SetOnBrowserCreated

SetOnBrowserCreated

func (*TCEFBrowserViewComponent) SetOnBrowserDestroyed

SetOnBrowserDestroyed

func (*TCEFBrowserViewComponent) SetOnGetChromeToolbarType

SetOnGetChromeToolbarType

func (*TCEFBrowserViewComponent) SetOnGetDelegateForPopupBrowserView

func (m *TCEFBrowserViewComponent) SetOnGetDelegateForPopupBrowserView(fn BrowserViewComponentOnGetDelegateForPopupBrowserView)

SetOnGetDelegateForPopupBrowserView

func (*TCEFBrowserViewComponent) SetOnPopupBrowserViewCreated

func (m *TCEFBrowserViewComponent) SetOnPopupBrowserViewCreated(fn BrowserViewComponentOnPopupBrowserViewCreated)

SetOnPopupBrowserViewCreated

func (*TCEFBrowserViewComponent) SetPreferAccelerators

func (m *TCEFBrowserViewComponent) SetPreferAccelerators(preferAccelerators bool)

SetPreferAccelerators

type TCEFChromium

type TCEFChromium struct {
	*lcl.TComponent
	// contains filtered or unexported fields
}

TCEFChromium 组件

func (*TCEFChromium) AcceptCookies

func (m *TCEFChromium) AcceptCookies() TCefCookiePref

func (*TCEFChromium) AcceptLanguageList

func (m *TCEFChromium) AcceptLanguageList() string

func (*TCEFChromium) AllowOutdatedPlugins

func (m *TCEFChromium) AllowOutdatedPlugins() bool

func (*TCEFChromium) AlwaysAuthorizePlugins

func (m *TCEFChromium) AlwaysAuthorizePlugins() bool

func (*TCEFChromium) AlwaysOpenPDFExternally

func (m *TCEFChromium) AlwaysOpenPDFExternally() bool

func (*TCEFChromium) AudioMuted

func (m *TCEFChromium) AudioMuted() bool

func (*TCEFChromium) BatterySaverModeState

func (m *TCEFChromium) BatterySaverModeState() TCefBatterySaverModeState

func (*TCEFChromium) Block3rdPartyCookies

func (m *TCEFChromium) Block3rdPartyCookies() bool

func (*TCEFChromium) Browser

func (m *TCEFChromium) Browser() *ICefBrowser

func (*TCEFChromium) BrowserById

func (m *TCEFChromium) BrowserById(id int32) *ICefBrowser

func (*TCEFChromium) BrowserCount

func (m *TCEFChromium) BrowserCount() int32

func (*TCEFChromium) BrowserHandle

func (m *TCEFChromium) BrowserHandle() types.HWND

func (*TCEFChromium) BrowserId

func (m *TCEFChromium) BrowserId() int32

func (*TCEFChromium) BrowserIdByIndex

func (m *TCEFChromium) BrowserIdByIndex(index int32) int32

func (*TCEFChromium) BrowserZoom

func (m *TCEFChromium) BrowserZoom(zoom ZOOM)

func (*TCEFChromium) CefClient

func (m *TCEFChromium) CefClient() *ICefClient

CefClient 获取Client

func (*TCEFChromium) ChromiumConfig

func (m *TCEFChromium) ChromiumConfig() *tCefChromiumConfig

func (*TCEFChromium) ClassName

func (m *TCEFChromium) ClassName() string

func (*TCEFChromium) ClassType

func (m *TCEFChromium) ClassType() types.TClass

func (*TCEFChromium) CloseAllBrowsers

func (m *TCEFChromium) CloseAllBrowsers()

func (*TCEFChromium) CloseBrowser

func (m *TCEFChromium) CloseBrowser(forceClose bool)

func (*TCEFChromium) CloseDevTools

func (m *TCEFChromium) CloseDevTools(window ICEFWindowParent)

func (*TCEFChromium) CreateBrowser

func (m *TCEFChromium) CreateBrowser(window ICEFWindowParent) bool

func (*TCEFChromium) CreateBrowserByBrowserViewComponent

func (m *TCEFChromium) CreateBrowserByBrowserViewComponent(homePage string, browserViewComponent *TCEFBrowserViewComponent) bool

func (*TCEFChromium) CreateClientHandler

func (m *TCEFChromium) CreateClientHandler(client *ICefClient, alsOSR bool) bool

func (*TCEFChromium) CustomHeader

func (m *TCEFChromium) CustomHeader() *TCustomHeader

func (*TCEFChromium) DefaultEncoding

func (m *TCEFChromium) DefaultEncoding() string

DefaultEncoding 获取默认编码

func (*TCEFChromium) DefaultWindowInfoExStyle

func (m *TCEFChromium) DefaultWindowInfoExStyle() types.DWORD

func (*TCEFChromium) DeleteCookies

func (m *TCEFChromium) DeleteCookies(url, cookieName string, deleteImmediately bool)

删除所有cookie

func (*TCEFChromium) DoNotTrack

func (m *TCEFChromium) DoNotTrack() bool

func (*TCEFChromium) DownloadImage

func (m *TCEFChromium) DownloadImage(imageUrl string, isFavicon bool, maxImageSize int32, bypassCache bool)

DownloadImage 开始下载图片

func (*TCEFChromium) DragOperations

func (m *TCEFChromium) DragOperations() TCefDragOperations

func (*TCEFChromium) EmitRender

func (m *TCEFChromium) EmitRender(messageId int32, eventName string, target target.ITarget, data ...any) bool

EmitRender IPC 发送进程 消息

messageId != 0 是带有回调函数消息

func (*TCEFChromium) Equals

func (m *TCEFChromium) Equals(object lcl.IObject) bool

func (*TCEFChromium) ExecuteDevToolsMethod

func (m *TCEFChromium) ExecuteDevToolsMethod(messageId int32, method string, dictionaryValue *ICefDictionaryValue)

func (*TCEFChromium) ExecuteJavaScript

func (m *TCEFChromium) ExecuteJavaScript(code, scriptURL string, startLine int32)

ExecuteJavaScript 执行JS代码

code: js代码

scriptURL: js脚本地址 默认about:blank

startLine: js脚本启始执行行号

func (*TCEFChromium) FrameCount

func (m *TCEFChromium) FrameCount() uint32

func (*TCEFChromium) FrameIsFocused

func (m *TCEFChromium) FrameIsFocused() bool

func (*TCEFChromium) Free

func (m *TCEFChromium) Free()

func (*TCEFChromium) GoBack

func (m *TCEFChromium) GoBack()

func (*TCEFChromium) GoForward

func (m *TCEFChromium) GoForward()

func (*TCEFChromium) HashCode

func (m *TCEFChromium) HashCode() int32

func (*TCEFChromium) HighEfficiencyMode

func (m *TCEFChromium) HighEfficiencyMode() TCefState

func (*TCEFChromium) InheritsFrom

func (m *TCEFChromium) InheritsFrom(class types.TClass) bool

func (*TCEFChromium) Initialized

func (m *TCEFChromium) Initialized() bool

func (*TCEFChromium) Instance

func (m *TCEFChromium) Instance() uintptr

Instance 组件实例指针

func (*TCEFChromium) InstanceSize

func (m *TCEFChromium) InstanceSize() int32

func (*TCEFChromium) IsSameBrowser

func (m *TCEFChromium) IsSameBrowser(browser *ICefBrowser) bool

func (*TCEFChromium) IsValid

func (m *TCEFChromium) IsValid() bool

IsValid 实例有效

func (*TCEFChromium) JavascriptEnabled

func (m *TCEFChromium) JavascriptEnabled() bool

func (*TCEFChromium) LoadHtml

func (m *TCEFChromium) LoadHtml(html string)

LoadHtml 加载HTML

func (*TCEFChromium) LoadImagesAutomatically

func (m *TCEFChromium) LoadImagesAutomatically() bool

func (*TCEFChromium) LoadUrl

func (m *TCEFChromium) LoadUrl(url string)

LoadUrl 加载一个URL地址

func (*TCEFChromium) NotifyMoveOrResizeStarted

func (m *TCEFChromium) NotifyMoveOrResizeStarted()

func (*TCEFChromium) Offline

func (m *TCEFChromium) Offline() bool

func (*TCEFChromium) Print

func (m *TCEFChromium) Print()

func (*TCEFChromium) PrintToPDF

func (m *TCEFChromium) PrintToPDF(saveFilePath string)

func (*TCEFChromium) PrintingEnabled

func (m *TCEFChromium) PrintingEnabled() bool

func (*TCEFChromium) QuicAllowed

func (m *TCEFChromium) QuicAllowed() bool

func (*TCEFChromium) Reload

func (m *TCEFChromium) Reload()

func (*TCEFChromium) ReloadIgnoreCache

func (m *TCEFChromium) ReloadIgnoreCache()

func (*TCEFChromium) RenderHandle

func (m *TCEFChromium) RenderHandle() types.HWND

func (*TCEFChromium) ResetZoomLevel

func (m *TCEFChromium) ResetZoomLevel()

func (*TCEFChromium) SafeSearch

func (m *TCEFChromium) SafeSearch() bool

func (*TCEFChromium) SendCaptureLostEvent

func (m *TCEFChromium) SendCaptureLostEvent()

func (*TCEFChromium) SendProcessMessage

func (m *TCEFChromium) SendProcessMessage(targetProcess CefProcessId, message *ICefProcessMessage)

SendProcessMessage 发送进程消息

func (*TCEFChromium) SendProcessMessageForJSONBytes

func (m *TCEFChromium) SendProcessMessageForJSONBytes(name string, targetProcess CefProcessId, message argument.IList)

SendProcessMessageForJSONBytes 发送进程消息

func (*TCEFChromium) SendProcessMessageForV8Value

func (m *TCEFChromium) SendProcessMessageForV8Value(messageName string, targetProcess CefProcessId, arguments *ICefV8Value)

SendProcessMessageForV8Value 发送进程消息

func (*TCEFChromium) SendReferrer

func (m *TCEFChromium) SendReferrer() bool

func (*TCEFChromium) SetAcceptCookies

func (m *TCEFChromium) SetAcceptCookies(cp TCefCookiePref)

func (*TCEFChromium) SetAcceptLanguageList

func (m *TCEFChromium) SetAcceptLanguageList(languageList string)

func (*TCEFChromium) SetAllowOutdatedPlugins

func (m *TCEFChromium) SetAllowOutdatedPlugins(value bool)

func (*TCEFChromium) SetAlwaysAuthorizePlugins

func (m *TCEFChromium) SetAlwaysAuthorizePlugins(value bool)

func (*TCEFChromium) SetAlwaysOpenPDFExternally

func (m *TCEFChromium) SetAlwaysOpenPDFExternally(value bool)

func (*TCEFChromium) SetAudioMuted

func (m *TCEFChromium) SetAudioMuted(value bool)

func (*TCEFChromium) SetBatterySaverModeState

func (m *TCEFChromium) SetBatterySaverModeState(value TCefBatterySaverModeState)

func (*TCEFChromium) SetBlock3rdPartyCookies

func (m *TCEFChromium) SetBlock3rdPartyCookies(value bool)

func (*TCEFChromium) SetCookie

func (m *TCEFChromium) SetCookie(url, name, value, domain, path string,
	secure, httponly, hasExpires bool,
	creation, lastAccess, expires time.Time,
	sameSite TCefCookieSameSite, priority TCefCookiePriority, aSetImmediately bool, aID int32)

func (*TCEFChromium) SetCustomHeader

func (m *TCEFChromium) SetCustomHeader(customHeader *TCustomHeader)

func (*TCEFChromium) SetDefaultEncoding

func (m *TCEFChromium) SetDefaultEncoding(value string)

SetDefaultEncoding 设置默认编码

func (*TCEFChromium) SetDefaultURL

func (m *TCEFChromium) SetDefaultURL(defaultURL string)

SetDefaultURL 设置默认地址

func (*TCEFChromium) SetDefaultWindowInfoExStyle

func (m *TCEFChromium) SetDefaultWindowInfoExStyle(exStyle types.DWORD)

func (*TCEFChromium) SetDoNotTrack

func (m *TCEFChromium) SetDoNotTrack(value bool)

func (*TCEFChromium) SetDragOperations

func (m *TCEFChromium) SetDragOperations(value TCefDragOperations)

func (*TCEFChromium) SetEnableMultiBrowserMode

func (m *TCEFChromium) SetEnableMultiBrowserMode(enableMultiBrowserMode bool)

SetEnableMultiBrowserMode 设置启用多浏览器模式

func (*TCEFChromium) SetFocus

func (m *TCEFChromium) SetFocus(value bool)

func (*TCEFChromium) SetHighEfficiencyMode

func (m *TCEFChromium) SetHighEfficiencyMode(value TCefState)

func (*TCEFChromium) SetJavascriptEnabled

func (m *TCEFChromium) SetJavascriptEnabled(value bool)

func (*TCEFChromium) SetLoadImagesAutomatically

func (m *TCEFChromium) SetLoadImagesAutomatically(value bool)

func (*TCEFChromium) SetOffline

func (m *TCEFChromium) SetOffline(value bool)

func (*TCEFChromium) SetOnAcceleratedPaint

func (m *TCEFChromium) SetOnAcceleratedPaint(fn chromiumEventOnAcceleratedPaint)

func (*TCEFChromium) SetOnAddressChange

func (m *TCEFChromium) SetOnAddressChange(fn chromiumEventOnAddressChange)

func (*TCEFChromium) SetOnAfterCreated

func (m *TCEFChromium) SetOnAfterCreated(fn chromiumEventOnAfterCreated)

func (*TCEFChromium) SetOnAllConnectionsClosed

func (m *TCEFChromium) SetOnAllConnectionsClosed(fn chromiumEventOnAllConnectionsClosed)

func (*TCEFChromium) SetOnAudioStreamError

func (m *TCEFChromium) SetOnAudioStreamError(fn chromiumEventOnAudioStreamError)

func (*TCEFChromium) SetOnAudioStreamPacket

func (m *TCEFChromium) SetOnAudioStreamPacket(fn chromiumEventOnAudioStreamPacket)

func (*TCEFChromium) SetOnAudioStreamStarted

func (m *TCEFChromium) SetOnAudioStreamStarted(fn chromiumEventOnAudioStreamStarted)

func (*TCEFChromium) SetOnAudioStreamStopped

func (m *TCEFChromium) SetOnAudioStreamStopped(fn chromiumEventOnAudioStreamStopped)

func (*TCEFChromium) SetOnAutoResize

func (m *TCEFChromium) SetOnAutoResize(fn chromiumEventOnAutoResize)

func (*TCEFChromium) SetOnBeforeBrowser

func (m *TCEFChromium) SetOnBeforeBrowser(fn chromiumEventOnBeforeBrowser)

func (*TCEFChromium) SetOnBeforeClose

func (m *TCEFChromium) SetOnBeforeClose(fn chromiumEventOnBeforeClose)

func (*TCEFChromium) SetOnBeforeContextMenu

func (m *TCEFChromium) SetOnBeforeContextMenu(fn chromiumEventOnBeforeContextMenu)

func (*TCEFChromium) SetOnBeforeDownload

func (m *TCEFChromium) SetOnBeforeDownload(fn chromiumEventOnBeforeDownload)

func (*TCEFChromium) SetOnBeforePopup

func (m *TCEFChromium) SetOnBeforePopup(fn chromiumEventOnBeforePopup)

func (*TCEFChromium) SetOnBeforeResourceLoad

func (m *TCEFChromium) SetOnBeforeResourceLoad(fn chromiumEventOnBeforeResourceLoad)

func (*TCEFChromium) SetOnBeforeUnloadDialog

func (m *TCEFChromium) SetOnBeforeUnloadDialog(fn chromiumEventOnBeforeUnloadDialog)

func (*TCEFChromium) SetOnBrowserCompMsg

func (m *TCEFChromium) SetOnBrowserCompMsg(fn chromiumEventOnCompMsg)

func (*TCEFChromium) SetOnCanDownload

func (m *TCEFChromium) SetOnCanDownload(fn chromiumEventOnCanDownload)

func (*TCEFChromium) SetOnCanSaveCookie

func (m *TCEFChromium) SetOnCanSaveCookie(fn chromiumEventOnCanSaveCookie)

func (*TCEFChromium) SetOnCanSendCookie

func (m *TCEFChromium) SetOnCanSendCookie(fn chromiumEventOnCanSendCookie)

func (*TCEFChromium) SetOnCertificateError

func (m *TCEFChromium) SetOnCertificateError(fn chromiumEventOnCertificateError)

func (*TCEFChromium) SetOnCertificateExceptionsCleared

func (m *TCEFChromium) SetOnCertificateExceptionsCleared(fn chromiumEventOnCertificateExceptionsCleared)

func (*TCEFChromium) SetOnChromeCommand

func (m *TCEFChromium) SetOnChromeCommand(fn chromiumEventOnChromeCommand)

func (*TCEFChromium) SetOnClose

func (m *TCEFChromium) SetOnClose(fn chromiumEventOnClose)

func (*TCEFChromium) SetOnConsoleMessage

func (m *TCEFChromium) SetOnConsoleMessage(fn chromiumEventOnConsoleMessage)

func (*TCEFChromium) SetOnContextMenuCommand

func (m *TCEFChromium) SetOnContextMenuCommand(fn chromiumEventOnContextMenuCommand)

func (*TCEFChromium) SetOnContextMenuDismissed

func (m *TCEFChromium) SetOnContextMenuDismissed(fn chromiumEventOnContextMenuDismissed)

func (*TCEFChromium) SetOnCookieSet

func (m *TCEFChromium) SetOnCookieSet(fn chromiumEventOnCookieSet)

func (*TCEFChromium) SetOnCookieVisitorDestroyed

func (m *TCEFChromium) SetOnCookieVisitorDestroyed(fn chromiumEventOnCookieVisitorDestroyed)

func (*TCEFChromium) SetOnCookiesDeleted

func (m *TCEFChromium) SetOnCookiesDeleted(fn chromiumEventOnCookiesDeleted)

func (*TCEFChromium) SetOnCookiesFlushed

func (m *TCEFChromium) SetOnCookiesFlushed(fn chromiumEventOnCookiesFlushed)

func (*TCEFChromium) SetOnCookiesVisited

func (m *TCEFChromium) SetOnCookiesVisited(fn chromiumEventOnCookiesVisited)

func (*TCEFChromium) SetOnCursorChange

func (m *TCEFChromium) SetOnCursorChange(fn chromiumEventOnCursorChange)

func (*TCEFChromium) SetOnDevToolsAgentAttached

func (m *TCEFChromium) SetOnDevToolsAgentAttached(fn chromiumEventOnDevToolsAgentAttached)

func (*TCEFChromium) SetOnDevToolsAgentDetached

func (m *TCEFChromium) SetOnDevToolsAgentDetached(fn chromiumEventOnDevToolsAgentDetached)

func (*TCEFChromium) SetOnDevToolsEvent

func (m *TCEFChromium) SetOnDevToolsEvent(fn chromiumEventOnDevToolsEvent)

func (*TCEFChromium) SetOnDevToolsMessage

func (m *TCEFChromium) SetOnDevToolsMessage(fn chromiumEventOnDevToolsMessage)

func (*TCEFChromium) SetOnDevToolsMethodRawResult

func (m *TCEFChromium) SetOnDevToolsMethodRawResult(fn chromiumEventOnDevToolsMethodRawResult)

func (*TCEFChromium) SetOnDevToolsMethodResult

func (m *TCEFChromium) SetOnDevToolsMethodResult(fn chromiumEventOnDevToolsMethodResult)

func (*TCEFChromium) SetOnDevToolsRawEvent

func (m *TCEFChromium) SetOnDevToolsRawEvent(fn chromiumEventOnDevToolsRawEvent)

func (*TCEFChromium) SetOnDevToolsRawMessage

func (m *TCEFChromium) SetOnDevToolsRawMessage(fn chromiumEventOnDevToolsRawMessage)

func (*TCEFChromium) SetOnDialogClosed

func (m *TCEFChromium) SetOnDialogClosed(fn chromiumEventOnDialogClosed)

func (*TCEFChromium) SetOnDismissPermissionPrompt

func (m *TCEFChromium) SetOnDismissPermissionPrompt(fn chromiumEventOnDismissPermissionPrompt)

func (*TCEFChromium) SetOnDocumentAvailableInMainFrame

func (m *TCEFChromium) SetOnDocumentAvailableInMainFrame(fn chromiumEventOnDocumentAvailableInMainFrame)

func (*TCEFChromium) SetOnDownloadImageFinished

func (m *TCEFChromium) SetOnDownloadImageFinished(fn chromiumEventOnDownloadImageFinished)

func (*TCEFChromium) SetOnDownloadUpdated

func (m *TCEFChromium) SetOnDownloadUpdated(fn chromiumEventOnDownloadUpdated)

func (*TCEFChromium) SetOnDragEnter

func (m *TCEFChromium) SetOnDragEnter(fn chromiumEventOnDragEnter)

func (*TCEFChromium) SetOnDraggableRegionsChanged

func (m *TCEFChromium) SetOnDraggableRegionsChanged(fn chromiumEventOnDraggableRegionsChanged)

func (*TCEFChromium) SetOnExecuteTaskOnCefThread

func (m *TCEFChromium) SetOnExecuteTaskOnCefThread(fn chromiumEventOnExecuteTaskOnCefThread)

func (*TCEFChromium) SetOnExtensionBeforeBackgroundBrowser

func (m *TCEFChromium) SetOnExtensionBeforeBackgroundBrowser(fn chromiumEventOnExtensionBeforeBackgroundBrowser)

func (*TCEFChromium) SetOnExtensionBeforeBrowser

func (m *TCEFChromium) SetOnExtensionBeforeBrowser(fn chromiumEventOnExtensionBeforeBrowser)

func (*TCEFChromium) SetOnExtensionCanAccessBrowser

func (m *TCEFChromium) SetOnExtensionCanAccessBrowser(fn chromiumEventOnExtensionCanAccessBrowser)

func (*TCEFChromium) SetOnExtensionGetActiveBrowser

func (m *TCEFChromium) SetOnExtensionGetActiveBrowser(fn chromiumEventOnExtensionGetActiveBrowser)

func (*TCEFChromium) SetOnExtensionGetExtensionResource

func (m *TCEFChromium) SetOnExtensionGetExtensionResource(fn chromiumEventOnExtensionGetExtensionResource)

func (*TCEFChromium) SetOnExtensionLoadFailed

func (m *TCEFChromium) SetOnExtensionLoadFailed(fn chromiumEventOnExtensionLoadFailed)

func (*TCEFChromium) SetOnExtensionLoaded

func (m *TCEFChromium) SetOnExtensionLoaded(fn chromiumEventOnExtensionLoaded)

func (*TCEFChromium) SetOnExtensionUnloaded

func (m *TCEFChromium) SetOnExtensionUnloaded(fn chromiumEventOnExtensionUnloaded)

func (*TCEFChromium) SetOnFavIconUrlChange

func (m *TCEFChromium) SetOnFavIconUrlChange(fn chromiumEventOnFavIconUrlChange)

func (*TCEFChromium) SetOnFileDialog

func (m *TCEFChromium) SetOnFileDialog(fn chromiumEventOnFileDialog)

func (*TCEFChromium) SetOnFindResult

func (m *TCEFChromium) SetOnFindResult(fn chromiumEventOnFindResult)

func (*TCEFChromium) SetOnFrameAttached

func (m *TCEFChromium) SetOnFrameAttached(fn chromiumEventOnFrameAttached)

func (*TCEFChromium) SetOnFrameCreated

func (m *TCEFChromium) SetOnFrameCreated(fn chromiumEventOnFrameCreated)

func (*TCEFChromium) SetOnFrameDetached

func (m *TCEFChromium) SetOnFrameDetached(fn chromiumEventOnFrameDetached)

func (*TCEFChromium) SetOnFullScreenModeChange

func (m *TCEFChromium) SetOnFullScreenModeChange(fn chromiumEventOnFullScreenModeChange)

func (*TCEFChromium) SetOnGetAccessibilityHandler

func (m *TCEFChromium) SetOnGetAccessibilityHandler(fn chromiumEventOnGetAccessibilityHandler)

func (*TCEFChromium) SetOnGetAudioParameters

func (m *TCEFChromium) SetOnGetAudioParameters(fn chromiumEventOnGetAudioParameters)

func (*TCEFChromium) SetOnGetAuthCredentials

func (m *TCEFChromium) SetOnGetAuthCredentials(fn chromiumEventOnGetAuthCredentials)

func (*TCEFChromium) SetOnGetResourceHandler

func (m *TCEFChromium) SetOnGetResourceHandler(fn chromiumEventOnGetResourceHandler)

func (*TCEFChromium) SetOnGetResourceRequestHandlerReqCtxHdlr

func (m *TCEFChromium) SetOnGetResourceRequestHandlerReqCtxHdlr(fn chromiumEventOnGetResourceRequestHandlerReqCtxHdlr)

func (*TCEFChromium) SetOnGetResourceRequestHandlerReqHdlr

func (m *TCEFChromium) SetOnGetResourceRequestHandlerReqHdlr(fn chromiumEventOnGetResourceRequestHandlerReqHdlr)

func (*TCEFChromium) SetOnGetResourceResponseFilter

func (m *TCEFChromium) SetOnGetResourceResponseFilter(fn chromiumEventOnGetResourceResponseFilter)

func (*TCEFChromium) SetOnGetRootScreenRect

func (m *TCEFChromium) SetOnGetRootScreenRect(fn chromiumEventOnGetRootScreenRect)

func (*TCEFChromium) SetOnGetScreenInfo

func (m *TCEFChromium) SetOnGetScreenInfo(fn chromiumEventOnGetScreenInfo)

func (*TCEFChromium) SetOnGetScreenPoint

func (m *TCEFChromium) SetOnGetScreenPoint(fn chromiumEventOnGetScreenPoint)

func (*TCEFChromium) SetOnGetTouchHandleSize

func (m *TCEFChromium) SetOnGetTouchHandleSize(fn chromiumEventOnGetTouchHandleSize)

func (*TCEFChromium) SetOnGetViewRect

func (m *TCEFChromium) SetOnGetViewRect(fn chromiumEventOnGetViewRect)

func (*TCEFChromium) SetOnGotFocus

func (m *TCEFChromium) SetOnGotFocus(fn chromiumEventOnGotFocus)

func (*TCEFChromium) SetOnHttpAuthCredentialsCleared

func (m *TCEFChromium) SetOnHttpAuthCredentialsCleared(fn chromiumEventOnHttpAuthCredentialsCleared)

func (*TCEFChromium) SetOnIMECompositionRangeChanged

func (m *TCEFChromium) SetOnIMECompositionRangeChanged(fn chromiumEventOnIMECompositionRangeChanged)

func (*TCEFChromium) SetOnJsDialog

func (m *TCEFChromium) SetOnJsDialog(fn chromiumEventOnJsDialog)

func (*TCEFChromium) SetOnKeyEvent

func (m *TCEFChromium) SetOnKeyEvent(fn chromiumEventOnKeyEvent)

func (*TCEFChromium) SetOnLoadEnd

func (m *TCEFChromium) SetOnLoadEnd(fn chromiumEventOnLoadEnd)

func (*TCEFChromium) SetOnLoadError

func (m *TCEFChromium) SetOnLoadError(fn chromiumEventOnLoadError)

func (*TCEFChromium) SetOnLoadStart

func (m *TCEFChromium) SetOnLoadStart(fn chromiumEventOnLoadStart)

func (*TCEFChromium) SetOnLoadingProgressChange

func (m *TCEFChromium) SetOnLoadingProgressChange(fn chromiumEventOnLoadingProgressChange)

func (*TCEFChromium) SetOnLoadingStateChange

func (m *TCEFChromium) SetOnLoadingStateChange(fn chromiumEventOnLoadingStateChange)

func (*TCEFChromium) SetOnMainFrameChanged

func (m *TCEFChromium) SetOnMainFrameChanged(fn chromiumEventOnMainFrameChanged)

func (*TCEFChromium) SetOnMediaAccessChange

func (m *TCEFChromium) SetOnMediaAccessChange(fn chromiumEventOnMediaAccessChange)

func (*TCEFChromium) SetOnMediaRouteCreateFinished

func (m *TCEFChromium) SetOnMediaRouteCreateFinished(fn chromiumEventOnMediaRouteCreateFinished)

func (*TCEFChromium) SetOnMediaSinkDeviceInfo

func (m *TCEFChromium) SetOnMediaSinkDeviceInfo(fn chromiumEventOnMediaSinkDeviceInfo)

func (*TCEFChromium) SetOnNavigationVisitorResultAvailable

func (m *TCEFChromium) SetOnNavigationVisitorResultAvailable(fn chromiumEventOnNavigationVisitorResultAvailable)

func (*TCEFChromium) SetOnOpenUrlFromTab

func (m *TCEFChromium) SetOnOpenUrlFromTab(fn chromiumEventOnOpenUrlFromTab)

func (*TCEFChromium) SetOnPaint

func (m *TCEFChromium) SetOnPaint(fn chromiumEventOnPaint)

func (*TCEFChromium) SetOnPdfPrintFinished

func (m *TCEFChromium) SetOnPdfPrintFinished(fn chromiumEventOnPdfPrintFinished)

func (*TCEFChromium) SetOnPopupShow

func (m *TCEFChromium) SetOnPopupShow(fn chromiumEventOnPopupShow)

func (*TCEFChromium) SetOnPopupSize

func (m *TCEFChromium) SetOnPopupSize(fn chromiumEventOnPopupSize)

func (*TCEFChromium) SetOnPreKeyEvent

func (m *TCEFChromium) SetOnPreKeyEvent(fn chromiumEventOnPreKeyEvent)

func (*TCEFChromium) SetOnPrefsAvailable

func (m *TCEFChromium) SetOnPrefsAvailable(fn chromiumEventOnPrefsAvailable)

func (*TCEFChromium) SetOnPrefsUpdated

func (m *TCEFChromium) SetOnPrefsUpdated(fn chromiumEventOnPrefsUpdated)

func (*TCEFChromium) SetOnProcessMessageReceived

func (m *TCEFChromium) SetOnProcessMessageReceived(fn BrowseProcessMessageReceived)

func (*TCEFChromium) SetOnProtocolExecution

func (m *TCEFChromium) SetOnProtocolExecution(fn chromiumEventOnProtocolExecution)

func (*TCEFChromium) SetOnQuickMenuCommand

func (m *TCEFChromium) SetOnQuickMenuCommand(fn chromiumEventOnQuickMenuCommand)

func (*TCEFChromium) SetOnQuickMenuDismissed

func (m *TCEFChromium) SetOnQuickMenuDismissed(fn chromiumEventOnQuickMenuDismissed)

func (*TCEFChromium) SetOnRenderCompMsg

func (m *TCEFChromium) SetOnRenderCompMsg(fn chromiumEventOnCompMsg)

func (*TCEFChromium) SetOnRenderProcessTerminated

func (m *TCEFChromium) SetOnRenderProcessTerminated(fn chromiumEventOnRenderProcessTerminated)

func (*TCEFChromium) SetOnRenderViewReady

func (m *TCEFChromium) SetOnRenderViewReady(fn chromiumEventOnRenderViewReady)

func (*TCEFChromium) SetOnRequestContextInitialized

func (m *TCEFChromium) SetOnRequestContextInitialized(fn chromiumEventOnRequestContextInitialized)

func (*TCEFChromium) SetOnRequestMediaAccessPermission

func (m *TCEFChromium) SetOnRequestMediaAccessPermission(fn chromiumEventOnRequestMediaAccessPermission)

func (*TCEFChromium) SetOnResetDialogState

func (m *TCEFChromium) SetOnResetDialogState(fn chromiumEventOnResetDialogState)

func (*TCEFChromium) SetOnResolvedHostAvailable

func (m *TCEFChromium) SetOnResolvedHostAvailable(fn chromiumEventOnResolvedHostAvailable)

func (*TCEFChromium) SetOnResourceLoadComplete

func (m *TCEFChromium) SetOnResourceLoadComplete(fn chromiumEventOnResourceLoadComplete)

func (*TCEFChromium) SetOnResourceRedirect

func (m *TCEFChromium) SetOnResourceRedirect(fn chromiumEventOnResourceRedirect)

func (*TCEFChromium) SetOnResourceResponse

func (m *TCEFChromium) SetOnResourceResponse(fn chromiumEventOnResourceResponse)

func (*TCEFChromium) SetOnRouteMessageReceived

func (m *TCEFChromium) SetOnRouteMessageReceived(fn chromiumEventOnRouteMessageReceived)

func (*TCEFChromium) SetOnRouteStateChanged

func (m *TCEFChromium) SetOnRouteStateChanged(fn chromiumEventOnRouteStateChanged)

func (*TCEFChromium) SetOnRoutes

func (m *TCEFChromium) SetOnRoutes(fn chromiumEventOnRoutes)

func (*TCEFChromium) SetOnRunContextMenu

func (m *TCEFChromium) SetOnRunContextMenu(fn chromiumEventOnRunContextMenu)

func (*TCEFChromium) SetOnRunQuickMenu

func (m *TCEFChromium) SetOnRunQuickMenu(fn chromiumEventOnRunQuickMenu)

func (*TCEFChromium) SetOnScrollOffsetChanged

func (m *TCEFChromium) SetOnScrollOffsetChanged(fn chromiumEventOnScrollOffsetChanged)

func (*TCEFChromium) SetOnSelectClientCertificate

func (m *TCEFChromium) SetOnSelectClientCertificate(fn chromiumEventOnSelectClientCertificate)

func (*TCEFChromium) SetOnSetFocus

func (m *TCEFChromium) SetOnSetFocus(fn chromiumEventOnSetFocus)

func (*TCEFChromium) SetOnShowPermissionPrompt

func (m *TCEFChromium) SetOnShowPermissionPrompt(fn chromiumEventOnShowPermissionPrompt)

func (*TCEFChromium) SetOnSinks

func (m *TCEFChromium) SetOnSinks(fn chromiumEventOnSinks)

func (*TCEFChromium) SetOnStartDragging

func (m *TCEFChromium) SetOnStartDragging(fn chromiumEventOnStartDragging)

func (*TCEFChromium) SetOnStatusMessage

func (m *TCEFChromium) SetOnStatusMessage(fn chromiumEventOnStatusMessage)

func (*TCEFChromium) SetOnTakeFocus

func (m *TCEFChromium) SetOnTakeFocus(fn chromiumEventOnTakeFocus)

func (*TCEFChromium) SetOnTextResultAvailable

func (m *TCEFChromium) SetOnTextResultAvailable(fn chromiumEventOnTextResultAvailable)

func (*TCEFChromium) SetOnTextSelectionChanged

func (m *TCEFChromium) SetOnTextSelectionChanged(fn chromiumEventOnTextSelectionChanged)

func (*TCEFChromium) SetOnTitleChange

func (m *TCEFChromium) SetOnTitleChange(fn chromiumEventOnTitleChange)

func (*TCEFChromium) SetOnTooltip

func (m *TCEFChromium) SetOnTooltip(fn chromiumEventOnTooltip)

func (*TCEFChromium) SetOnTouchHandleStateChanged

func (m *TCEFChromium) SetOnTouchHandleStateChanged(fn chromiumEventOnTouchHandleStateChanged)

func (*TCEFChromium) SetOnUpdateDragCursor

func (m *TCEFChromium) SetOnUpdateDragCursor(fn chromiumEventOnUpdateDragCursor)

func (*TCEFChromium) SetOnVirtualKeyboardRequested

func (m *TCEFChromium) SetOnVirtualKeyboardRequested(fn chromiumEventOnVirtualKeyboardRequested)

func (*TCEFChromium) SetOnWidgetCompMsg

func (m *TCEFChromium) SetOnWidgetCompMsg(fn chromiumEventOnCompMsg)

func (*TCEFChromium) SetOnZoomPctAvailable

func (m *TCEFChromium) SetOnZoomPctAvailable(fn chromiumEventOnResultFloat)

func (*TCEFChromium) SetPrintingEnabled

func (m *TCEFChromium) SetPrintingEnabled(value bool)

func (*TCEFChromium) SetProxy

func (m *TCEFChromium) SetProxy(cefProxy *TCefProxy)

func (*TCEFChromium) SetQuicAllowed

func (m *TCEFChromium) SetQuicAllowed(value bool)

func (*TCEFChromium) SetSafeSearch

func (m *TCEFChromium) SetSafeSearch(value bool)

func (*TCEFChromium) SetSendReferrer

func (m *TCEFChromium) SetSendReferrer(value bool)

func (*TCEFChromium) SetSpellCheckerDicts

func (m *TCEFChromium) SetSpellCheckerDicts(value string)

func (*TCEFChromium) SetSpellChecking

func (m *TCEFChromium) SetSpellChecking(value bool)

func (*TCEFChromium) SetWebRTCIPHandlingPolicy

func (m *TCEFChromium) SetWebRTCIPHandlingPolicy(value TCefWebRTCHandlingPolicy)

func (*TCEFChromium) SetWebRTCMultipleRoutes

func (m *TCEFChromium) SetWebRTCMultipleRoutes(value TCefState)

func (*TCEFChromium) SetWebRTCNonproxiedUDP

func (m *TCEFChromium) SetWebRTCNonproxiedUDP(value TCefState)

func (*TCEFChromium) SetYouTubeRestrict

func (m *TCEFChromium) SetYouTubeRestrict(value bool)

func (*TCEFChromium) SetZoomLevel

func (m *TCEFChromium) SetZoomLevel(value float64)

SetZoomLevel 设置缩放级别

func (*TCEFChromium) SetZoomPct

func (m *TCEFChromium) SetZoomPct(value float64)

SetZoomPct 设置缩放百分比

func (*TCEFChromium) SetZoomStep

func (m *TCEFChromium) SetZoomStep(value int8)

SetZoomStep 设置缩放步 0~255

func (*TCEFChromium) ShowDevTools

func (m *TCEFChromium) ShowDevTools(window ICEFWindowParent)

func (*TCEFChromium) SpellCheckerDicts

func (m *TCEFChromium) SpellCheckerDicts() string

func (*TCEFChromium) SpellChecking

func (m *TCEFChromium) SpellChecking() bool

func (*TCEFChromium) StartDownload

func (m *TCEFChromium) StartDownload(url string)

StartDownload 开始下载

func (*TCEFChromium) StopLoad

func (m *TCEFChromium) StopLoad()

func (*TCEFChromium) ToString

func (m *TCEFChromium) ToString() string

func (*TCEFChromium) TryCloseBrowser

func (m *TCEFChromium) TryCloseBrowser() bool

func (*TCEFChromium) UnsafeAddr

func (m *TCEFChromium) UnsafeAddr() unsafe.Pointer

UnsafeAddr 实例指针

func (*TCEFChromium) UpdatePreferences

func (m *TCEFChromium) UpdatePreferences()

func (*TCEFChromium) VisitAllCookies

func (m *TCEFChromium) VisitAllCookies(id int32)

查看所有cookie,该函数触发 OnCookiesVisited 事件返回结果

func (*TCEFChromium) VisitURLCookies

func (m *TCEFChromium) VisitURLCookies(url string, includeHttpOnly bool, id int32)

查看指针URL cookie,该函数触发 OnCookiesVisited 事件返回结果 url https://www.demo.com

func (*TCEFChromium) WebRTCIPHandlingPolicy

func (m *TCEFChromium) WebRTCIPHandlingPolicy() TCefWebRTCHandlingPolicy

func (*TCEFChromium) WebRTCMultipleRoutes

func (m *TCEFChromium) WebRTCMultipleRoutes() TCefState

func (*TCEFChromium) WebRTCNonproxiedUDP

func (m *TCEFChromium) WebRTCNonproxiedUDP() TCefState

func (*TCEFChromium) WidgetHandle

func (m *TCEFChromium) WidgetHandle() types.HWND

func (*TCEFChromium) YouTubeRestrict

func (m *TCEFChromium) YouTubeRestrict() bool

func (*TCEFChromium) ZoomLevel

func (m *TCEFChromium) ZoomLevel() (result float64)

ZoomLevel 获取缩放级别

func (*TCEFChromium) ZoomPct

func (m *TCEFChromium) ZoomPct() (result float64)

ZoomPct 获取缩放百分比

func (*TCEFChromium) ZoomStep

func (m *TCEFChromium) ZoomStep() int8

ZoomStep 获取缩放步 0~255

type TCEFChromiumBrowser

type TCEFChromiumBrowser struct {
	// contains filtered or unexported fields
}

TCEFChromiumBrowser

CEFChromium浏览器包装结构

func (*TCEFChromiumBrowser) Chromium

func (m *TCEFChromiumBrowser) Chromium() IChromium

Chromium

返回 chromium

func (*TCEFChromiumBrowser) CreateBrowser

func (m *TCEFChromiumBrowser) CreateBrowser()

CreateBrowser

创建浏览器
创建时如果未创建成功, 使用定时任务创建直到成功

func (*TCEFChromiumBrowser) IsCreated

func (m *TCEFChromiumBrowser) IsCreated() bool

IsCreated

创建浏览器是否成功

func (*TCEFChromiumBrowser) WindowParent

func (m *TCEFChromiumBrowser) WindowParent() ICEFWindowParent

WindowParent

返回 chromium window 组件

type TCEFLinkedWindowParent

type TCEFLinkedWindowParent struct {
	BaseWinControl
	// contains filtered or unexported fields
}

TCEFLinkedWindowParent 组件

func NewCEFLinkedWindowParent

func NewCEFLinkedWindowParent(owner lcl.IComponent) *TCEFLinkedWindowParent

NewCEFLinkedWindowParent 创建一个新的WindowParent组件

func (*TCEFLinkedWindowParent) Align

func (m *TCEFLinkedWindowParent) Align() types.TAlign

Align Align 获取控件自动调整

func (*TCEFLinkedWindowParent) Anchors

func (m *TCEFLinkedWindowParent) Anchors() types.TAnchors

Anchors 获取四个角位置的锚点

func (*TCEFLinkedWindowParent) BoundsRect

func (m *TCEFLinkedWindowParent) BoundsRect() (result types.TRect)

BoundsRect 获取矩形边界

func (*TCEFLinkedWindowParent) CreateHandle

func (m *TCEFLinkedWindowParent) CreateHandle()

CreateHandle 创建句柄

func (*TCEFLinkedWindowParent) DefaultAnchors

func (m *TCEFLinkedWindowParent) DefaultAnchors()

DefaultAnchors 恢复到默认四角锚点定位

func (*TCEFLinkedWindowParent) DestroyChildWindow

func (m *TCEFLinkedWindowParent) DestroyChildWindow() bool

DestroyChildWindow 销毁子窗口

func (*TCEFLinkedWindowParent) Enabled

func (m *TCEFLinkedWindowParent) Enabled() bool

Enabled 获取是否启用

func (*TCEFLinkedWindowParent) Free

func (m *TCEFLinkedWindowParent) Free()

Free 释放

func (*TCEFLinkedWindowParent) Handle

func (m *TCEFLinkedWindowParent) Handle() types.HWND

Handle 组件句柄

func (*TCEFLinkedWindowParent) HandleAllocated

func (m *TCEFLinkedWindowParent) HandleAllocated() bool

HandleAllocated 处理所有

func (*TCEFLinkedWindowParent) Height

func (m *TCEFLinkedWindowParent) Height() int32

Height 获取高度

func (*TCEFLinkedWindowParent) Instance

func (m *TCEFLinkedWindowParent) Instance() uintptr

func (*TCEFLinkedWindowParent) Left

func (m *TCEFLinkedWindowParent) Left() int32

Left 获取左边距

func (*TCEFLinkedWindowParent) Name

func (m *TCEFLinkedWindowParent) Name() string

Name 获取组件名称

func (*TCEFLinkedWindowParent) RevertCustomAnchors

func (m *TCEFLinkedWindowParent) RevertCustomAnchors()

RevertCustomAnchors 恢复到自定义四角锚点定位

func (*TCEFLinkedWindowParent) SetAlign

func (m *TCEFLinkedWindowParent) SetAlign(value types.TAlign)

SetAlign 设置控件自动调整

func (*TCEFLinkedWindowParent) SetAnchors

func (m *TCEFLinkedWindowParent) SetAnchors(value types.TAnchors)

SetAnchors 设置四个角位置的锚点

func (*TCEFLinkedWindowParent) SetBoundsRect

func (m *TCEFLinkedWindowParent) SetBoundsRect(value types.TRect)

SetBoundsRect 设置矩形边界

func (*TCEFLinkedWindowParent) SetChromium

func (m *TCEFLinkedWindowParent) SetChromium(chromium IChromium, tag int32)

SetChromium 设置 IChromium, 只 TCEFLinkedWindowParent 有效

func (*TCEFLinkedWindowParent) SetEnabled

func (m *TCEFLinkedWindowParent) SetEnabled(value bool)

SetEnabled 设置是否启用

func (*TCEFLinkedWindowParent) SetHeight

func (m *TCEFLinkedWindowParent) SetHeight(value int32)

SetHeight 设置高度

func (*TCEFLinkedWindowParent) SetLeft

func (m *TCEFLinkedWindowParent) SetLeft(value int32)

SetLeft 设置左边距

func (*TCEFLinkedWindowParent) SetName

func (m *TCEFLinkedWindowParent) SetName(value string)

SetName 设置组件名称

func (*TCEFLinkedWindowParent) SetOnEnter

func (m *TCEFLinkedWindowParent) SetOnEnter(fn lcl.TNotifyEvent)

SetOnEnter 进入事件

func (*TCEFLinkedWindowParent) SetOnExit

func (m *TCEFLinkedWindowParent) SetOnExit(fn lcl.TNotifyEvent)

SetOnExit 退出事件

func (*TCEFLinkedWindowParent) SetParent

func (m *TCEFLinkedWindowParent) SetParent(value lcl.IWinControl)

SetParent 设置控件父容器

func (*TCEFLinkedWindowParent) SetTop

func (m *TCEFLinkedWindowParent) SetTop(value int32)

SetTop 设置上边距

func (*TCEFLinkedWindowParent) SetVisible

func (m *TCEFLinkedWindowParent) SetVisible(value bool)

SetVisible 设置控件可视

func (*TCEFLinkedWindowParent) SetWidth

func (m *TCEFLinkedWindowParent) SetWidth(value int32)

SetWidth 设置宽度

func (*TCEFLinkedWindowParent) Top

func (m *TCEFLinkedWindowParent) Top() int32

Top 获取上边距

func (*TCEFLinkedWindowParent) Type

Type 组件类型, 这里返回 TCEFLinkedWindowParent 类型

func (*TCEFLinkedWindowParent) UpdateSize

func (m *TCEFLinkedWindowParent) UpdateSize()

UpdateSize 更新组件大小

func (*TCEFLinkedWindowParent) Visible

func (m *TCEFLinkedWindowParent) Visible() bool

Visible 获取控件可视

func (*TCEFLinkedWindowParent) Width

func (m *TCEFLinkedWindowParent) Width() int32

Width 获取宽度

type TCEFWindowComponent

type TCEFWindowComponent struct {
	lcl.IComponent
	// contains filtered or unexported fields
}

TCEFWindowComponent 窗口组件

func NewWindowComponent

func NewWindowComponent(AOwner lcl.IComponent) *TCEFWindowComponent

NewWindowComponent 创建一个Window组件

func (*TCEFWindowComponent) Activate

func (m *TCEFWindowComponent) Activate()

Activate 激活窗口

func (*TCEFWindowComponent) AddChildView

func (m *TCEFWindowComponent) AddChildView(browserViewComponent *TCEFBrowserViewComponent)

AddChildView 添加浏览器显示组件

func (*TCEFWindowComponent) Bounds

func (m *TCEFWindowComponent) Bounds() (result *TCefRect)

SetBounds 获取窗口边界

func (*TCEFWindowComponent) BringToTop

func (m *TCEFWindowComponent) BringToTop()

BringToTop 将窗口移至最上层

func (*TCEFWindowComponent) CancelMenu

func (m *TCEFWindowComponent) CancelMenu()

CancelMenu 取消菜单

func (*TCEFWindowComponent) CenterWindow

func (m *TCEFWindowComponent) CenterWindow(size *TCefSize)

CenterWindow 根据大小窗口居中

func (*TCEFWindowComponent) ClientAreaBoundsInScreen

func (m *TCEFWindowComponent) ClientAreaBoundsInScreen() (result TCefRect)

ClientAreaBoundsInScreen 获取客户端所在指定屏幕位置

func (*TCEFWindowComponent) Close

func (m *TCEFWindowComponent) Close()

Close 关闭窗口, 主窗口调用

func (*TCEFWindowComponent) CreateTopLevelWindow

func (m *TCEFWindowComponent) CreateTopLevelWindow()

CreateTopLevelWindow 创建顶层窗口

func (*TCEFWindowComponent) Deactivate

func (m *TCEFWindowComponent) Deactivate()

Deactivate 停止激活窗口

func (*TCEFWindowComponent) Display

func (m *TCEFWindowComponent) Display() *ICefDisplay

Display

func (*TCEFWindowComponent) Hide

func (m *TCEFWindowComponent) Hide()

Hide 显示窗口

func (*TCEFWindowComponent) Instance

func (m *TCEFWindowComponent) Instance() uintptr

Instance 实例

func (*TCEFWindowComponent) IsActive

func (m *TCEFWindowComponent) IsActive() bool

IsActive 是否激活

func (*TCEFWindowComponent) IsAlwaysOnTop

func (m *TCEFWindowComponent) IsAlwaysOnTop() bool

IsAlwaysOnTop 窗口是否置顶

func (*TCEFWindowComponent) IsClosed

func (m *TCEFWindowComponent) IsClosed() bool

IsClosed 是否关闭

func (*TCEFWindowComponent) IsFullscreen

func (m *TCEFWindowComponent) IsFullscreen() bool

IsFullscreen 是否全屏

func (*TCEFWindowComponent) IsMaximized

func (m *TCEFWindowComponent) IsMaximized() bool

IsMaximized 是否最大化

func (*TCEFWindowComponent) IsMinimized

func (m *TCEFWindowComponent) IsMinimized() bool

IsMinimized 是否最小化

func (*TCEFWindowComponent) Maximize

func (m *TCEFWindowComponent) Maximize()

Maximize 最大化窗口

func (*TCEFWindowComponent) Minimize

func (m *TCEFWindowComponent) Minimize()

Minimize 最小化窗口

func (*TCEFWindowComponent) Position

func (m *TCEFWindowComponent) Position() (result *TCefPoint)

Position 获取窗口位置

func (*TCEFWindowComponent) RemoveAccelerator

func (m *TCEFWindowComponent) RemoveAccelerator(commandId int32)

RemoveAccelerator 移除指定快捷键

func (*TCEFWindowComponent) RemoveAllAccelerators

func (m *TCEFWindowComponent) RemoveAllAccelerators()

RemoveAllAccelerators 移除所有快捷键

func (*TCEFWindowComponent) Restore

func (m *TCEFWindowComponent) Restore()

Restore 窗口还原

func (*TCEFWindowComponent) SendKeyPress

func (m *TCEFWindowComponent) SendKeyPress(keyCode int32, eventFlags uint32)

SendKeyPress 发送键盘事件

func (*TCEFWindowComponent) SendMouseEvents

func (m *TCEFWindowComponent) SendMouseEvents(button consts.TCefMouseButtonType, mouseDown, mouseUp bool)

SendMouseEvents 发送鼠标事件

func (*TCEFWindowComponent) SendMouseMove

func (m *TCEFWindowComponent) SendMouseMove(screenX, screenY int32)

SendMouseMove 发送鼠标移动事件

func (*TCEFWindowComponent) SetAccelerator

func (m *TCEFWindowComponent) SetAccelerator(commandId, keyCode int32, shiftPressed, ctrlPressed, altPressed bool)

SetAccelerator 设置快捷键

func (*TCEFWindowComponent) SetAlwaysOnTop

func (m *TCEFWindowComponent) SetAlwaysOnTop(onTop bool)

SetAlwaysOnTop 设置窗口是否置顶

func (*TCEFWindowComponent) SetBackgroundColor

func (m *TCEFWindowComponent) SetBackgroundColor(rect *types.TCefColor)

SetBackgroundColor 设置背景色

func (*TCEFWindowComponent) SetBounds

func (m *TCEFWindowComponent) SetBounds(rect *TCefRect)

SetBounds 设置窗口边界

func (*TCEFWindowComponent) SetDraggableRegions

func (m *TCEFWindowComponent) SetDraggableRegions(regions []TCefDraggableRegion)

SetDraggableRegions 设置拖拽区域

func (*TCEFWindowComponent) SetFullscreen

func (m *TCEFWindowComponent) SetFullscreen(fullscreen bool)

SetFullscreen 设置窗口全屏

func (*TCEFWindowComponent) SetOnAccelerator

func (m *TCEFWindowComponent) SetOnAccelerator(fn WindowComponentOnAccelerator)

SetOnAccelerator 设置快捷键回调事件

func (*TCEFWindowComponent) SetOnCanClose

func (m *TCEFWindowComponent) SetOnCanClose(fn WindowComponentOnCanClose)

SetOnCanClose 设置窗口是否允许关闭回调事件

func (*TCEFWindowComponent) SetOnCanMaximize

func (m *TCEFWindowComponent) SetOnCanMaximize(fn WindowComponentOnCanMaximize)

SetOnCanMaximize 设置窗口是否允许最大化回调事件

func (*TCEFWindowComponent) SetOnCanMinimize

func (m *TCEFWindowComponent) SetOnCanMinimize(fn WindowComponentOnCanMinimize)

SetOnCanMinimize 设置窗口是否允许最小化回调事件

func (*TCEFWindowComponent) SetOnCanResize

func (m *TCEFWindowComponent) SetOnCanResize(fn WindowComponentOnCanResize)

SetOnCanResize 设置窗口是否允许调整大小回调事件

func (*TCEFWindowComponent) SetOnGetInitialBounds

func (m *TCEFWindowComponent) SetOnGetInitialBounds(fn WindowComponentOnGetInitialBounds)

SetOnGetInitialBounds 窗口初始窗口边界回调事件

func (*TCEFWindowComponent) SetOnGetInitialShowState

func (m *TCEFWindowComponent) SetOnGetInitialShowState(fn WindowComponentOnGetInitialShowState)

SetOnGetInitialShowState 窗口初始显示状态回调事件

func (*TCEFWindowComponent) SetOnGetParentWindow

func (m *TCEFWindowComponent) SetOnGetParentWindow(fn WindowComponentOnGetParentWindow)

SetOnGetParentWindow 获取父组件回调事件

func (*TCEFWindowComponent) SetOnIsFrameless

func (m *TCEFWindowComponent) SetOnIsFrameless(fn WindowComponentOnIsFrameless)

SetOnIsFrameless 窗口无边框回调事件

func (*TCEFWindowComponent) SetOnKeyEvent

func (m *TCEFWindowComponent) SetOnKeyEvent(fn WindowComponentOnKeyEvent)

SetOnKeyEvent 设置键盘事件回调事件

func (*TCEFWindowComponent) SetOnWindowActivationChanged

func (m *TCEFWindowComponent) SetOnWindowActivationChanged(fn WindowComponentOnWindowActivationChanged)

SetOnWindowActivationChanged 窗口激活改变回调事件

func (*TCEFWindowComponent) SetOnWindowCreated

func (m *TCEFWindowComponent) SetOnWindowCreated(fn WindowComponentOnWindowCreated)

SetOnWindowCreated 窗口创建回调事件

func (*TCEFWindowComponent) SetOnWindowDestroyed

func (m *TCEFWindowComponent) SetOnWindowDestroyed(fn WindowComponentOnWindowDestroyed)

SetOnWindowDestroyed 窗口销毁回调事件

func (*TCEFWindowComponent) SetPosition

func (m *TCEFWindowComponent) SetPosition(point *TCefPoint)

SetPosition 设置窗口位置

func (*TCEFWindowComponent) SetSize

func (m *TCEFWindowComponent) SetSize(size *TCefSize)

SetSize 设置窗口宽高

func (*TCEFWindowComponent) SetTitle

func (m *TCEFWindowComponent) SetTitle(title string)

SetTitle 设置窗口标题

func (*TCEFWindowComponent) SetWindowAppIcon

func (m *TCEFWindowComponent) SetWindowAppIcon(icon *ICefImage)

func (*TCEFWindowComponent) SetWindowAppIconByFSFile

func (m *TCEFWindowComponent) SetWindowAppIconByFSFile(scaleFactor float32, filename string) error

SetWindowAppIconByFSFile 设置窗口应用图标

func (*TCEFWindowComponent) SetWindowAppIconByFile

func (m *TCEFWindowComponent) SetWindowAppIconByFile(scaleFactor float32, filename string) error

SetWindowAppIconByFile 设置窗口应用图标

func (*TCEFWindowComponent) SetWindowIcon

func (m *TCEFWindowComponent) SetWindowIcon(icon *ICefImage)

func (*TCEFWindowComponent) SetWindowIconByFSFile

func (m *TCEFWindowComponent) SetWindowIconByFSFile(scaleFactor float32, filename string) error

SetWindowIconByFSFile 设置窗口图标

func (*TCEFWindowComponent) SetWindowIconByFile

func (m *TCEFWindowComponent) SetWindowIconByFile(scaleFactor float32, filename string) error

SetWindowIconByFile 设置窗口图标

func (*TCEFWindowComponent) Show

func (m *TCEFWindowComponent) Show()

Show 显示窗口

func (*TCEFWindowComponent) ShowMenu

func (m *TCEFWindowComponent) ShowMenu(menuModel *ICefMenuModel, point TCefPoint, anchorPosition consts.TCefMenuAnchorPosition)

ShowMenu 显示菜单

func (*TCEFWindowComponent) Size

func (m *TCEFWindowComponent) Size() (result *TCefSize)

SetSize 获取窗口宽高

func (*TCEFWindowComponent) Title

func (m *TCEFWindowComponent) Title() string

GetTitle 获取窗口标题

func (*TCEFWindowComponent) WindowAppIcon

func (m *TCEFWindowComponent) WindowAppIcon() *ICefImage

WindowAppIcon 获取窗口应用图标

func (*TCEFWindowComponent) WindowHandle

func (m *TCEFWindowComponent) WindowHandle() consts.TCefWindowHandle

WindowHandle 获取窗口句柄

func (*TCEFWindowComponent) WindowIcon

func (m *TCEFWindowComponent) WindowIcon() *ICefImage

WindowIcon 获取窗口图标

type TCEFWindowParent

type TCEFWindowParent struct {
	BaseWinControl
	// contains filtered or unexported fields
}

TCEFWindowParent 组件

func NewCEFWindowParent

func NewCEFWindowParent(owner lcl.IComponent) *TCEFWindowParent

NewCEFWindowParent 创建一个新的WindowParent组件

func (*TCEFWindowParent) Align

func (m *TCEFWindowParent) Align() types.TAlign

Align 获取控件自动调整

func (*TCEFWindowParent) Anchors

func (m *TCEFWindowParent) Anchors() types.TAnchors

Anchors 获取四个角位置的锚点

func (*TCEFWindowParent) BoundsRect

func (m *TCEFWindowParent) BoundsRect() (result types.TRect)

BoundsRect 获取坐标位置和宽高

func (*TCEFWindowParent) CreateHandle

func (m *TCEFWindowParent) CreateHandle()

CreateHandle 创建句柄

func (*TCEFWindowParent) DefaultAnchors

func (m *TCEFWindowParent) DefaultAnchors()

DefaultAnchors 恢复到默认四角锚点定位

func (*TCEFWindowParent) DestroyChildWindow

func (m *TCEFWindowParent) DestroyChildWindow() bool

DestroyChildWindow 销毁子窗口

func (*TCEFWindowParent) Enabled

func (m *TCEFWindowParent) Enabled() bool

Enabled 获取是否启用

func (*TCEFWindowParent) Free

func (m *TCEFWindowParent) Free()

Free 释放

func (*TCEFWindowParent) Handle

func (m *TCEFWindowParent) Handle() types.HWND

Handle 组件句柄

func (*TCEFWindowParent) HandleAllocated

func (m *TCEFWindowParent) HandleAllocated() bool

HandleAllocated 处理所有

func (*TCEFWindowParent) Height

func (m *TCEFWindowParent) Height() int32

Height 获取高度

func (*TCEFWindowParent) Instance

func (m *TCEFWindowParent) Instance() uintptr

func (*TCEFWindowParent) Left

func (m *TCEFWindowParent) Left() int32

Left 获取左边距

func (*TCEFWindowParent) Name

func (m *TCEFWindowParent) Name() string

Name 获取组件名称

func (*TCEFWindowParent) RevertCustomAnchors

func (m *TCEFWindowParent) RevertCustomAnchors()

RevertCustomAnchors 恢复到自定义四角锚点定位

func (*TCEFWindowParent) SetAlign

func (m *TCEFWindowParent) SetAlign(value types.TAlign)

SetAlign 设置控件自动调整

func (*TCEFWindowParent) SetAnchors

func (m *TCEFWindowParent) SetAnchors(value types.TAnchors)

SetAnchors 设置四个角位置的锚点

func (*TCEFWindowParent) SetBoundsRect

func (m *TCEFWindowParent) SetBoundsRect(value types.TRect)

SetBoundsRect 设置坐标位置和宽高

func (*TCEFWindowParent) SetChromium

func (m *TCEFWindowParent) SetChromium(chromium IChromium, tag int32)

SetChromium 设置 IChromium, 只 TCEFLinkedWindowParent 有效

func (*TCEFWindowParent) SetEnabled

func (m *TCEFWindowParent) SetEnabled(value bool)

SetEnabled 设置是否启用

func (*TCEFWindowParent) SetHeight

func (m *TCEFWindowParent) SetHeight(value int32)

SetHeight 设置高度

func (*TCEFWindowParent) SetLeft

func (m *TCEFWindowParent) SetLeft(value int32)

SetLeft 设置左边距

func (*TCEFWindowParent) SetName

func (m *TCEFWindowParent) SetName(value string)

SetName 设置组件名称

func (*TCEFWindowParent) SetOnEnter

func (m *TCEFWindowParent) SetOnEnter(fn lcl.TNotifyEvent)

SetOnEnter 进入事件

func (*TCEFWindowParent) SetOnExit

func (m *TCEFWindowParent) SetOnExit(fn lcl.TNotifyEvent)

SetOnExit 退出事件

func (*TCEFWindowParent) SetParent

func (m *TCEFWindowParent) SetParent(value lcl.IWinControl)

SetParent 设置控件父容器

func (*TCEFWindowParent) SetTop

func (m *TCEFWindowParent) SetTop(value int32)

SetTop 设置上边距

func (*TCEFWindowParent) SetVisible

func (m *TCEFWindowParent) SetVisible(value bool)

SetVisible 设置控件可视

func (*TCEFWindowParent) SetWidth

func (m *TCEFWindowParent) SetWidth(value int32)

SetWidth 设置宽度

func (*TCEFWindowParent) Top

func (m *TCEFWindowParent) Top() int32

Top 获取上边距

func (*TCEFWindowParent) Type

Type 组件类型, 这里返回 TCEFWindowParent 类型

func (*TCEFWindowParent) UpdateSize

func (m *TCEFWindowParent) UpdateSize()

UpdateSize 更新组件大小

func (*TCEFWindowParent) Visible

func (m *TCEFWindowParent) Visible() bool

Visible 获取控件可视

func (*TCEFWindowParent) Width

func (m *TCEFWindowParent) Width() int32

Width 获取宽度

type TCefAudioParameters

type TCefAudioParameters struct {
	// contains filtered or unexported fields
}

TCefAudioParameters /include/internal/cef_types.h (cef_audio_parameters_t)

type TCefBaseRefCounted

type TCefBaseRefCounted struct {
	// contains filtered or unexported fields
}

TCefBaseRefCounted

func NewBaseRefCounted

func NewBaseRefCounted(instance uintptr) *TCefBaseRefCounted

func (*TCefBaseRefCounted) Free

func (m *TCefBaseRefCounted) Free(data uintptr)

Free 释放底层指针

func (*TCefBaseRefCounted) Instance

func (m *TCefBaseRefCounted) Instance() uintptr

Instance 实例

func (*TCefBaseRefCounted) IsValid

func (m *TCefBaseRefCounted) IsValid() bool

func (*TCefBaseRefCounted) Wrap

func (m *TCefBaseRefCounted) Wrap(data uintptr) unsafe.Pointer

Wrap 指针引用包裹

type TCefBinaryValueArray

type TCefBinaryValueArray struct {
	// contains filtered or unexported fields
}

TCefBinaryValueArray

[]ICefBinaryValue

func (*TCefBinaryValueArray) Count

func (m *TCefBinaryValueArray) Count() uint32

func (*TCefBinaryValueArray) Free

func (m *TCefBinaryValueArray) Free()

func (*TCefBinaryValueArray) Get

type TCefBrowserSettings

type TCefBrowserSettings struct {
	Size                       NativeUInt
	WindowlessFrameRate        Integer
	StandardFontFamily         TCefString
	FixedFontFamily            TCefString
	SerifFontFamily            TCefString
	SansSerifFontFamily        TCefString
	CursiveFontFamily          TCefString
	FantasyFontFamily          TCefString
	DefaultFontSize            Integer
	DefaultFixedFontSize       Integer
	MinimumFontSize            Integer
	MinimumLogicalFontSize     Integer
	DefaultEncoding            TCefString
	RemoteFonts                TCefState
	Javascript                 TCefState
	JavascriptCloseWindows     TCefState
	JavascriptAccessClipboard  TCefState
	JavascriptDomPaste         TCefState
	ImageLoading               TCefState
	ImageShrinkStandaLonetoFit TCefState
	TextAreaResize             TCefState
	TabToLinks                 TCefState
	LocalStorage               TCefState
	Databases                  TCefState
	Webgl                      TCefState
	BackgroundColor            TCefColor
	AcceptLanguageList         TCefString
	ChromeStatusBubble         TCefState
}

TCefBrowserSettings CEF Browser配置

func (*TCefBrowserSettings) ToPtr

func (m *TCefBrowserSettings) ToPtr() *tCefBrowserSettingsPtr

ToPtr 转换为指针

type TCefCommandLine

type TCefCommandLine struct {
	// contains filtered or unexported fields
}

TCefCommandLine 进程启动命令行参数设置

func (*TCefCommandLine) AppendArgument

func (m *TCefCommandLine) AppendArgument(argument string)

func (*TCefCommandLine) AppendSwitch

func (m *TCefCommandLine) AppendSwitch(name, value string)

type TCefCursorInfo

type TCefCursorInfo struct {
	Hotspot          TCefPoint
	ImageScaleFactor Single
	Buffer           uintptr
	Size             TCefSize
}

TCefCursorInfo

/include/internal/cef_types.h (cef_cursor_info_t)

type TCefDraggableRegion

type TCefDraggableRegion struct {
	Bounds    TCefRect
	Draggable bool
}

TCefDraggableRegion 拖拽区域集

func NewCefDraggableRegion

func NewCefDraggableRegion(rect *TCefRect, draggable bool) TCefDraggableRegion

NewCefDraggableRegion 创建一个拖拽区域

type TCefDraggableRegions

type TCefDraggableRegions struct {
	// contains filtered or unexported fields
}

TCefDraggableRegions 拖拽区域集合

func NewCefDraggableRegions

func NewCefDraggableRegions() *TCefDraggableRegions

NewCefDraggableRegions 创建拖拽区域

func (*TCefDraggableRegions) Append

func (m *TCefDraggableRegions) Append(region TCefDraggableRegion)

Append 添加拖拽区域

func (*TCefDraggableRegions) Region

Region 获取指定的拖拽区域

func (*TCefDraggableRegions) Regions

Regions 获取拖拽区域

func (*TCefDraggableRegions) RegionsCount

func (m *TCefDraggableRegions) RegionsCount() int

RegionsCount 拖拽区域数量

type TCefKeyEvent

type TCefKeyEvent struct {
	Kind                 TCefKeyEventType // called 'type' in the original CEF source code
	Modifiers            TCefEventFlags
	WindowsKeyCode       Int32
	NativeKeyCode        Int32
	IsSystemKey          Int32
	Character            UInt16
	UnmodifiedCharacter  UInt16
	FocusOnEditableField Int32
}

TCefKeyEvent CEF 键盘事件

func (*TCefKeyEvent) KeyDown

func (m *TCefKeyEvent) KeyDown() bool

func (*TCefKeyEvent) KeyUp

func (m *TCefKeyEvent) KeyUp() bool

type TCefMediaRouteArray

type TCefMediaRouteArray struct {
	// contains filtered or unexported fields
}

TCefMediaRouteArray

[]ICefMediaRoute

type TCefMediaSinkArray

type TCefMediaSinkArray struct {
	// contains filtered or unexported fields
}

TCefMediaSinkArray

[]ICefMediaSink

type TCefMouseEvent

type TCefMouseEvent struct {
	X         int32
	Y         int32
	Modifiers TCefEventFlags
}

TCefMouseEvent 鼠标事件

type TCefPoint

type TCefPoint struct {
	X int32
	Y int32
}

TCefPoint

/include/internal/cef_types_geometry.h (cef_point_t)

func NewCefPoint

func NewCefPoint(x, y int32) *TCefPoint

NewCefPoint

type TCefPopupFeatures

type TCefPopupFeatures struct {
	X                 int32
	XSet              int32
	Y                 int32
	YSet              int32
	Width             int32
	WidthSet          int32
	Height            int32
	HeightSet         int32
	MenuBarVisible    int32
	StatusBarVisible  int32
	ToolBarVisible    int32
	ScrollbarsVisible int32
}

/include/internal/cef_types.h (cef_popup_features_t)

type TCefPostDataElementArray

type TCefPostDataElementArray struct {
	// contains filtered or unexported fields
}

TCefPostDataElementArray

func (*TCefPostDataElementArray) Get

func (*TCefPostDataElementArray) Size

func (m *TCefPostDataElementArray) Size() uint32

type TCefPreferenceRegistrarRef

type TCefPreferenceRegistrarRef struct {
	// contains filtered or unexported fields
}

TCefPreferenceRegistrarRef

type TCefProxy

type TCefProxy struct {
	ProxyType              TCefProxyType
	ProxyScheme            TCefProxyScheme
	ProxyServer            string
	ProxyPort              int32
	ProxyUsername          string
	ProxyPassword          string
	ProxyScriptURL         string
	ProxyByPassList        string
	MaxConnectionsPerProxy int32
}

TCefProxy 代理配置

type TCefRange

type TCefRange struct {
	From int32
	To   int32
}

TCefRange

/include/internal/cef_types_geometry.h (cef_range_t)

type TCefRect

type TCefRect struct {
	X      int32
	Y      int32
	Width  int32
	Height int32
}

TCefRect

/include/internal/cef_types_geometry.h (cef_rect_t)

func NewCefRect

func NewCefRect(x, y, width, height int32) *TCefRect

NewCefRect

type TCefRequestContextSettings

type TCefRequestContextSettings struct {
	Size                             UInt32
	CachePath                        TCefString
	PersistSessionCookies            Int32
	PersistUserPreferences           Int32
	AcceptLanguageList               TCefString
	CookieableSchemesList            TCefString
	CookieableSchemesExcludeDefaults Int32
}

TCefRequestContextSettings CEF 请求上下文配置

func (*TCefRequestContextSettings) ToPtr

func (m *TCefRequestContextSettings) ToPtr() *tCefRequestContextSettingsPtr

type TCefResourceHandlerClass

type TCefResourceHandlerClass uintptr

TCefResourceHandlerClass

type TCefSchemeRegistrarRef

type TCefSchemeRegistrarRef struct {
	// contains filtered or unexported fields
}

TCefSchemeRegistrarRef

func (*TCefSchemeRegistrarRef) AddCustomScheme

func (m *TCefSchemeRegistrarRef) AddCustomScheme(schemeName string, options consts.CefSchemeOption) bool

func (*TCefSchemeRegistrarRef) Free

func (m *TCefSchemeRegistrarRef) Free()

func (*TCefSchemeRegistrarRef) Instance

func (m *TCefSchemeRegistrarRef) Instance() uintptr

Instance 实例

func (*TCefSchemeRegistrarRef) IsValid

func (m *TCefSchemeRegistrarRef) IsValid() bool

type TCefScreenInfo

type TCefScreenInfo struct {
	DeviceScaleFactor int16
	Depth             int32
	DepthPerComponent int32
	IsMonochrome      int32
	Rect              TCefRect
	AvailableRect     TCefRect
}

TCefScreenInfo

/include/internal/cef_types.h (cef_screen_info_t)

type TCefSize

type TCefSize struct {
	Width  int32
	Height int32
}

TCefSize

/include/internal/cef_types_geometry.h (cef_size_t)

func NewCefSize

func NewCefSize(width, height int32) *TCefSize

NewCefSize

type TCefTouchEvent

type TCefTouchEvent struct {
	Id            int32
	X             float32
	Y             float32
	RadiusX       float32
	RadiusY       float32
	RotationAngle float32
	Pressure      float32
	Type          TCefTouchEeventType
	Modifiers     TCefEventFlags
	PointerType   TCefPointerType
}

TCefTouchEvent 触摸事件

type TCefTouchHandleState

type TCefTouchHandleState struct {
	TouchHandleId    int32
	Flags            uint32
	Enabled          int32
	Orientation      TCefHorizontalAlignment
	MirrorVertical   int32
	MirrorHorizontal int32
	Origin           TCefPoint
	Alpha            float32
}

TCefTouchHandleState

/include/internal/cef_types.h (cef_touch_handle_state_t)

type TCefV8ValueArray

type TCefV8ValueArray struct {
	// contains filtered or unexported fields
}

TCefV8ValueArray ICefV8Value 数组的替代结构

func (*TCefV8ValueArray) Add

func (m *TCefV8ValueArray) Add(value *ICefV8Value)

func (*TCefV8ValueArray) Free

func (m *TCefV8ValueArray) Free()

func (*TCefV8ValueArray) Get

func (m *TCefV8ValueArray) Get(index int) *ICefV8Value

Get 根据下标获取 ICefV8Value

func (*TCefV8ValueArray) Instance

func (m *TCefV8ValueArray) Instance() uintptr

func (*TCefV8ValueArray) Set

func (m *TCefV8ValueArray) Set(value []*ICefV8Value)

func (*TCefV8ValueArray) Size

func (m *TCefV8ValueArray) Size() int

Size 返回 ICefV8Value 数组长度

type TCefX509CertificateArray

type TCefX509CertificateArray struct {
	// contains filtered or unexported fields
}

TCefX509CertificateArray []ICefX509Certificate

func (*TCefX509CertificateArray) Count

func (m *TCefX509CertificateArray) Count() uint32

func (*TCefX509CertificateArray) Free

func (m *TCefX509CertificateArray) Free()

func (*TCefX509CertificateArray) Get

type TCloseEvent

type TCloseEvent func(sender lcl.IObject, action *types.TCloseAction) bool

type TCloseQueryEvent

type TCloseQueryEvent func(sender lcl.IObject, canClose *bool) bool

type TCustomExtensionHandler

type TCustomExtensionHandler struct {
	// contains filtered or unexported fields
}

TCustomExtensionHandler

func (*TCustomExtensionHandler) Free

func (m *TCustomExtensionHandler) Free()

func (*TCustomExtensionHandler) Instance

func (m *TCustomExtensionHandler) Instance() uintptr

Instance 实例

func (*TCustomExtensionHandler) IsValid

func (m *TCustomExtensionHandler) IsValid() bool

type TCustomHeader

type TCustomHeader struct {
	CustomHeaderName  string
	CustomHeaderValue string
}

TCustomHeader 自定义请求头

type TMouseEvent

type TMouseEvent func(sender lcl.IObject, button types.TMouseButton, shift types.TShiftState, x, y int32) bool

TMouseEvent 鼠标事件

type TNotifyEvent

type TNotifyEvent func(sender lcl.IObject) bool

type TrayICONClick

type TrayICONClick func()

TrayICONClick 托盘图标鼠标事件

type V8AccessorGet

type V8AccessorGet func(name string, object *ICefV8Value, retVal *ResultV8Value, exception *ResultString) bool

V8AccessorGet 读取时函数 name 字段或对象名 retVal 读取返回的值 exception 返回的异常信息 return true 读取成功-返回值有效

type V8AccessorSet

type V8AccessorSet func(name string, object *ICefV8Value, value *ICefV8Value, exception *ResultString) bool

V8AccessorSet 写入时函数 name 字段或对象名 value 将要写入的新值 exception 返回的异常信息 return true 写入成功

type V8ArrayBufferReleaseCallback

type V8ArrayBufferReleaseCallback func(buffer uintptr) bool

V8ArrayBufferReleaseCallback 释放时回调函数 array buffer 缓存 返回 true:释放buffer, false:不释放

type V8HandlerExecute

type V8HandlerExecute func(name string, object *ICefV8Value, arguments *TCefV8ValueArray, retVal *ResultV8Value, exception *ResultString) bool

V8HandlerExecute 执行函数处理执行 name 函数名 object 当前对象 arguments 函数传入的参数 retVal 函数执行完返回结果 exception 返回的异常信息 return true 执行成功-返回值有效

type V8InterceptorGetByIndex

type V8InterceptorGetByIndex func(index int32, object, retVal *ICefV8Value, exception *ResultString)

V8InterceptorGetByIndex 拦截函数 根据index获取一个值

type V8InterceptorGetByName

type V8InterceptorGetByName func(name string, object, retVal *ICefV8Value, exception *ResultString)

V8InterceptorGetByName 拦截函数 根据name获取一个值

type V8InterceptorSetByIndex

type V8InterceptorSetByIndex func(index int32, object, value *ICefV8Value, exception *ResultString)

V8InterceptorSetByIndex 拦截函数 根据index设置一个值

type V8InterceptorSetByName

type V8InterceptorSetByName func(name string, object, value *ICefV8Value, exception *ResultString)

V8InterceptorSetByName 拦截函数 根据name设置一个值

type ViewsFrameTray

type ViewsFrameTray struct {
	// contains filtered or unexported fields
}

ViewsFrameTray VF(views framework)组件+html 托盘

type ViewsFrameworkBrowserWindow

type ViewsFrameworkBrowserWindow struct {
	// contains filtered or unexported fields
}

ViewsFrameworkBrowserWindow 基于CEF views framework 窗口组件

该窗口使用CEF内部实现,在linux下107.xx以后版本默认使用GTK3,但无法使用lcl组件集成到窗口中

当创建应用配置时 MultiThreadedMessageLoop 和 ExternalMessagePump 属性同时为false(linux系统默认强制false)时启用ViewsFramework窗口

func NewViewsFrameworkBrowserWindow

func NewViewsFrameworkBrowserWindow(chromiumConfig *tCefChromiumConfig, windowProperty WindowProperty, owner ...lcl.IComponent) *ViewsFrameworkBrowserWindow

NewViewsFrameworkBrowserWindow 创建 ViewsFrameworkBrowserWindow 窗口

func (*ViewsFrameworkBrowserWindow) AsLCLBrowserWindow

func (m *ViewsFrameworkBrowserWindow) AsLCLBrowserWindow() ILCLBrowserWindow

AsLCLBrowserWindow 转换为LCL窗口组件,这里返回nil

func (*ViewsFrameworkBrowserWindow) AsViewsFrameworkBrowserWindow

func (m *ViewsFrameworkBrowserWindow) AsViewsFrameworkBrowserWindow() IViewsFrameworkBrowserWindow

AsViewsFrameworkBrowserWindow 转换为VF窗口组件,这里返回VF窗口组件

func (*ViewsFrameworkBrowserWindow) Bounds

Bounds 返回窗口坐标和宽高

func (*ViewsFrameworkBrowserWindow) Browser

Browser 返回browser

func (*ViewsFrameworkBrowserWindow) BrowserViewComponent

func (m *ViewsFrameworkBrowserWindow) BrowserViewComponent() *TCEFBrowserViewComponent

BrowserViewComponent 返回浏览器显示组件

func (*ViewsFrameworkBrowserWindow) BrowserWindow

BrowserWindow 返回VF窗口组件实现

func (*ViewsFrameworkBrowserWindow) CenterWindow

func (m *ViewsFrameworkBrowserWindow) CenterWindow(size *TCefSize)

CenterWindow 设置窗口居中,同时指定窗口大小

func (*ViewsFrameworkBrowserWindow) Chromium

func (m *ViewsFrameworkBrowserWindow) Chromium() IChromium

Chromium 返回 chromium

func (*ViewsFrameworkBrowserWindow) Close

func (m *ViewsFrameworkBrowserWindow) Close()

Close 关闭窗口,一搬不使用

func (*ViewsFrameworkBrowserWindow) CloseBrowserWindow

func (m *ViewsFrameworkBrowserWindow) CloseBrowserWindow()

CloseBrowserWindow 关闭浏览器窗口

func (*ViewsFrameworkBrowserWindow) Component

Component 返回窗口父组件

func (*ViewsFrameworkBrowserWindow) CreateTopLevelWindow

func (m *ViewsFrameworkBrowserWindow) CreateTopLevelWindow()

CreateTopLevelWindow 创建顶层窗口

func (*ViewsFrameworkBrowserWindow) DisableMaximize

func (m *ViewsFrameworkBrowserWindow) DisableMaximize()

DisableMaximize 禁用最大化按钮

func (*ViewsFrameworkBrowserWindow) DisableMinimize

func (m *ViewsFrameworkBrowserWindow) DisableMinimize()

DisableMinimize 禁用最小化按钮

func (*ViewsFrameworkBrowserWindow) DisableResize

func (m *ViewsFrameworkBrowserWindow) DisableResize()

DisableResize 禁用调整窗口大小

func (*ViewsFrameworkBrowserWindow) EnableAllDefaultEvent

func (m *ViewsFrameworkBrowserWindow) EnableAllDefaultEvent()

EnableAllDefaultEvent 启用所有默认事件行为

func (*ViewsFrameworkBrowserWindow) EnableMaximize

func (m *ViewsFrameworkBrowserWindow) EnableMaximize()

EnableMaximize 启用最大化按钮

func (*ViewsFrameworkBrowserWindow) EnableMinimize

func (m *ViewsFrameworkBrowserWindow) EnableMinimize()

EnableMinimize 启用最小化按钮

func (*ViewsFrameworkBrowserWindow) EnableResize

func (m *ViewsFrameworkBrowserWindow) EnableResize()

EnableResize 启用允许调整窗口大小

func (*ViewsFrameworkBrowserWindow) Handle

Handle 返回窗口句柄

func (*ViewsFrameworkBrowserWindow) Hide

func (m *ViewsFrameworkBrowserWindow) Hide()

Hide 隐藏窗口

func (*ViewsFrameworkBrowserWindow) HideTitle

func (m *ViewsFrameworkBrowserWindow) HideTitle()

隐藏标题栏

func (*ViewsFrameworkBrowserWindow) Id

Id 获取窗口ID

func (*ViewsFrameworkBrowserWindow) IsClosing

func (m *ViewsFrameworkBrowserWindow) IsClosing() bool

IsClosing 返回窗口是否正在关闭/或已关闭 true正在或已关闭

func (*ViewsFrameworkBrowserWindow) IsLCL

func (m *ViewsFrameworkBrowserWindow) IsLCL() bool

IsLCL 返回是否LCL窗口组件,这里返回false

func (*ViewsFrameworkBrowserWindow) IsViewsFramework

func (m *ViewsFrameworkBrowserWindow) IsViewsFramework() bool

IsViewsFramework 返回是否VF窗口组件,这里返回true

func (*ViewsFrameworkBrowserWindow) Maximize

func (m *ViewsFrameworkBrowserWindow) Maximize()

Maximize 窗口最大化/还原

func (*ViewsFrameworkBrowserWindow) Minimize

func (m *ViewsFrameworkBrowserWindow) Minimize()

Minimize 窗口最小化

func (*ViewsFrameworkBrowserWindow) NewCefTray

func (m *ViewsFrameworkBrowserWindow) NewCefTray(width, height int32, url string) ITray

NewCefTray VF窗口组件 非windows系统不支持CefTray

func (*ViewsFrameworkBrowserWindow) NewSysTray

func (m *ViewsFrameworkBrowserWindow) NewSysTray() ITray

NewSysTray VF窗口组件,只适用于windows的无菜单托盘

func (*ViewsFrameworkBrowserWindow) Point

Point 返回窗口坐标

func (*ViewsFrameworkBrowserWindow) ResetWindowPropertyForEvent

func (m *ViewsFrameworkBrowserWindow) ResetWindowPropertyForEvent()

ResetWindowPropertyForEvent 重置窗口属性-通过事件函数

func (*ViewsFrameworkBrowserWindow) Restore

func (m *ViewsFrameworkBrowserWindow) Restore()

Restore 窗口还原

func (*ViewsFrameworkBrowserWindow) SetBounds

func (m *ViewsFrameworkBrowserWindow) SetBounds(x, y, width, height int32)

SetBounds 设置窗口坐标和宽高

func (*ViewsFrameworkBrowserWindow) SetCenterWindow

func (m *ViewsFrameworkBrowserWindow) SetCenterWindow(value bool)

SetCenterWindow 设置窗口居中显示

func (*ViewsFrameworkBrowserWindow) SetDefaultInTaskBar

func (m *ViewsFrameworkBrowserWindow) SetDefaultInTaskBar()

func (*ViewsFrameworkBrowserWindow) SetHeight

func (m *ViewsFrameworkBrowserWindow) SetHeight(value int32)

SetHeight 设置窗口高

func (*ViewsFrameworkBrowserWindow) SetNotInTaskBar

func (m *ViewsFrameworkBrowserWindow) SetNotInTaskBar()

func (*ViewsFrameworkBrowserWindow) SetOnGetInitialBounds

func (m *ViewsFrameworkBrowserWindow) SetOnGetInitialBounds(onGetInitialBounds WindowComponentOnGetInitialBounds)

SetOnGetInitialBounds 窗口初始坐标和大小

func (*ViewsFrameworkBrowserWindow) SetOnWindowCreated

func (m *ViewsFrameworkBrowserWindow) SetOnWindowCreated(onWindowCreated WindowComponentOnWindowCreated)

SetOnWindowCreated 窗口创建

func (*ViewsFrameworkBrowserWindow) SetPoint

func (m *ViewsFrameworkBrowserWindow) SetPoint(x, y int32)

SetPoint 设置窗口坐标

func (*ViewsFrameworkBrowserWindow) SetShowInTaskBar

func (m *ViewsFrameworkBrowserWindow) SetShowInTaskBar()

func (*ViewsFrameworkBrowserWindow) SetSize

func (m *ViewsFrameworkBrowserWindow) SetSize(width, height int32)

SetSize 设置窗口宽高

func (*ViewsFrameworkBrowserWindow) SetTitle

func (m *ViewsFrameworkBrowserWindow) SetTitle(title string)

SetTitle 设置窗口标题

func (*ViewsFrameworkBrowserWindow) SetWidth

func (m *ViewsFrameworkBrowserWindow) SetWidth(value int32)

SetWidth 设置窗口宽

func (*ViewsFrameworkBrowserWindow) SetWindowType

func (m *ViewsFrameworkBrowserWindow) SetWindowType(windowType consts.WINDOW_TYPE)

SetWindowType 设置窗口类型

func (*ViewsFrameworkBrowserWindow) Show

func (m *ViewsFrameworkBrowserWindow) Show()

Show 显示窗口

func (*ViewsFrameworkBrowserWindow) ShowTitle

func (m *ViewsFrameworkBrowserWindow) ShowTitle()

显示标题栏

func (*ViewsFrameworkBrowserWindow) Size

Size 返回窗口宽高

func (*ViewsFrameworkBrowserWindow) WindowComponent

func (m *ViewsFrameworkBrowserWindow) WindowComponent() *TCEFWindowComponent

WindowComponent 返回窗口组件

func (*ViewsFrameworkBrowserWindow) WindowProperty

func (m *ViewsFrameworkBrowserWindow) WindowProperty() *WindowProperty

WindowProperty 部分提供部分窗口属性设置

func (*ViewsFrameworkBrowserWindow) WindowState

WindowState 返回窗口最小化、最大化、全屏状态

func (*ViewsFrameworkBrowserWindow) WindowType

WindowType 返回窗口类型

type WindowComponentOnAccelerator

type WindowComponentOnAccelerator func(sender lcl.IObject, window *ICefWindow, commandId int32, aResult *bool)

type WindowComponentOnCanClose

type WindowComponentOnCanClose func(sender lcl.IObject, window *ICefWindow, aResult *bool)

type WindowComponentOnCanMaximize

type WindowComponentOnCanMaximize func(sender lcl.IObject, window *ICefWindow, aResult *bool)

type WindowComponentOnCanMinimize

type WindowComponentOnCanMinimize func(sender lcl.IObject, window *ICefWindow, aResult *bool)

type WindowComponentOnCanResize

type WindowComponentOnCanResize func(sender lcl.IObject, window *ICefWindow, aResult *bool)

type WindowComponentOnGetInitialBounds

type WindowComponentOnGetInitialBounds func(sender lcl.IObject, window *ICefWindow, aResult *TCefRect)

type WindowComponentOnGetInitialShowState

type WindowComponentOnGetInitialShowState func(sender lcl.IObject, window *ICefWindow, aResult *consts.TCefShowState)

type WindowComponentOnGetParentWindow

type WindowComponentOnGetParentWindow func(sender lcl.IObject, window *ICefWindow, isMenu, canActivateMenu *bool, aResult *ICefWindow)

type WindowComponentOnIsFrameless

type WindowComponentOnIsFrameless func(sender lcl.IObject, window *ICefWindow, aResult *bool)

type WindowComponentOnKeyEvent

type WindowComponentOnKeyEvent func(sender lcl.IObject, window *ICefWindow, event *TCefKeyEvent, aResult *bool)

type WindowComponentOnWindowActivationChanged

type WindowComponentOnWindowActivationChanged func(sender lcl.IObject, window *ICefWindow, active bool)

type WindowComponentOnWindowCreated

type WindowComponentOnWindowCreated func(sender lcl.IObject, window *ICefWindow)

type WindowComponentOnWindowDestroyed

type WindowComponentOnWindowDestroyed func(sender lcl.IObject, window *ICefWindow)

type WindowProperty

type WindowProperty struct {
	IsShowModel bool //是否以模态窗口显示

	WindowType                consts.WINDOW_TYPE //窗口 类型 WINDOW_TYPE default: WT_MAIN_BROWSER
	Title                     string             //窗口 标题
	Url                       string             //默认打开URL
	Icon                      string             //窗口图标 加载本地图标 local > /app/resources/icon.ico, linux使用png
	IconFS                    string             //窗口图标 加载emfs内置图标 emfs > resources/icon.ico, linux使用png
	EnableHideCaption         bool               //窗口 是否隐藏标题栏, VF窗口组件Linux下不能动态控制
	EnableMinimize            bool               //窗口 是否启用最小化 default: true
	EnableMaximize            bool               //窗口 是否启用最大化 default: true
	EnableResize              bool               //窗口 是否允许调整大小 default: true
	EnableClose               bool               //窗口 关闭时是否关闭窗口 default: true
	EnableCenterWindow        bool               //窗口 居中显示 default: true
	EnableDragFile            bool               //窗口 是否允许向窗口内拖拽文件
	EnableWebkitAppRegion     bool               //窗口 html元素中设置css属性 -webkit-app-region: drag/no-drag 是否允许拖拽区域 default: true
	EnableWebkitAppRegionDClk bool               //窗口 拖拽区域是否启用标题栏双击最大化和还原 default: true
	AlwaysOnTop               bool               //窗口 窗口置顶
	X                         int32              //窗口 EnableCenterWindow=false X坐标 default: 100
	Y                         int32              //窗口 EnableCenterWindow=false Y坐标 default: 100
	Width                     int32              //窗口 宽 default: 1024
	Height                    int32              //窗口 高 default: 768
	// contains filtered or unexported fields
}

WindowProperty 窗口属性配置器

部分属性配置并不支持所有平台

func NewWindowProperty

func NewWindowProperty() WindowProperty

NewWindowProperty 创建一个属性配置器,带有窗口默认属性值

Source Files

Directories

Path Synopsis
Package i18n 多语言资源
Package i18n 多语言资源
internal
ipc
GO render IPC通道
GO render IPC通道
ipc

Jump to

Keyboard shortcuts

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