energy/examples
2024-10-18 14:38:49 +08:00
..
audio-video U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
build-examples U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
clipbrd U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
common U: drag window, -webkit-app-region use js mouse event 2024-08-10 10:39:57 +08:00
context-menu U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
control-widget U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
cookie U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
cookie-manager U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
crawling-web-pages U: demo devtools 2024-08-12 17:10:07 +08:00
custom-drag-window U: drag window, -webkit-app-region use js mouse event 2024-08-11 23:21:18 +08:00
debug_most U: demo debug_most 2024-04-17 19:44:28 +08:00
dev-tools U: Update Demos, adjusting the default implementation event to the chrrimbrowser structure 2024-04-07 15:41:03 +08:00
dll U: go test 2024-09-27 00:27:15 +08:00
dom-visitor U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
download U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
drag-file U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
execute-dev-tools-method U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
execute-javascript U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
extensions R: demo crawling-web-pages rod 2024-04-24 20:14:25 +08:00
flash-for-cef-v87 U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
frameless U: drag window, Control window resizing 2024-08-12 16:14:51 +08:00
gif-play U: demo gifplay, gotojs 2024-05-15 10:29:56 +08:00
gpu U: demo gpu WebGL test 2024-04-15 10:06:33 +08:00
headless U: demo syso 2024-04-29 12:27:50 +08:00
helper-process U: all demo, windows import syso 2024-04-13 22:13:04 +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 js-to-go-asyncresult JS ipc.on options: mode 2024-10-15 21:27:15 +08:00
key-event U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
linux/arm64 A: linux arm64 demo startup.sh 2024-04-25 13:39:59 +08:00
load-html-url U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
local-load U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
macos/touchbar U: Demo 的内嵌资源示例修改, emfs.IEmbedFS 2024-01-06 00:12:12 +08:00
many-browser R: demo syso 2024-04-27 22:29:49 +08:00
mockevent U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
msgbox U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
opengl-cube U: Workflows Build Status 2024-09-29 13:01:38 +08:00
osr A: OpenGL demo > source: github.com/go-gl/example => gl41core-cube 2024-09-28 20:03:42 +08:00
popup-sub-window U: drag window, Control window resizing 2024-08-12 15:10:38 +08:00
print-pdf U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
process-type U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
proxy U: demos proxy 2024-07-30 15:07:19 +08:00
response-filter U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
scheme U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
screen U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
screenshot U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
search-text U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
simple U: 修改 example > examples, 丰富systray示例, 增加示例通用静态资源目录 2023-12-16 19:30:42 +08:00
simple-local-load U: Adjusting the default implementation event to the chrrimbrowser structure 2024-04-07 16:45:04 +08:00
sys-dialog U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
sys-menu U: drag window, -webkit-app-region use js mouse event 2024-08-10 10:39:57 +08:00
syso U: demo syso 2024-04-29 12:27:50 +08:00
tempdll U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
tiny-browser A: demo tiny-browser, tiny2 2024-04-16 18:10:27 +08:00
tray U: go test 2024-09-27 00:27:15 +08:00
view-source U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
vue U: demo energy-vue 2024-10-18 14:38:49 +08:00
webkit-register U: all demo, windows import syso 2024-04-13 22:13:04 +08:00
window U: demos proxy 2024-07-30 15:07:19 +08:00
windows U: demo windows xp build shell 2024-04-25 10:27:12 +08:00
zoom U: all demo, windows import syso 2024-04-13 22:13:04 +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
... ...