Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | USE_UTF8 (rz_cons_singleton()->use_utf8) |
#define | USE_UTF8_CURVY (rz_cons_singleton()->use_utf8_curvy) |
#define | W(y) rz_cons_canvas_write(c, y) |
#define | G(x, y) rz_cons_canvas_gotoxy(c, x, y) |
#define USE_UTF8 (rz_cons_singleton()->use_utf8) |
#define USE_UTF8_CURVY (rz_cons_singleton()->use_utf8_curvy) |
#define W | ( | y | ) | rz_cons_canvas_write(c, y) |
|
static |
|
static |
Definition at line 110 of file canvas.c.
References __getUtf8Length2(), c, free(), malloc(), memcpy(), memset(), realloc(), RZ_MAX, start, and autogen_x86imm::tmp.
Referenced by rz_cons_canvas_write().
Definition at line 18 of file canvas.c.
References __isAnsiSequence(), and p.
Referenced by rz_cons_canvas_write().
Definition at line 80 of file canvas.c.
References i, n, rz_str_char_fullwidth(), and s.
Referenced by rz_cons_canvas_write().
Definition at line 95 of file canvas.c.
References i, n, rz_str_char_fullwidth(), and s.
Referenced by __expandLine(), and rz_cons_canvas_write().
Definition at line 14 of file canvas.c.
References s.
Referenced by __getAnsiPiece(), and set_attr().
|
static |
Definition at line 43 of file canvas.c.
Referenced by rz_cons_canvas_write().
Definition at line 168 of file canvas.c.
References key.
Referenced by rz_cons_canvas_clear().
|
static |
Definition at line 486 of file canvas.c.
References c, color, Color_RESET, free(), G, h, i, malloc(), memset(), NULL, RUNECODESTR_CORNER_BL, RUNECODESTR_CORNER_BR, RUNECODESTR_CORNER_TL, RUNECODESTR_CORNER_TR, RUNECODESTR_CURVE_CORNER_BL, RUNECODESTR_CURVE_CORNER_BR, RUNECODESTR_CURVE_CORNER_TL, RUNECODESTR_CURVE_CORNER_TR, RUNECODESTR_LINE_HORIZ, RUNECODESTR_LINE_VERT, RZ_MIN, rz_return_if_fail, rz_strbuf_appendf(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), USE_UTF8, USE_UTF8_CURVY, W, w, and x.
Referenced by __panel_print(), __update_modal(), normal_RzANode_print(), and rz_diff_draw_tui().
RZ_API void rz_cons_canvas_clear | ( | RzConsCanvas * | c | ) |
Definition at line 174 of file canvas.c.
References attribute_delete_cb(), c, memset(), and rz_return_if_fail.
Referenced by rz_cons_canvas_new(), rz_cons_canvas_resize(), and rz_diff_draw_tui().
Definition at line 551 of file canvas.c.
References free(), G, h, i, malloc(), memset(), W, w, and x.
Referenced by __create_new_canvas(), __panel_all_clear(), __panel_print(), __panels_refresh(), __update_modal(), agraph_print(), and rz_diff_draw_tui().
RZ_API void rz_cons_canvas_free | ( | RzConsCanvas * | c | ) |
Definition at line 150 of file canvas.c.
References c, free(), and rz_str_constpool_fini().
Referenced by __call_visual_graph(), __panels_process(), cmd_pCd(), cmd_pCD(), cmd_pCx(), rz_agraph_free(), rz_cmd_heap_chunks_print_handler(), rz_cmd_print(), rz_cons_canvas_resize(), rz_core_visual_graph(), rz_diff_hex_visual(), and rz_diff_resize_buffer().
RZ_API bool rz_cons_canvas_gotoxy | ( | RzConsCanvas * | c, |
int | x, | ||
int | y | ||
) |
Definition at line 184 of file canvas.c.
Referenced by __menu_panel_print(), __panels_refresh(), __update_help_contents(), __update_help_title(), __update_modal(), __update_panel_contents(), __update_panel_title(), cmd_pCd(), cmd_pCD(), cmd_pCx(), rz_cmd_print(), and rz_diff_draw_tui().
RZ_API void rz_cons_canvas_line | ( | RzConsCanvas * | c, |
int | x, | ||
int | y, | ||
int | x2, | ||
int | y2, | ||
RzCanvasLineStyle * | style | ||
) |
Definition at line 570 of file canvas.c.
References c, rz_cons_canvas_line_diagonal(), rz_cons_canvas_line_square(), x, and x2.
Referenced by agraph_print_edges(), agraph_print_edges_simple(), rz_cons_canvas_line_back_edge(), and rz_cons_canvas_line_square_defined().
RZ_API RzConsCanvas* rz_cons_canvas_new | ( | int | w, |
int | h | ||
) |
Definition at line 223 of file canvas.c.
References attribute_free_kv(), c, Color_RESET, free(), h, i, malloc(), NULL, rz_cons_canvas_clear(), RZ_NEW0, rz_str_constpool_fini(), rz_str_constpool_init(), strdup(), and w.
Referenced by __create_new_canvas(), cmd_pCd(), cmd_pCD(), cmd_pCx(), create_agraph_from_graph(), print_double_linked_list_bin_graph(), rz_cmd_heap_chunks_print_handler(), rz_cmd_print(), rz_core_init(), rz_core_visual_graph(), rz_diff_hex_visual(), and rz_diff_resize_buffer().
RZ_API void rz_cons_canvas_print | ( | RzConsCanvas * | c | ) |
Definition at line 423 of file canvas.c.
References c, free(), rz_cons_canvas_to_string(), and rz_cons_strcat().
Referenced by __panel_all_clear(), __panels_refresh(), __update_modal(), cmd_pCd(), cmd_pCD(), cmd_pCx(), rz_cmd_print(), and rz_diff_draw_tui().
RZ_API void rz_cons_canvas_print_region | ( | RzConsCanvas * | c | ) |
Definition at line 410 of file canvas.c.
References c, free(), rz_cons_canvas_to_string(), rz_cons_strcat(), RZ_STR_ISEMPTY, RZ_STR_ISNOTEMPTY, and rz_str_trim_tail().
Referenced by agraph_print().
RZ_API int rz_cons_canvas_resize | ( | RzConsCanvas * | c, |
int | w, | ||
int | h | ||
) |
Definition at line 432 of file canvas.c.
References c, free(), h, i, malloc(), NULL, realloc(), rz_cons_canvas_clear(), rz_cons_canvas_free(), and w.
Referenced by __panels_refresh(), and agraph_print().
RZ_API RZ_OWN char* rz_cons_canvas_to_string | ( | RzConsCanvas * | c | ) |
Definition at line 351 of file canvas.c.
References __attributeAt(), c, calloc(), CONS_MAX_ATTR_SZ, free(), len, memcpy(), NULL, rz_cons_get_rune(), rz_return_val_if_fail, rz_str_char_fullwidth(), and x.
Referenced by get_word_from_canvas(), get_word_from_canvas_for_menu(), rz_cons_canvas_print(), and rz_cons_canvas_print_region().
RZ_API void rz_cons_canvas_write | ( | RzConsCanvas * | c, |
const char * | s | ||
) |
Definition at line 283 of file canvas.c.
References __expandLine(), __getAnsiPiece(), __getUtf8Length(), __getUtf8Length2(), __stampAttribute(), c, Color_RESET, G, memcpy(), NULL, RZ_BETWEEN, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_str_nlen(), s, and set_attr().
Referenced by __menu_panel_print(), __panels_refresh(), __update_help_contents(), __update_help_title(), __update_modal(), __update_panel_contents(), __update_panel_title(), cmd_pCd(), cmd_pCD(), cmd_pCx(), rz_cmd_print(), and rz_diff_draw_tui().
|
static |
Definition at line 55 of file canvas.c.
References __isAnsiSequence(), c, NULL, p, rz_str_constpool_get(), rz_strbuf_append_n(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), s, and autogen_x86imm::tmp.
Referenced by rz_cons_canvas_write().