Go to the documentation of this file.
65 const char *format, ...);
91 void draw_line(
int y1,
int x1,
int y2,
int x2,
92 int ch = -1,
bool background =
false);
97 void draw_frame(
int y1,
int x1,
int y2,
int x2,
105 int ch = -1,
double aspect = 2);
112 int ch = -1,
double aspect = 2);
115 int peek(
int y,
int x);
124 int *dx,
unsigned int *dy);
135 int ch = -1,
bool interprete =
false);
void use_attr_normal()
use attribute normal
Definition: gfx.cpp:83
void draw_area(int y, int x, int sy, int sx, const int *data)
draw a screen area at top-left position (x, y) with size (sx, sy)
Definition: gfx.cpp:145
void use_attr_reverse()
use attribute reverse
Definition: gfx.cpp:77
void cursor_keycode(int keycode, int *dx, unsigned int *dy)
decode wide keycode
Definition: gfx.cpp:524
void use_color(int index=1)
use indexed color pair for foreground/background colors of characters
Definition: gfx.cpp:59
void draw_ellipse(int yc, int xc, int ay, int ax, int ch=-1, double aspect=2)
draw a ellipse at center position (xc, yc) with principle axis ax and ay
Definition: gfx.cpp:454
int peek(int y, int x)
peek at location (y, x) and return the displayed character
Definition: gfx.cpp:510
char * get_string_buffer(int n)
helper for allocating a temporarily used string buffer
Definition: gfx.cpp:597
void init_color()
init ASCII GFX color display
Definition: gfx.cpp:25
void draw_grid_text(int y, int x, const char *text)
draw a text string with grid font characters at top-left position (x, y)
Definition: gfx.cpp:163
void draw_line(int y1, int x1, int y2, int x2, int ch=-1, bool background=false)
draw a line from position (x1, y1) to (x2, y2)
Definition: gfx.cpp:294
void init_gfx()
init ASCII GFX
Definition: gfx.cpp:13
void use_attr_blink()
use attribute blink
Definition: gfx.cpp:71
void set_window(WINDOW *w)
set the drawing window
Definition: gfx.cpp:53
void draw_frame(int y1, int x1, int y2, int x2, int ch=-1)
draw a frame from position (y1, x1) to (y2, x2)
Definition: gfx.cpp:394
void use_attr_bold()
use attribute bold
Definition: gfx.cpp:65
void draw_sprite(int y, int x, const char *text)
draw a sprite at barycenter position (x, y)
Definition: gfx.cpp:109
void exit_gfx()
exit ASCII GFX
Definition: gfx.cpp:41
int * convert_char_text(const char *text, int sx, int sy, int ch=-1, bool interprete=false)
helper for converting a text string into an ASCII data buffer
Definition: gfx.cpp:552
void draw_circle(int yc, int xc, int r, int ch=-1, double aspect=2)
draw a circle at center position (xc, yc) with radius r
Definition: gfx.cpp:428
int get_keycode()
return wide keycode
Definition: gfx.cpp:518
void draw_text(int y, int x, const char *format,...)
draw a formatted text at position (x, y)
Definition: gfx.cpp:89