Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>fg_drawbox</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fg_drawbox

Usage


   #include <fg.h>
   void far fg_drawbox(fg_color_t color, int mode, int mask,
                       int line_type, fg_const_pbox_t box,
                       fg_const_pbox_t clipbox);

Description

   Draw the outline of a box on the display screen and clip it to the box
   clipbox. The box to be drawn must be normalized, i.e. the first
   coordinate pair must be the lower left corner and the second pair must be
   the upper right corner.

Example 

   {
       fg_box_t box_to_draw;
       box_to_draw [FG_X1] = -10;
       box_to_draw [FG_Y1] = 0;
       box_to_draw [FG_X2] = 20;
       box_to_draw [FG_Y2] = 30;

       fg_drawbox(FG_WHITE, FG_MODE_SET, ~0, FG_LINE_DENSE_DOTTED,
                  box_to_draw, fg.displaybox);
   }

   All sides of the box will be drawn but the left side will be at x coordinate
   0 instead of -10.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson