Logo Search packages:      
Sourcecode: libcaca version File versions  Download package

void caca_draw_box ( int  x1,
int  y1,
int  x2,
int  y2,
char  c 
)

Draw a box on the screen using the given character.

Parameters:
x1 X coordinate of the upper-left corner of the box.
y1 Y coordinate of the upper-left corner of the box.
x2 X coordinate of the lower-right corner of the box.
y2 Y coordinate of the lower-right corner of the box.
c Character to draw the box outline with.
Returns:
void

Definition at line 47 of file box.c.

References caca_draw_line().

{
    caca_draw_line(x1, y1, x1, y2, c);
    caca_draw_line(x1, y2, x2, y2, c);
    caca_draw_line(x2, y2, x2, y1, c);
    caca_draw_line(x2, y1, x1, y1, c);
}


Generated by  Doxygen 1.6.0   Back to index