GC.drawRectangle

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

@param x the x coordinate of the rectangle to be drawn @param y the y coordinate of the rectangle to be drawn @param width the width of the rectangle to be drawn @param height the height of the rectangle to be drawn

@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)
    class GC
    void
    drawRectangle
    (
    int x
    ,
    int y
    ,
    int width
    ,
    int height
    )
  2. void drawRectangle(Rectangle rect)

Meta