Mercurial > projects > dwt-mac
view dwt/internal/cocoa/CGPoint.d @ 130:3d4579727e0e
Fixes #2 and #3
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 10 Feb 2009 21:01:24 +0100 |
parents | 62202ce0039f |
children |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2007 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.CGPoint; import dwt.internal.c.Carbon; /* this shouldn't be needed but CGFloat is not recognized*/ static if ((void*).sizeof > int.sizeof) // 64bit target alias double CGFloat; else alias float CGFloat; struct CGPoint { CGFloat x = 0.0; CGFloat y = 0.0; }