TextLayout.draw
- void draw(GC gc, int x, int y)
- void draw(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground)
- void draw(GC gc, int x, int y, int selectionStart, int selectionEnd, Color selectionForeground, Color selectionBackground, int flags)
Draws the receiver's text using the specified GC at the specified point.
@param gc the GC to draw @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
@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the gc is null</li> </ul>