Mercurial > projects > dwt-linux
diff dwt/graphics/GC.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | 8d1948844918 |
children | b6e695a17969 |
line wrap: on
line diff
--- a/dwt/graphics/GC.d Tue Jun 24 22:12:18 2008 +0200 +++ b/dwt/graphics/GC.d Sun Jun 29 14:33:38 2008 +0200 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -75,6 +75,9 @@ * </p> * * @see dwt.events.PaintEvent + * @see <a href="http://www.eclipse.org/swt/snippets/#gc">GC snippets</a> + * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Examples: GraphicsExample, PaintExample</a> + * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public final class GC : Resource { @@ -1030,7 +1033,7 @@ } /* Merge clipping with mask if necessary */ - if (data.clipRgn !is null) { + if (data.clipRgn !is null) { int newWidth = srcX + srcWidth; int newHeight = srcY + srcHeight; int bytesPerLine = (newWidth + 7) / 8; @@ -2186,7 +2189,8 @@ } /** - * Returns the receiver's alpha value. + * Returns the receiver's alpha value. The alpha value + * is between 0 (transparent) and 255 (opaque). * * @return the alpha value * @@ -2984,7 +2988,8 @@ } /** - * Sets the receiver's alpha value. + * Sets the receiver's alpha value which must be + * between 0 (transparent) and 255 (opaque). * <p> * This operation requires the operating system's advanced * graphics subsystem which may not be available on some