[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gRect()
 Draw a rectangle
------------------------------------------------------------------------------
 C Prototype

     #include "llibg.api"
     void _gRect(
                  int iLeft,
                  int iTop,
                  int iRight,
                  int iBottom,
                  BOOL bFilled,
                  DWORD dwColor,
                  int iMode
                )

 Arguments

     iLeft is the pixel-based X coordinate of the top left corner of the
     rectangle.

     iTop is the pixel-based Y coordinate of the top left corner of the
     rectangle.

     iRight is the pixel-based X coordinate of the bottom right corner of
     the rectangle.

     iBottom is the pixel-based Y coordinate of the bottom right corner
     of the rectangle.

     bFilled is a flag that you specify as true (.T.) to draw a filled
     rectangle.

     dwColor is the rectangle color.  The range of valid values is
     limited to the number of colors available in the selected video mode.
     For example, in 16-color modes, valid values are between zero and 15,
     and in 256-color modes, valid values are between zero and 255.

     iMode is the display mode (see _gEllipse() for a table of possible
     values).

 Notes

     .  Restrictions:  You cannot use this function unless you have
        set the screen to one of the graphic modes using _gModeSet().  This
        function respects the screen clipping region as set by _gClipSet().

 Files   Library is LLIBG.LIB, header file is Llibg.api.


See Also: _gClipSet() _gEllipse() _gFrame() _gLine()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson