# RT-Thread GUI engine
RT-Thread 的 GUI 放在 package 中([git 原始碼](https://github.com/RT-Thread-packages/gui_engine.git)),本文將簡單將此 GUI engine 分工。
- [首頁](/@callumlu/rt-gui)
## System
系統層面的工作、及協助外部硬體,如鍵盤等。
```
|-- src
| |-- filerw.c
| |-- mouse.c
| |-- mouse.h
| |-- server.c
| |-- rtgui_app.c
| |-- rtgui_driver.c
| |-- rtgui_object.c
| |-- rtgui_system.c
|
|-- include
| |-- rtgui
| |-- driver.h
| |-- event.h
| |-- filerw.h
| |-- kbddef.h
| |-- list.h
| |-- rtgui_app.h
| |-- rtgui_config.h
| |-- rtgui_object.h
| |-- rtgui_server.h
| |-- rtgui_system.h
| |-- rtgui.h
| |-- tree.h
```
- [Object](/@callumlu/rt-gui-object)
- [Server](/@callumlu/rt-gui-server)
## Widgets
一些相關的 widgets,如按鈕、視窗等
```
|-- src
| |-- box.c
| |-- container.c
| |-- matrix.c
| |-- region.c
| |-- title.c
| |-- topwin.c
| |-- topwin.h
| |-- widgets.c
| |-- window.c
|
|-- include
| |-- rtgui
| |-- widgets
| |-- box.h
| |-- container.h
| |-- matrix.h
| |-- region.h
| |-- title.h
| |-- widget.h
| |-- window.h
```
- [Widget](/@callumlu/rt-gui-widget)
- [Window](/@callumlu/rt-gui-window)
## Draw
協助使用者繪製一些圖形等
```
|-- src
| |-- color.c
| |-- dc_blend.c
| |-- dc_duffer.c
| |-- dc_client.c
| |-- dc_hw.c
| |-- dc_rotozoom.c
| |-- dc_trans.c
| |-- dc.c
|
|-- include
| |-- rtgui
| |-- color.h
| |-- dc_draw.h
| |-- dc_trans.h
| |-- dc.h
```
- [DC 硬體](/@callumlu/rt-gui-dc-hw)
## Font
處理文字編碼,及字型相關的
```
|-- src
| |-- asc12font.c
| |-- asc16font.c
| |-- font_bmp.c
| |-- font_fnt.c
| |-- font_freetype.c
| |-- font_hz_bmp.c
| |-- font_hz_file.c
| |-- font.c
| |-- hz12font.c
| |-- hz16font.c
| |-- gb2312.c
|
|-- include
| |-- rtgui
| |-- font_fnt.h
| |-- font_freetype.h
| |-- font.h
| |-- gb2312.h
```
## Image
處理圖片格式相關的
```
|-- src
| |-- blit.c
| |-- image_bmp.c
| |-- image_jpg.c
| |-- image_png.c
| |-- image_xpm.c
| |-- image.c
|
|-- include
| |-- rtgui
| |-- bilt.h
| |-- image_bmp.h
| |-- image_container.h
| |-- image_hdc.h
| |-- image.h
```
{"metaMigratedAt":"2023-06-15T00:52:46.060Z","metaMigratedFrom":"YAML","title":"RT-Thread GUI engine","breaks":false,"contributors":"[{\"id\":\"623188d7-0201-46cb-b205-1a7e20baa6bd\",\"add\":4488,\"del\":1963}]"}
RT-Thread GUI engine
System
Widgets
Draw
Font
Image