mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
doc: textui中的几个对象的关系图
This commit is contained in:
parent
642fa1def8
commit
83d0b8ec11
@ -3,6 +3,32 @@
|
||||
#include <common/sys/types.h>
|
||||
#include <common/spinlock.h>
|
||||
|
||||
/*
|
||||
textui中的几个对象的关系:
|
||||
|
||||
|
||||
textui_vline_normal_t
|
||||
+--------------------------------+
|
||||
| | textui_char_normal_t
|
||||
textui_window_t | chars: textui_char_normal_t * | +--------------------------+
|
||||
+----------------------------+ | | | |
|
||||
| | +------> +--------> c: char |
|
||||
| list:List | | | index: int16_t | +--------------------------+
|
||||
| vlines_num:int16_t | | | |
|
||||
| vlines_used:int16_t | | +--------------------------------+
|
||||
| | |
|
||||
| vlines +-----+ textui_char_chromatic_t
|
||||
| | | textui_vline_chromatic_t +--------------------------+
|
||||
| top_vline:int16_t | | +-------------------------------------+ | |
|
||||
| vline_operating:int16_t | | | | | c: uint16_t |
|
||||
| chars_per_line:int16_t | | | chars: textui_char_chromatic_t * | | |
|
||||
| flags:uint8_t | | | | | FRcolor:24 |
|
||||
| lock:spinlock_t | +------> +---> |
|
||||
| | | index: int16_t | | BKcolor:24 |
|
||||
| | | | | |
|
||||
+----------------------------+ +-------------------------------------+ +--------------------------+
|
||||
*/
|
||||
|
||||
// 文本窗口标志位
|
||||
// 文本窗口是否为彩色
|
||||
#define TEXTUI_WF_CHROMATIC (1 << 0)
|
||||
@ -46,7 +72,7 @@ struct textui_char_chromatic_t
|
||||
struct textui_vline_normal_t
|
||||
{
|
||||
struct textui_char_normal_t *chars; // 字符对象数组
|
||||
uint16_t index; // 当前操作的位置
|
||||
int16_t index; // 当前操作的位置
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user