Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_cons.h>
Go to the source code of this file.
Macros | |
#define | W(y) rz_cons_canvas_write(c, y) |
#define | G(x, y) rz_cons_canvas_gotoxy(c, x, y) |
#define | useUtf8 (rz_cons_singleton()->use_utf8) |
#define | useUtf8Curvy (rz_cons_singleton()->use_utf8_curvy) |
#define | DOTTED_LINE_HORIZ "┄" |
#define | DOTTED_LINE_VERT "┊" |
#define | DASHED_LINE_VERT "╵" |
#define | DASHED_LINE_HORIZ "╴" |
Enumerations | |
enum | { APEX_DOT = 0 , DOT_APEX , REV_APEX_APEX , DOT_DOT , NRM_DOT , NRM_APEX , DOT_NRM , REV_APEX_NRM , NRM_NRM } |
Functions | |
static char * | utf8_line_vert (int dot_style) |
static char * | utf8_line_horiz (int dot_style) |
static void | apply_line_style (RzConsCanvas *c, int x, int y, int x2, int y2, RzCanvasLineStyle *style, int isvert) |
static void | draw_horizontal_line (RzConsCanvas *c, int x, int y, int width, int style, int dot_style) |
static void | draw_vertical_line (RzConsCanvas *c, int x, int y, int height, int dot_style) |
RZ_API void | rz_cons_canvas_line_diagonal (RzConsCanvas *c, int x, int y, int x2, int y2, RzCanvasLineStyle *style) |
RZ_API void | rz_cons_canvas_line_square (RzConsCanvas *c, int x, int y, int x2, int y2, RzCanvasLineStyle *style) |
RZ_API void | rz_cons_canvas_line_square_defined (RzConsCanvas *c, int x, int y, int x2, int y2, RzCanvasLineStyle *style, int bendpoint, int isvert) |
RZ_API void | rz_cons_canvas_line_back_edge (RzConsCanvas *c, int x, int y, int x2, int y2, RzCanvasLineStyle *style, int ybendpoint1, int xbendpoint, int ybendpoint2, int isvert) |
#define DASHED_LINE_HORIZ "╴" |
Definition at line 16 of file canvas_line.c.
#define DASHED_LINE_VERT "╵" |
Definition at line 15 of file canvas_line.c.
#define DOTTED_LINE_HORIZ "┄" |
Definition at line 12 of file canvas_line.c.
#define DOTTED_LINE_VERT "┊" |
Definition at line 13 of file canvas_line.c.
#define G | ( | x, | |
y | |||
) | rz_cons_canvas_gotoxy(c, x, y) |
Definition at line 7 of file canvas_line.c.
#define useUtf8 (rz_cons_singleton()->use_utf8) |
Definition at line 9 of file canvas_line.c.
#define useUtf8Curvy (rz_cons_singleton()->use_utf8_curvy) |
Definition at line 10 of file canvas_line.c.
#define W | ( | y | ) | rz_cons_canvas_write(c, y) |
Definition at line 6 of file canvas_line.c.
anonymous enum |
Enumerator | |
---|---|
APEX_DOT | |
DOT_APEX | |
REV_APEX_APEX | |
DOT_DOT | |
NRM_DOT | |
NRM_APEX | |
DOT_NRM | |
REV_APEX_NRM | |
NRM_NRM |
Definition at line 18 of file canvas_line.c.
|
static |
Definition at line 52 of file canvas_line.c.
References c, rz_cons_canvas_line_style_t::color, Color_RESET, rz_cons_t::context, rz_cons_canvas_line_style_t::dot_style, G, rz_cons_printable_palette_t::graph_false, rz_cons_printable_palette_t::graph_true, rz_cons_printable_palette_t::graph_ujump, LINE_FALSE, LINE_NONE, LINE_NOSYM_HORIZ, LINE_NOSYM_VERT, LINE_TRUE, LINE_UNCJMP, rz_cons_context_t::pal, rz_cons_singleton(), rz_cons_canvas_line_style_t::symbol, useUtf8, utf8_line_horiz(), utf8_line_vert(), W, and x.
Referenced by rz_cons_canvas_line_back_edge(), rz_cons_canvas_line_diagonal(), rz_cons_canvas_line_square(), and rz_cons_canvas_line_square_defined().
|
static |
Definition at line 109 of file canvas_line.c.
References APEX_DOT, c, DOT_APEX, DOT_DOT, DOT_NRM, G, i, NRM_APEX, NRM_DOT, NRM_NRM, NULL, REV_APEX_APEX, REV_APEX_NRM, 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, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), useUtf8, useUtf8Curvy, utf8_line_horiz(), W, width, and x.
Referenced by rz_cons_canvas_line_back_edge(), rz_cons_canvas_line_square(), and rz_cons_canvas_line_square_defined().
|
static |
Definition at line 263 of file canvas_line.c.
References c, G, height, i, NULL, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), useUtf8, utf8_line_vert(), W, and x.
Referenced by rz_cons_canvas_line_back_edge(), rz_cons_canvas_line_square(), and rz_cons_canvas_line_square_defined().
RZ_API void rz_cons_canvas_line_back_edge | ( | RzConsCanvas * | c, |
int | x, | ||
int | y, | ||
int | x2, | ||
int | y2, | ||
RzCanvasLineStyle * | style, | ||
int | ybendpoint1, | ||
int | xbendpoint, | ||
int | ybendpoint2, | ||
int | isvert | ||
) |
Definition at line 454 of file canvas_line.c.
References apply_line_style(), c, DOT_DOT, DOT_NRM, rz_cons_canvas_line_style_t::dot_style, draw_horizontal_line(), draw_vertical_line(), NRM_APEX, NRM_DOT, REV_APEX_APEX, REV_APEX_NRM, RZ_ABS, rz_cons_canvas_line(), RZ_MIN, w1, w2, x, and x2.
Referenced by agraph_print_edges().
RZ_API void rz_cons_canvas_line_diagonal | ( | RzConsCanvas * | c, |
int | x, | ||
int | y, | ||
int | x2, | ||
int | y2, | ||
RzCanvasLineStyle * | style | ||
) |
Definition at line 285 of file canvas_line.c.
References apply_line_style(), c, Color_RESET, rz_cons_canvas_line_style_t::dot_style, DOT_STYLE_NORMAL, err, G, i, loop, rz_cons_canvas_line_square(), autogen_x86imm::tmp, useUtf8, W, x, and x2.
Referenced by rz_cons_canvas_line().
RZ_API void rz_cons_canvas_line_square | ( | RzConsCanvas * | c, |
int | x, | ||
int | y, | ||
int | x2, | ||
int | y2, | ||
RzCanvasLineStyle * | style | ||
) |
Definition at line 371 of file canvas_line.c.
References APEX_DOT, apply_line_style(), c, Color_RESET, DOT_APEX, DOT_DOT, rz_cons_canvas_line_style_t::dot_style, draw_horizontal_line(), draw_vertical_line(), REV_APEX_APEX, RZ_ABS, RZ_MIN, w, x, and x2.
Referenced by rz_cons_canvas_line(), and rz_cons_canvas_line_diagonal().
RZ_API void rz_cons_canvas_line_square_defined | ( | RzConsCanvas * | c, |
int | x, | ||
int | y, | ||
int | x2, | ||
int | y2, | ||
RzCanvasLineStyle * | style, | ||
int | bendpoint, | ||
int | isvert | ||
) |
Definition at line 401 of file canvas_line.c.
References APEX_DOT, apply_line_style(), c, Color_RESET, DOT_APEX, DOT_DOT, rz_cons_canvas_line_style_t::dot_style, draw_horizontal_line(), draw_vertical_line(), h1, h2, NRM_APEX, NRM_DOT, NRM_NRM, REV_APEX_APEX, RZ_ABS, rz_cons_canvas_line(), RZ_MIN, w, w1, w2, x, and x2.
Referenced by agraph_print_edges().
|
static |
Definition at line 41 of file canvas_line.c.
References DASHED_LINE_HORIZ, DOT_STYLE_BACKEDGE, DOT_STYLE_CONDITIONAL, DOT_STYLE_NORMAL, DOTTED_LINE_HORIZ, RUNECODESTR_LINE_HORIZ, and rz_cons_singleton().
Referenced by apply_line_style(), and draw_horizontal_line().
|
static |
Definition at line 30 of file canvas_line.c.
References DASHED_LINE_VERT, DOT_STYLE_BACKEDGE, DOT_STYLE_CONDITIONAL, DOT_STYLE_NORMAL, DOTTED_LINE_VERT, RUNECODESTR_LINE_VERT, and rz_cons_singleton().
Referenced by apply_line_style(), and draw_vertical_line().