void bx_draw_box ( bx_window  win,
int  x,
int  y,
unsigned  w,
unsigned  h,
int  filled 
)

Draws a rectangle on the canvas of a window, whose interior may be filled or left empty.

Parameters:
win the window owning the targeted canvas.
x,y the coordinates of the top left corner of the rectangle.
w,h the width and height of the rectangle
filled whether the interior of the rectangle is filled (no-zero) or left empty (zero)
Returns:
nothing
Remarks:
  • the coordinates are relative to the top-left corner of the canvas.
  • the y-axis is oriented downward.
  • the updated canvas will be shown after the next call to bx_show_canvas().
  • the color is set with bx_set_color() or bx_set_rgb().
  • the line width is set with bx_set_line_width().


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6