energy/example
杨红岩 d1aa2669ed U: 主窗口,多窗口打开和关闭流程修改
R: 移除window缓存窗口变量
2023-12-11 22:53:32 +08:00
..
audio-video 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
build-examples A: 增加一窗口多Chromium示例 2023-11-21 23:10:28 +08:00
clipbrd demo update: exe执行/当前执行目录统一为 consts.ExeDir, consts.CurrentExecuteDir 2023-09-21 11:26:00 +08:00
common U: 修改ipc Go文件名 2023-11-23 11:33:11 +08:00
context-menu 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
control-widget U&R: 移除示例下的icon图标文件 2023-12-07 19:09:48 +08:00
cookie U&R: 移除示例下的icon图标文件 2023-12-07 19:09:48 +08:00
cookie-manager U&R: 移除示例下的icon图标文件 2023-12-07 19:09:48 +08:00
custom-drag-window U&R: 移除示例下的icon图标文件 2023-12-07 19:09:48 +08:00
dev-tools 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
dom-visitor 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
download U: demo download 2023-12-08 21:24:51 +08:00
drag-file 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
execute-dev-tools-method 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
execute-javascript 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
flash-for-cef-v87 demo update: exe执行/当前执行目录统一为 consts.ExeDir, consts.CurrentExecuteDir 2023-09-21 11:26:00 +08:00
frameless U&R: 移除示例下的icon图标文件 2023-12-07 19:09:48 +08:00
gpu U&R: 移除示例下的icon图标文件 2023-12-07 19:09:48 +08:00
helper-process U: helper-process 2023-11-30 19:13:05 +08:00
html5test 增加 html5test 示例,用于检查CEF支持的功能 2023-11-09 17:31:46 +08:00
i18n U: demos, ui use gtk3, IconFS = xxx.png, other IconFS = xxx.ico 2023-07-20 18:04:23 +08:00
internal-http-server 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
ipc-on-emit U: 主窗口,多窗口打开和关闭流程修改 2023-12-11 22:53:32 +08:00
key-event 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
load-html-url 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
local-load 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
macos/touchbar U: demos -> macos touch bar, go:build darwin 2023-12-07 21:11:23 +08:00
many-browser U: 修改一个window多chromium browser示例 2023-11-28 22:26:49 +08:00
mockevent U: demo chromium模拟事件 2023-10-11 09:12:31 +08:00
msgbox U: demos, ui use gtk3, IconFS = xxx.png, other IconFS = xxx.ico 2023-07-20 18:04:23 +08:00
osr 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
popup-sub-window U: helper-process 2023-11-30 18:34:02 +08:00
print-pdf 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
process-type 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
proxy demo update 2023-09-19 14:34:58 +08:00
response-filter 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
scheme demo update: exe执行/当前执行目录统一为 consts.ExeDir, consts.CurrentExecuteDir 2023-09-21 11:26:00 +08:00
screen A: demo Window IScreen 2023-07-25 18:07:26 +08:00
screenshot 增加屏幕截取简单示例 2023-10-04 13:09:11 +08:00
search-text 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
simple U: app 2023-07-10 14:09:50 +08:00
simple-local-load 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
sys-dialog U: demos, ui use gtk3, IconFS = xxx.png, other IconFS = xxx.ico 2023-07-20 18:04:23 +08:00
sys-menu 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
tempdll u: tempdll demo 2023-09-29 00:02:36 +08:00
tray U: tray icn 2023-12-06 17:12:06 +08:00
view-source 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
vue A: demos -> ipc multiple-window 2023-12-07 22:56:50 +08:00
webkit-register 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
window 修改所有*.go文件名 中横线 -, 改为下划线 _ 2023-11-17 15:37:13 +08:00
windows U: demo 增加指定平台的构建指令 2023-12-07 19:24:50 +08:00
zoom u: 网页缩放示例增加拖拽区域 2023-11-10 18:19:34 +08:00
README.md U: 修改示例说明 readme 2023-11-14 22:46:58 +08:00

Energy example

In Energy, CEF combined with LCL can make various applications

CEF: HTML + JS + CSS

LCL: Various system native UI components

CEF is a multi-process mode, by default (no standalone sub-process set) it repeatedly starts the current executable to start multiple processes, including (PtBrowser/PtRenderer/PtZygote/PtGPU/PtUtility/PtBroker/PtCrashpad/PtOther). When writing code, we need to pay special attention to most of the cases we write the main function in the main process, that is, the PtBrowser main process, energy provides the main process to execute the callback function, we need to write the main function in the main process callback function, if the main function or init function is written anywhere These function functions will be executed (repeatedly) when the child process is started, which may cause unexpected errors. You can also distinguish the main sub-process by setting up independent sub-processes, so that you don't need to consider the problem of repeated execution errors, and the main function or init function can also be written in any position, the principle is that after the main process (PtBrowser) is successfully started, the main process application. The SetBrowserSubprocessPath("sub.exe) function sets the pathname of the child process execution file The child process is a separate execution file that does not need to write any major functions. Example program: sub-process

Example Name Example Description
app-icon-gen Windows application icon generation, Linux and macOSX not provided
audio-video Music and Videos
build-examples build all example
clipbrd clipbrd
context-menu Customize right-click menu
control-widget The state control of page control refresh, forward, backward, and stop refresh based on LCL components can be combined with various system components in Energy
cookie Setting, obtaining, and deleting cookies
cookie-manager Cookie Management
custom-drag-window custom-drag-window
dev-tools Developer Tools
dom-visitor Document operation display
download Download files
drag-file Drag and drop the file into the browser window
execute-dev-tools-method Execute Developer Tool Method
execute-javascript Executing JS code in the page in Go
flash-for-cef-v87 Borderless Window
frameless Borderless Window
i18n Local multilingual adaptation
internal-http-server Internal Services
ipc-on-emit Event monitoring and triggering for Go and JS
key-event Keyboard events in HTML
lib-checkupdate energy and liblcl update examples
load-html-url Display the loaded Html string or Url address on the page
msgbox LCL based system prompts
osr osr
popup-sub-window Pop up sub window
print-pdf Printing pages as PDF documents
process-type When there are multiple processes, the process type
proxy Proxy configuration
response-filter Resource response filtering
scheme Custom protocol topics, such as http instead of hello
screen Search page text
search-text screen
sys-dialog Various modal functional Windows
sys-menu System menu
tempdll underlying library is built into the execution file and released at run time
tray Tray - Custom and system tray
view-source Display page source code
vue Example of html+vue
webkit-register webkit callback functions register local js examples
window Window operation management
windows Examples that support windows only
zoom Zoom in and out of the page
simple Simple application example
sub-process Multiprocess, starting the rendering process as a child process
dev-test examples of various tests at development time
... ...