## 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](app-icon-gen) | Windows application icon generation, Linux and macOSX not provided |
| [audio-video](audio-video) | Music and Videos |
| [build-examples](build-examples) | build all example |
| [clipbrd](clipbrd) | clipbrd |
| [context-menu](context-menu) | Customize right-click menu |
| [control-widget](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](cookie) | Setting, obtaining, and deleting cookies |
| [cookie-manager](cookie-manager) | Cookie Management |
| [custom-drag-window](custom-drag-window) | custom-drag-window |
| [dev-tools](dev-tools) | Developer Tools |
| [dom-visitor](dom-visitor) | Document operation display |
| [download](download) | Download files |
| [drag-file](drag-file) | Drag and drop the file into the browser window |
| [execute-dev-tools-method](execute-dev-tools-method) | Execute Developer Tool Method |
| [execute-javascript](execute-javascript) | Executing JS code in the page in Go |
| [flash-for-cef-v87](flash-for-cef-v87) | Borderless Window |
| [frameless](frameless) | Borderless Window |
| [i18n](i18n) | Local multilingual adaptation |
| [internal-http-server](internal-http-server) | Internal Services |
| [ipc-on-emit](ipc-on-emit) | Event monitoring and triggering for Go and JS |
| [key-event](key-event) | Keyboard events in HTML |
| [lib-checkupdate](lib-checkupdate) | energy and liblcl update examples |
| [load-html-url](load-html-url) | Display the loaded Html string or Url address on the page |
| [msgbox](msgbox) | LCL based system prompts |
| [osr](osr) | osr |
| [popup-sub-window](popup-sub-window) | Pop up sub window |
| [print-pdf](print-pdf) | Printing pages as PDF documents |
| [process-type](process-type) | When there are multiple processes, the process type
没有合适的资源?快使用搜索试试~ 我知道了~
Energy是Go基于LCL和CEF开发的GUI框架, 用于开发Windows、MacOS和Linux跨平台桌面应用
共678个文件
go:486个
html:60个
md:32个
需积分: 5 0 下载量 157 浏览量
2024-08-14
19:41:04
上传
评论
收藏 3.85MB ZIP 举报
温馨提示
Energy 是 Go 基于 LCL 和 CEF(Chromium Embedded Framework) 开发的 GUI 框架, 用于开发Windows、MacOS 和 Linux 跨平台桌面应用. 可仅用 LCL 创建轻量级原生应用,或结合 LCL 与 CEF 打造功能更全的应用程序.
资源推荐
资源详情
资源评论
收起资源包目录
Energy是Go基于LCL和CEF开发的GUI框架, 用于开发Windows、MacOS和Linux跨平台桌面应用 (678个子文件)
main.go.1 2KB
main.go.2 1KB
build.bat 800B
compress-zip.bat 304B
build_x86.bat 205B
build_x64.bat 186B
compress-upx.bat 148B
build_64.bat 78B
build_32.bat 76B
build_32.bat 73B
bg.bmp 68KB
control 235B
index.css 198B
index.css 198B
index.css 21B
app.desktop 149B
app.desktop 78B
empty 0B
upx-windows-amd64.exe 545KB
upx-windows-amd32.exe 543KB
loading.gif 4KB
loading.gif 4KB
.gitattributes 131B
.gitignore 2KB
proc_def.go 166KB
syso_windows_amd64.go 116KB
syso_windows_386.go 116KB
decimal_test.go 93KB
consts.go 83KB
proc_def_index.go 78KB
chromium_proc.go 52KB
decimal.go 51KB
buffer_panel.go 51KB
chromium_event.go 48KB
chromium_event_def.go 48KB
application_config.go 43KB
def_win_api.go 42KB
iconassets.go 39KB
browser_window_lcl.go 34KB
types_cef.go 33KB
systray_windows.go 30KB
events_def.go 27KB
types_v8_value.go 25KB
ipc_render.go 24KB
message.go 23KB
ipc_value_convert.go 23KB
types_window_component.go 22KB
browser_window_views_framework.go 22KB
status_notifier_item.go 22KB
install.go 20KB
types_browser.go 18KB
osr_linux.go 18KB
types_menumodel.go 18KB
browser_window.go 17KB
osr_windows.go 17KB
browser_main_window.go 17KB
consts.go 16KB
chromium_browser.go 16KB
dbus_menu.go 16KB
types_cef_ptr.go 15KB
forms.go 15KB
mime_types.go 14KB
install_cef_framework.go 14KB
types_view_component.go 13KB
multiselect_printer.go 13KB
json.go 13KB
common.go 13KB
local_load_resource.go 13KB
pkg_app_darwin.go 12KB
types_window.go 12KB
channel.go 12KB
chromium_callback.go 12KB
types_render_handler.go 12KB
application.go 11KB
systray_unix.go 11KB
layout.go 11KB
decimal_go.go 11KB
types_request_context.go 11KB
types_view.go 11KB
types_dictionary_value.go 10KB
pkg_dpkg_linux.go 10KB
types_x509_certificate.go 10KB
types.go 10KB
array.go 9KB
select_printer.go 9KB
json_test.go 9KB
types_list_value.go 9KB
sysdialog.go 9KB
types_window_delegate.go 9KB
types_textfield_component.go 9KB
initialize.go 9KB
ipc.go 9KB
object.go 9KB
command.go 9KB
types_request_handler.go 8KB
misc_functions.go 8KB
types_resourcerequest_handler.go 8KB
systray_menu_unix.go 8KB
project.go 8KB
local_load_xhr_proxy.go 8KB
共 678 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7158
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功