
------------------------------------------------------------------------------
36. Draw a rectangle. <Main>
------------------------------------------------------------------------------
[Name]
_rectangle
[Syntax]
#include <graph.h>
short _rectangle( short fill, short rsx, short rsy,
short rex, short rey ) ;
[Description]
Draws a rectangle or paints it.
[Compatibility]
<MS-C Non-Compatible Specification>
(1) The following status is not returned by "_grstatus" function after
the execution of this function.
The output is clipped by view port. : _GRCLIPPED
In this case, the same graphic status is return as _GRNOOUTPUT, and
the return value of this function is always "0". (Could not draw
normally) However, the right value is not returned in case of the
_GFILLINTERIOR attribute is specified.
(2) The following graphic statuses are returned by the "_grstatus"
function after the execution of this function.
The left-top and the right-bottom : _GRPARAMETERALTERED
coordinates are exchanged.
<MS-C Compatible Specification>
(1) The following graphic statuses are returned by the "_grstatus"
function after the execution of this function.
Executed successfully : _GROK
Executed in text mode : _GRNOTINPROPERMODE
Invalid parameters : _GRINVALIDPARAMETER
Not painted due to insufficient memory : _GRINSUFFICIENTMEMORY
Not drawn in clipping region : _GRNOOUTPUT