Mercurial > projects > dwt-mac
diff dwt/graphics/GlyphMetrics.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | 7d135fe0caf2 |
children |
line wrap: on
line diff
--- a/dwt/graphics/GlyphMetrics.d Tue Oct 21 15:20:04 2008 +0200 +++ b/dwt/graphics/GlyphMetrics.d Mon Dec 01 17:07:00 2008 +0100 @@ -1,5 +1,5 @@ -/******************************************************************************* - * Copyright (c) 2000, 2006 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 @@ -9,7 +9,7 @@ * IBM Corporation - initial API and implementation * * Port to the D programming language: - * Jacob Carlborg <jacob.carlborg@gmail.com> + * Jacob Carlborg <doob@me.com> *******************************************************************************/ module dwt.graphics.GlyphMetrics; @@ -35,6 +35,7 @@ * * @see TextStyle * @see TextLayout + * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> * * @since 3.2 */ @@ -59,13 +60,17 @@ * Constructs an instance of this class with the given * ascent, descent and width values. * + * @param ascent the GlyphMetrics ascent + * @param descent the GlyphMetrics descent + * @param width the GlyphMetrics width + * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the ascent, descent or width argument is negative</li> * </ul> */ public this(int ascent, int descent, int width) { if (ascent < 0 || descent < 0 || width < 0) { - DWT.error(DWT.ERROR_INVALID_ARGUMENT); + DWT.error(DWT.ERROR_INVALID_ARGUMENT); } this.ascent = ascent; this.descent = descent;