energy/examples
2024-02-27 09:28:03 +08:00
..
audio-video U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
build-examples U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
clipbrd U: update demo 2024-01-13 00:29:00 +08:00
common U: UpdateLog 2024-01-06 23:10:35 +08:00
context-menu U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
control-widget U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
cookie U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
cookie-manager U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
custom-drag-window U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
debug_most U: update demo 2024-01-13 00:29:00 +08:00
dev-tools U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
dom-visitor U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
download U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
drag-file U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
execute-dev-tools-method U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
execute-javascript U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
flash-for-cef-v87 Fix: 修复chromium相关事件回调函数参数 2024-01-02 13:32:21 +08:00
frameless U: frameless demo 2024-01-10 21:48:26 +08:00
gpu U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
helper-process U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
html5test U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
i18n U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
internal-http-server U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
ipc-on-emit U: demo multiplewindow 2024-02-26 14:37:47 +08:00
key-event U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
load-html-url U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
local-load U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
macos/touchbar U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
many-browser 示例修改 2024-02-27 09:28:03 +08:00
mockevent U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
msgbox U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
osr Fix: 修复chromium相关事件回调函数参数 2024-01-02 13:32:21 +08:00
popup-sub-window U: 优化LCL窗口初始化后预先创建下一个子弹出窗口的控制,同时创建Chromium. 2024-01-11 08:54:28 +08:00
print-pdf U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
process-type U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
proxy U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
response-filter U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
scheme U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
screen U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
screenshot U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
search-text U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
simple U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
simple-local-load U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
sys-dialog U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
sys-menu U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
tempdll U: tempdll demo 2024-01-10 21:52:47 +08:00
tray 示例修改 2024-02-26 12:03:05 +08:00
view-source U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
vue U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
webkit-register U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
window U: demo update 2024-01-06 23:19:06 +08:00
windows U: demo 2024-01-09 21:08:40 +08:00
zoom U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
README.md U: Linux GTK3自定义加载小部件并独立动态库libenergy => GTK3 2024-01-13 00:28:29 +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
... ...