mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-23 10:29:17 +08:00
ToolsCI / Tools (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / A9 :components/dfs.cfg (push) Has been cancelled
utest_auto_run / A9 :components/lwip.cfg (push) Has been cancelled
utest_auto_run / A9 :components/netdev.cfg (push) Has been cancelled
utest_auto_run / A9 :components/sal.cfg (push) Has been cancelled
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/mem.cfg (push) Has been cancelled
Weekly CI Scheduler / Trigger and Monitor CIs (push) Has been cancelled
Weekly CI Scheduler / Create Discussion Report (push) Has been cancelled
1. 8250 serila family (OFW, PCI, DWC, early) 2. Virtual serial (by graphic and input) 3. HVC early serial 4. ARM PL011 serial Signed-off-by: GuEe-GUI <2991707448@qq.com>
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
/*
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2023-02-25 GuEe-GUI the first version
|
|
*/
|
|
|
|
#ifndef __VIRTUAL_RENDER_H__
|
|
#define __VIRTUAL_RENDER_H__
|
|
|
|
#include <rtdef.h>
|
|
|
|
struct render_color
|
|
{
|
|
rt_uint32_t red;
|
|
rt_uint32_t green;
|
|
rt_uint32_t blue;
|
|
rt_uint32_t alpha;
|
|
};
|
|
|
|
struct render_point
|
|
{
|
|
rt_uint32_t row;
|
|
rt_uint32_t col;
|
|
};
|
|
|
|
enum cursor
|
|
{
|
|
CURSOR_HLINE,
|
|
CURSOR_VLINE,
|
|
CURSOR_BLOCK,
|
|
};
|
|
|
|
rt_err_t render_load_fbdev(struct rt_device *fbdev);
|
|
rt_err_t render_load_font(const char *psf_data, rt_size_t size,
|
|
struct render_color *foreground, struct render_color *background,
|
|
struct render_point *out_start_point, struct render_point *out_end_point);
|
|
|
|
void render_clear_display(void);
|
|
|
|
void render_set_foreground(struct render_color *foreground);
|
|
void render_set_background(struct render_color *background);
|
|
rt_inline void render_set_color(struct render_color *foreground, struct render_color *background)
|
|
{
|
|
render_set_foreground(foreground);
|
|
render_set_background(background);
|
|
}
|
|
|
|
void render_select_cursor(enum cursor shape);
|
|
void render_move_cursor(struct render_point *position);
|
|
void render_reset_cursor(struct render_point *out_position);
|
|
void render_return_cursor(struct render_point *out_position);
|
|
void render_current_cursor(struct render_point *out_position);
|
|
|
|
void render_put_char(char ch);
|
|
|
|
#endif /* __VIRTUAL_RENDER_H__ */
|