void bx_draw_line ( bx_window  win,
int  x1,
int  y1,
int  x2,
int  y2 
)

Draws a line segment on the canvas of a window.

Parameters:
win the window owning the targeted canvas.
x1,y1 the coordinates of the 1st end-point of the segment.
x2,y2 the coordinates of the 2nd end-point of the segment.
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