没有合适的资源?快使用搜索试试~ 我知道了~
首页emWin 5.12中文手册:嵌入式GUI库的全面指南
emWin V5.12中文手册是一份详尽的文档,专为嵌入式软件开发提供图形用户界面(GUI)解决方案。它由德国SEGGER Microcontroller GmbH & Co. KG公司发布,适用于MDK(μVision Development Kit)平台。该手册针对图形库的设计和使用,涵盖了V5.12版本,旨在帮助开发者创建高效、直观的用户界面。 手册的核心内容包括了emWin库的功能介绍、安装指南、API参考、示例代码以及最佳实践。用户可以在这里学习如何构建跨平台的图形界面,包括窗口管理、控件(如按钮、文本框、滑块等)、布局管理、事件处理以及颜色和图像处理。版本5.12的改进可能涉及性能优化、新特性添加和已知问题的修复。 手册强调了版本更新的重要性,提醒读者确保手头的是最新版本,以获取最准确的信息。版权方面,所有内容未经许可禁止复制或修改PDF文件,并且软件需根据提供的许可证使用。用户注册服务能让开发者及时获取更新和通知,以便跟上技术进步。 手册还提供了联系方式,包括电话、传真和电子邮箱,以便用户在遇到问题时寻求技术支持或查询其他未在文档中详尽说明的内容。最后,手册的印刷日期为2011年12月9日,显示了其时效性和信息的可靠性。 emWin V5.12中文手册是嵌入式开发人员不可或缺的参考资料,提供了丰富的开发工具和技术支持,对于理解和利用emWin图形库进行嵌入式系统的用户界面设计具有极高的价值。
资源详情
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/9097531/bg10.jpg)
16
emWin V5.12 用户参考手册 © 1997 - 2011 SEGGER Microcontroller GmbH & Co. KG
15.21.3 键盘反应 ................................................................................................617
15.21.4 SCROLLBAR API .....................................................................................618
15.21.5 示例......................................................................................................625
15.22 SLIDER:滑块小工具 ................................................................................626
15.22.1 配置选项 ................................................................................................626
15.22.2 通知代码 ................................................................................................626
15.22.3 键盘反应 ................................................................................................626
15.22.4 SLIDER API ...........................................................................................626
15.22.5 示例......................................................................................................632
15.23 文本文本小工具 ........................................................................................633
15.23.1 配置选项 ................................................................................................633
15.23.2 键盘反应 ................................................................................................633
15.23.3 文本 API ................................................................................................633
15.23.4 示例......................................................................................................639
15.24 TREEVIEW:树形视图小工具.......................................................................640
15.24.1 术语说明 ................................................................................................641
15.24.2 配置选项 ................................................................................................642
15.24.3 通知代码 ................................................................................................642
15.24.4 键盘反应 ................................................................................................642
15.24.5 TREEVIEW API .......................................................................................643
15.24.5.1 常用例程 ................................................................................................644
15.24.5.2 项目相关例程...........................................................................................657
15.24.6 示例......................................................................................................662
15.25 WINDOW:窗口小工具..............................................................................663
15.25.1 配置选项 ................................................................................................663
15.25.2 键盘反应 ................................................................................................663
15.25.3 WINDOW API.........................................................................................663
16 对话框 ........................................................................................................................665
16.1 对话框的基本原理 .....................................................................................666
16.2 创建对话框 .............................................................................................666
16.2.1 资源表 ...................................................................................................666
16.2.2 对话框过程函数 ........................................................................................667
16.2.2.1 初始化对话框...........................................................................................668
16.2.2.2 定义对话框行为 ........................................................................................669
16.3 对话框 API..............................................................................................670
16.4 对话框 ...................................................................................................670
17 GUIBuilder .................................................................................................................673
17.1 简介......................................................................................................674
17.2 入门指南 ................................................................................................675
17.3 创建对话框 .............................................................................................676
17.3.1 选择父小工具...........................................................................................676
17.3.2 在编辑器中调整大小和定位 ..........................................................................676
17.3.3 修改小工具属性 ........................................................................................676
17.3.4 向小工具添加其他函数................................................................................676
17.3.5 删除小工具属性 ........................................................................................677
17.3.6 删除小工具 .............................................................................................677
17.4 保存当前的对话框 .....................................................................................678
17.5 GUIBuilder 的输出 ...................................................................................679
17.6 修改 C 文件 .............................................................................................681
17.7 如何使用 C 文件 .......................................................................................681
18 换肤............................................................................................................................683
18.1 “皮肤”是什么? ......................................................................................684
18.2 从使用 API 函数到换肤 ...............................................................................684
18.3 可换肤的小工具 ........................................................................................685
18.4 使用皮肤 ................................................................................................685
18.4.1 运行时间配置...........................................................................................686
18.4.2 编译时间配置...........................................................................................686
![](https://csdnimg.cn/release/download_crawler_static/9097531/bg11.jpg)
emWin V5.12 用户参考手册 © 1997 - 2011 SEGGER Microcontroller GmbH & Co. KG
17
18.5 简单更改 “Flex”皮肤外观 ......................................................................... 686
18.6 对“Flex”皮肤外观所作的重大更改 .............................................................. 687
18.6.1 换肤回调机制 .......................................................................................... 687
18.6.2 更改默认皮肤的外观 .................................................................................. 687
18.6.3 命令列表................................................................................................ 688
18.7 常用的换肤 API........................................................................................ 690
18.8 BUTTON_SKIN_FLEX .............................................................................. 693
18.8.1 配置结构................................................................................................ 693
18.8.2 配置选项................................................................................................ 693
18.8.3 换肤 API................................................................................................ 694
18.8.4 命令列表................................................................................................ 695
18.9 CHECKBOX_SKIN_FLEX .......................................................................... 696
18.9.1 配置结构................................................................................................ 696
18.9.2 配置选项................................................................................................ 696
18.9.3 换肤 API................................................................................................ 697
18.9.4 命令列表................................................................................................ 698
18.10 DROPDOWN_SKIN_FLEX......................................................................... 700
18.10.1 配置结构................................................................................................ 700
18.10.2 配置选项................................................................................................ 701
18.10.3 换肤 API................................................................................................ 701
18.10.4 命令列表................................................................................................ 702
18.11 FRAMEWIN_SKIN_FLEX .......................................................................... 703
18.11.1 配置结构................................................................................................ 703
18.11.2 配置选项................................................................................................ 704
18.11.3 换肤 API................................................................................................ 704
18.11.4 命令列表................................................................................................ 705
18.12 HEADER_SKIN_FLEX .............................................................................. 708
18.12.1 配置结构................................................................................................ 708
18.12.2 配置选项................................................................................................ 708
18.12.3 换肤 API................................................................................................ 709
18.12.4 命令列表................................................................................................ 709
18.13 PROGBAR_SKIN_FLEX............................................................................ 711
18.13.1 配置结构................................................................................................ 711
18.13.2 配置选项................................................................................................ 711
18.13.3 换肤 API................................................................................................ 712
18.13.4 命令列表................................................................................................ 712
18.14 RADIO_SKIN_FLEX ................................................................................ 715
18.14.1 配置结构................................................................................................ 715
18.14.2 配置选项................................................................................................ 716
18.14.3 换肤 API................................................................................................ 716
18.14.4 命令列表................................................................................................ 717
18.15 SCROLLBAR_SKIN_FLEX......................................................................... 719
18.15.1 配置结构................................................................................................ 719
18.15.2 配置选项................................................................................................ 720
18.15.3 换肤 API................................................................................................ 720
18.15.4 命令列表................................................................................................ 721
18.16 SLIDER_SKIN_FLEX ............................................................................... 724
18.16.1 配置结构................................................................................................ 724
18.16.2 配置选项................................................................................................ 725
18.16.3 换肤 API................................................................................................ 725
18.16.4 命令列表................................................................................................ 726
19 多缓冲 ........................................................................................................................729
19.1 工作原理................................................................................................ 730
19.1.1 双缓冲 .................................................................................................. 730
19.1.2 三缓冲 .................................................................................................. 730
19.2 要求 ..................................................................................................... 731
19.3 限制 ..................................................................................................... 731
19.4 配置 ..................................................................................................... 731
19.4.1 LCD_X_Config() .................................................................................... 731
19.4.2 LCD_X_DisplayDriver()........................................................................... 732
![](https://csdnimg.cn/release/download_crawler_static/9097531/bg12.jpg)
18
emWin V5.12 用户参考手册 © 1997 - 2011 SEGGER Microcontroller GmbH & Co. KG
19.5 通过窗口管理器自动使用多个缓冲器 ...............................................................733
19.6 多缓冲 API..............................................................................................734
20 虚拟屏幕 / 虚拟页面 ...................................................................................................739
20.1 简介......................................................................................................740
20.2 要求......................................................................................................740
20.3 配置......................................................................................................741
20.4 示例.....................................................................................................741
20.4.1 基本示例 ................................................................................................741
20.4.2 使用窗口管理器的实时示例 ..........................................................................743
20.4.3 使用窗口管理器的对话框示例 .......................................................................744
20.5 虚拟屏幕 API...........................................................................................746
21 多层 / 多显示支持 .......................................................................................................747
21.1 简介......................................................................................................748
21.1.1 选择绘图操作所使用的层 .............................................................................748
21.1.2 选择窗口所使用的层 ..................................................................................748
21.1.2.1 把窗口从一层移到另一层 .............................................................................749
21.2 使用多层支持...........................................................................................751
21.2.1 透明......................................................................................................751
21.2.2 Alpha 混合 .............................................................................................752
21.2.3 硬件游标 ................................................................................................753
21.2.4 多层示例 ................................................................................................753
21.3 使用多显示支持 ........................................................................................753
21.3.1 启用多显示支持 ........................................................................................753
21.3.2 运行时间屏幕旋转 .....................................................................................754
21.3.3 多显示示例 .............................................................................................754
21.4 配置多层支持...........................................................................................754
21.5 配置多显示支持 ........................................................................................755
21.6 多层 API ................................................................................................755
22 指针输入设备 .............................................................................................................759
22.1 描述......................................................................................................760
22.2 指针输入设备 API .....................................................................................760
22.3 鼠标驱动 ................................................................................................761
22.3.1 通用鼠标 API...........................................................................................761
22.3.2 PS2 鼠标驱动 ..........................................................................................762
22.3.2.1 使用 PS2 鼠标驱动 ....................................................................................762
22.3.2.2 PS2 鼠标驱动 ..........................................................................................762
22.4 触摸屏驱动 .............................................................................................763
22.4.1 通用型触摸屏 API .....................................................................................763
22.4.2 模拟触摸屏驱动 ........................................................................................764
22.4.2.1 设置模拟触摸屏 ........................................................................................765
22.4.2.2 运行时校准 .............................................................................................767
22.4.2.3 硬件程序 ................................................................................................767
22.4.2.4 模拟触摸屏的驱动 API................................................................................769
22.4.2.5 配置模拟触摸屏驱动 ..................................................................................770
22.5 游戏操纵杆输入示例 ..................................................................................771
23 键盘输入.....................................................................................................................773
23.1 描述......................................................................................................774
23.1.1 驱动层 API..............................................................................................775
23.1.2 应用层 API..............................................................................................776
24 Sprites........................................................................................................................777
24.1 简介......................................................................................................778
24.2 Sprite API .............................................................................................778
25 游标............................................................................................................................783
![](https://csdnimg.cn/release/download_crawler_static/9097531/bg13.jpg)
emWin V5.12 用户参考手册 © 1997 - 2011 SEGGER Microcontroller GmbH & Co. KG
19
25.1 可用游标................................................................................................ 784
25.2 游标 API................................................................................................ 784
26 抗锯齿 ........................................................................................................................787
26.1 简介 ..................................................................................................... 788
26.1.1 抗锯齿质量 ............................................................................................. 788
26.1.2 无锯齿字体 ............................................................................................. 788
26.1.3 高分辨率坐标 .......................................................................................... 789
26.2 抗锯齿 API ............................................................................................. 790
26.3 控制函数................................................................................................ 790
26.4 绘图函数................................................................................................ 791
26.5 示例 ..................................................................................................... 795
27 外语支持.....................................................................................................................801
27.1 Unicode................................................................................................ 802
27.1.1 UTF-8 编码方案....................................................................................... 802
27.1.2 Unicode 字符.......................................................................................... 802
27.1.3 UTF-8 字符串 ......................................................................................... 803
27.1.3.1 使用 U2C.exe 将 UTF-8 文本转换为 C 编码 ..................................................... 803
27.1.4 Unicode API .......................................................................................... 804
27.1.4.1 UTF-8 函数 ............................................................................................ 804
27.1.4.2 双字节函数 ............................................................................................. 807
27.2 阿拉伯语支持 .......................................................................................... 808
27.2.1 记号形式................................................................................................ 808
27.2.2 合体字符................................................................................................ 809
27.2.3 双向文本对齐 .......................................................................................... 809
27.2.4 要求 ..................................................................................................... 810
27.2.5 如何启用阿拉伯语支持 ............................................................................... 810
27.2.6 示例 ..................................................................................................... 810
27.2.7 配合阿拉伯语文本使用的字体文件 ................................................................. 810
27.3 泰语支持................................................................................................ 811
27.3.1 要求 ..................................................................................................... 811
27.3.2 如何启用泰语支持..................................................................................... 811
27.3.3 示例 ..................................................................................................... 811
27.3.4 配合泰语文本使用的字体文件 ....................................................................... 811
27.4 Shift JIS 支持 ......................................................................................... 812
27.4.1 创建 Shift JIS 字体................................................................................... 812
28 显示驱动.....................................................................................................................813
28.1 现有显示驱动 .......................................................................................... 814
28.1.1 驱动文件命名规则..................................................................................... 814
28.1.2 运行时间可配置驱动 .................................................................................. 814
28.1.3 编译时可配置驱动..................................................................................... 815
28.1.4 尚未移植的现有驱动 .................................................................................. 816
28.1.5 特殊用途驱动 .......................................................................................... 816
28.2 CPU / 显示控制器接口 ............................................................................... 816
28.2.1 直接接口................................................................................................ 817
28.2.2 间接接口 —— 并行总线.............................................................................. 817
28.2.2.1 I/O 引脚连接程序示例 ............................................................................... 818
28.2.3 间接接口 ——4 引脚 SPI ............................................................................ 818
28.2.3.1 I/O 引脚连接程序示例 ............................................................................... 818
28.2.4 间接接口 ——3 引脚 SPI ............................................................................ 818
28.2.4.1 I/O 引脚连接程序示例 ............................................................................... 819
28.2.5 间接接口 ——I2C 总线 .............................................................................. 819
28.2.5.1 I/O 引脚连接程序示例 ............................................................................... 819
28.3 硬件接口配置 .......................................................................................... 819
28.3.1 直接接口................................................................................................ 819
28.3.2 间接接口................................................................................................ 819
28.3.2.1 运行时间配置 .......................................................................................... 820
28.3.2.2 编译时间配置 .......................................................................................... 821
![](https://csdnimg.cn/release/download_crawler_static/9097531/bg14.jpg)
20
emWin V5.12 用户参考手册 © 1997 - 2011 SEGGER Microcontroller GmbH & Co. KG
28.4 不可读取的显示器 .....................................................................................824
28.5 显示方向 ................................................................................................824
28.5.1 通过驱动配置显示方向................................................................................824
28.5.1.1 运行时间配置...........................................................................................825
28.5.1.2 编译时间配置...........................................................................................825
28.5.2 通过函数配置显示方向................................................................................825
28.6 显示驱动回调函数 .....................................................................................827
28.6.1 传给回调函数的命令 ..................................................................................827
28.7 显示驱动详细描述 .....................................................................................829
28.7.1 GUIDRV_BitPlains...................................................................................829
28.7.2 GUIDRV_Dist.........................................................................................832
28.7.3 GUIDRV_FlexColor..................................................................................834
28.7.4 GUIDRV_IST3088...................................................................................839
28.7.5 GUIDRV_Lin ..........................................................................................841
28.7.6 GUIDRV_S1D13748................................................................................845
28.7.7 GUIDRV_S1D15G00 ...............................................................................847
28.7.8 GUIDRV_SLin ........................................................................................850
28.7.9 GUIDRV_SPage......................................................................................854
28.7.10 GUIDRV_SSD1926 .................................................................................858
28.7.11 GUIDRV_CompactColor_16......................................................................861
28.7.12 GUIDRV_Fujitsu_16................................................................................866
28.7.13 GUIDRV_Page1bpp.................................................................................868
28.7.14 GUIDRV_07X1 .......................................................................................871
28.7.15 GUIDRV_1611 .......................................................................................874
28.7.16 GUIDRV_6331 .......................................................................................877
28.7.17 GUIDRV_7529 .......................................................................................879
28.7.18 GUIDRV_Template—— 新驱动模板..............................................................882
28.8 LCD 层和显示驱动 API ...............................................................................883
28.8.1 显示驱动 API...........................................................................................883
28.8.2 用户自定义程序 ........................................................................................884
28.8.3 LCD 层程序.............................................................................................885
28.8.3.1 "Get" 组 ................................................................................................885
28.8.3.2 配置组 ...................................................................................................888
28.8.3.3 缓存组 ...................................................................................................891
29 VNC 服务器................................................................................................................893
29.1 简介......................................................................................................894
29.1.1 要求......................................................................................................894
29.1.2 实现说明 ................................................................................................894
29.2 VNC 查看器 ............................................................................................895
29.2.1 启动 VNC 查看器 ......................................................................................895
29.3 emWinVNC 服务器 ...................................................................................896
29.3.1 启动 emWin VNC 服务器............................................................................896
29.3.2 服务器的启动方式 .....................................................................................896
29.3.3 VNC 服务器在目标系统上的集成....................................................................896
29.4 要求......................................................................................................897
29.5 配置选项 ................................................................................................897
29.6 VNC API................................................................................................897
30 与时间和执行相关的函数 ...........................................................................................901
30.1 时间和执行 API ........................................................................................902
31 配置............................................................................................................................905
31.1 需要配置的项目 ........................................................................................906
31.2 运行时间和编译时间的配置 ..........................................................................906
31.3 emWin 的初始化程序.................................................................................906
31.4 运行时间配置...........................................................................................907
31.4.1 定制 GUIConf.c .......................................................................................907
31.4.1.1 用于 GUI_X_Config() 的 API 函数 ................................................................907
31.4.2 定制 LCDConf.c.......................................................................................909
剩余945页未读,继续阅读
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://profile-avatar.csdnimg.cn/default.jpg!1)
linjie_314
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
最新资源
- 构建Cadence PSpice仿真模型库教程
- VMware 10.0安装指南:步骤详解与网络、文件共享解决方案
- 中国互联网20周年必读:影响行业的100本经典书籍
- SQL Server 2000 Analysis Services的经典MDX查询示例
- VC6.0 MFC操作Excel教程:亲测Win7下的应用与保存技巧
- 使用Python NetworkX处理网络图
- 科技驱动:计算机控制技术的革新与应用
- MF-1型机器人硬件与robobasic编程详解
- ADC性能指标解析:超越位数、SNR和谐波
- 通用示波器改造为逻辑分析仪:0-1字符显示与电路设计
- C++实现TCP控制台客户端
- SOA架构下ESB在卷烟厂的信息整合与决策支持
- 三维人脸识别:技术进展与应用解析
- 单张人脸图像的眼镜边框自动去除方法
- C语言绘制图形:余弦曲线与正弦函数示例
- Matlab 文件操作入门:fopen、fclose、fprintf、fscanf 等函数使用详解
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)