comparison dwt/graphics/Device.d @ 37:642f460a0908

Fixed a lot of compile errors, a "hello world" app compiles now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 10 Oct 2008 12:29:48 +0200
parents db5a898b2119
children d8635bb48c7c
comparison
equal deleted inserted replaced
36:db5a898b2119 37:642f460a0908
344 * </ul> 344 * </ul>
345 */ 345 */
346 public Point getDPI () { 346 public Point getDPI () {
347 checkDevice (); 347 checkDevice ();
348 NSDictionary dictionary = NSScreen.mainScreen().deviceDescription(); 348 NSDictionary dictionary = NSScreen.mainScreen().deviceDescription();
349 NSValue value = new NSValue(dictionary.objectForKey(new id(OS.NSDeviceResolution().id_)).id_); 349 NSValue value = new NSValue(dictionary.objectForKey(new id(OS.NSDeviceResolution())).id_);
350 NSSize size = value.sizeValue(); 350 NSSize size = value.sizeValue();
351 return new Point(cast(int)size.width, cast(int)size.height); 351 return new Point(cast(int)size.width, cast(int)size.height);
352 } 352 }
353 353
354 /** 354 /**
537 * </p> 537 * </p>
538 * 538 *
539 * @param hDC the platform specific GC handle 539 * @param hDC the platform specific GC handle
540 * @param data the platform specific GC data 540 * @param data the platform specific GC data
541 */ 541 */
542 public abstract void internal_dispose_GC (int handle, GCData data); 542 public abstract void internal_dispose_GC (objc.id handle, GCData data);
543 543
544 /** 544 /**
545 * Returns <code>true</code> if the device has been disposed, 545 * Returns <code>true</code> if the device has been disposed,
546 * and <code>false</code> otherwise. 546 * and <code>false</code> otherwise.
547 * <p> 547 * <p>