File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
versioned_docs/version-3.x/guide Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1515
1616:::
1717
18+ :::warning
19+ 文档中的代码仅供参考,未经过测试,请等待后续更新完善。
20+
21+ 如果你对此文档有任何改进建议,可提交到:https://github.com/lcui-dev/website/issues/new
22+ :::
23+
24+ ## 前置条件
25+
26+ 本文档面向有开发经验的中级开发者,且具备以下条件:
27+
28+ - 熟练掌握 C 语言及构建工具链,能够解决常见的编译问题。
29+ - 熟练借助 AI 理解技术文档和代码、解决技术问题。
30+ - 熟悉至少一个 GUI 开发库/框架,理解 GUI 应用程序工作原理。
31+ - 了解 Web 开发技术,包括 HTML、CSS。
32+
1833## 创建应用程序
1934
2035首先,我们需要包含 LCUI 库的头文件,并初始化 LCUI 应用程序。
Original file line number Diff line number Diff line change 1515
1616:::
1717
18+ :::warning
19+ 文档中的代码仅供参考,未经过测试,请等待后续更新完善。
20+
21+ 如果你对此文档有任何改进建议,可提交到:https://github.com/lcui-dev/website/issues/new
22+ :::
23+
24+ ## 前置条件
25+
26+ 本文档面向有开发经验的中级开发者,且具备以下条件:
27+
28+ - 熟练掌握 C 语言及构建工具链,能够解决常见的编译问题。
29+ - 熟练借助 AI 理解技术文档和代码、解决技术问题。
30+ - 熟悉至少一个 GUI 开发库/框架,理解 GUI 应用程序工作原理。
31+ - 了解 Web 开发技术,包括 HTML、CSS。
32+
1833## 创建应用程序
1934
2035首先,我们需要包含 LCUI 库的头文件,并初始化 LCUI 应用程序。
@@ -70,7 +85,6 @@ LCUI 的组件基于原型来实现组件的抽象和继承,组件原型记录
7085#include < LCUI.h>
7186#include < LCUI/main.h>
7287
73- // highlight-start
7488ui_widget_prototype_t *my_button_proto;
7589
7690void my_button_init (ui_widget_t * w)
@@ -83,7 +97,6 @@ void register_my_button(void)
8397 my_button_proto = ui_create_widget_prototype (" my-button" , " button" );
8498 my_button_proto - > init = my_button_init ;
8599}
86- // highlight-end
87100
88101int main(int argc, char * argv[ ] )
89102{
You can’t perform that action at this time.
0 commit comments