Mercurial > projects > dwt-mac
view dwt/internal/cocoa/NSRect.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | 642f460a0908 |
children | cfa563df4fdd |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 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 * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * * Port to the D programming language: * Jacob Carlborg <doob@me.com> *******************************************************************************/ module dwt.internal.cocoa.NSRect; import dwt.dwthelper.utils; import dwt.internal.cocoa.NSPoint; import dwt.internal.cocoa.NSSize; public struct NSRect { /** @field accessor=origin.x */ public alias origin.x x; /** @field accessor=origin.y */ public alias origin.y y; /** @field accessor=size.width */ public alias size.width width; /** @field accessor=size.height */ public alias size.height height; NSPoint origin; NSSize size; }