GC.drawRectangle

Draws the outline of the specified rectangle, using the receiver's foreground color. The left and right edges of the rectangle are at <code>rect.x</code> and <code>rect.x + rect.width</code>. The top and bottom edges are at <code>rect.y</code> and <code>rect.y + rect.height</code>.

@param rect the rectangle to draw

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the rectangle is null</li> </ul> @exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

  1. void drawRectangle(int x, int y, int width, int height)
  2. void drawRectangle(Rectangle rect)
    class GC
    void
    drawRectangle

Meta