## 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
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7530
最新资源
- 直接序列扩频(DSSS)用于BPSK、QPSK和16QAM调制Matlab代码.rar
- 子载波方差vr归一化载波频率偏移Matlab代码.rar
- 自适应调制 OFDM LTE Matlab代码.rar
- 最小二乘均衡器以补偿信道失真Matlab代码.rar
- jQuery实现的砸金蛋抽奖游戏源码.zip
- 户外储能电源方案双向逆变器主板方案,含原理文件,PCB文件,源代码,BOM表,非标件电感与变压器规格参数,户外储能电源额定功率2KW(峰值功率3KW),双向逆变电源生产资料,本生产资料含有前级DCDC
- 结构光多频外差解相位 结构光编解码,可用于基于相位的单目或者双目结构光三维重建系统
- comsol枝晶生长相场法模拟 二元合金 考虑溶质偏析
- 基于python开发的圣诞树代码.txt
- STM 32开发的直流电机PWM 调速项目,包括程序源码和protues 仿真 驱动为L 298N PWM 调速电机是单片机控制电机必会的
- 【复现SCI+参考文献】基于扩展(EKF)和无迹卡尔曼滤波(UKF)的电力系统动态状态估计 该程序对应文章Power System Dynamic State Estimation Using Ex
- spss27操作软件下载
- 传统永磁同步电机的FOC离散化simulink模型,效果较好 附赠传递函数离散化推导的文档,初学者可以入手
- 模块化多电平变流器MMC均衡控制的matlab仿真 1外环电压电流环+电容电压均分+桥臂环流抑制策略; 2子模块直流电压Udc=2000V,11电平级联,额定功率10MW; 3有效的实现
- C#编写电量采集系统,MODBUS 485通信读取70块电量表电度数(电表品牌:中电),里面有完整的采集源码,采集数据10分钟存盘一次存至数量库,随时可查看或计算区间电量 提供,运行稳定,不受使用时
- 静态随机存储器实验报告
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈