Function TCOD_console_draw_frame_rgb¶
Defined in File console_drawing.h
Function Documentation¶
-
TCOD_Error TCOD_console_draw_frame_rgb(struct TCOD_Console *con, int x, int y, int width, int height, const int *decoration, const TCOD_ColorRGB *fg, const TCOD_ColorRGB *bg, TCOD_bkgnd_flag_t flag, bool clear)
Draw a decorated frame onto
console
with the shape ofx
,y
,width
,height
.decoration[9]
is an optional array of Unicode codepoints. If left as NULL then a single-pipe decoration is used by default.If
decoration[9]
is given the codepoints are used for the edges, corners, and fill of the frame in this order:If0 1 2 3 4 5 6 7 8
fg
orbg
is NULL then their respective colors will not be updated.If
clear
is true then the inner area of the frame is filled with the inner decoration, which is typically space.New in version 1.19.