GC.drawText

Draws the given str, using the receiver's current font and foreground color. Tab expansion, line delimiter and mnemonic processing are performed according to the specified flags. If <code>flags</code> includes <code>DRAW_TRANSPARENT</code>, then the background of the rectangular area where the text is being drawn will not be modified, otherwise it will be filled with the receiver's background color. <p> The parameter <code>flags</code> may be a combination of: <dl> <dt><b>DRAW_DELIMITER</b></dt> <dd>draw multiple lines</dd> <dt><b>DRAW_TAB</b></dt> <dd>expand tabs</dd> <dt><b>DRAW_MNEMONIC</b></dt> <dd>underline the mnemonic character</dd> <dt><b>DRAW_TRANSPARENT</b></dt> <dd>transparent background</dd> </dl> </p>

@param str the str to be drawn @param x the x coordinate of the top left corner of the rectangular area where the text is to be drawn @param y the y coordinate of the top left corner of the rectangular area where the text is to be drawn @param flags the flags specifying how to process the text

@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

  1. void drawText(String str, int x, int y)
  2. void drawText(String str, int x, int y, bool isTransparent)
  3. void drawText(String str, int x, int y, int flags)
    class GC
    void
    drawText
    (
    String str
    ,
    int x
    ,
    int y
    ,
    int flags
    )

Meta