comparison dwt/internal/cocoa/NSEvent.d @ 46:cfa563df4fdd

Updated Widget and Display to 3.514
author Jacob Carlborg <doob@me.com>
date Fri, 05 Dec 2008 16:00:41 +0100
parents d8635bb48c7c
children 62202ce0039f
comparison
equal deleted inserted replaced
45:d8635bb48c7c 46:cfa563df4fdd
101 NSPoint result = NSPoint(); 101 NSPoint result = NSPoint();
102 OS.objc_msgSend_stret(result, this.id, OS.sel_locationInWindow); 102 OS.objc_msgSend_stret(result, this.id, OS.sel_locationInWindow);
103 return result; 103 return result;
104 } 104 }
105 105
106 public int /*long*/ modifierFlags() { 106 public NSUInteger modifierFlags() {
107 return OS.objc_msgSend(this.id, OS.sel_modifierFlags); 107 return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_modifierFlags);
108 } 108 }
109 109
110 public static NSPoint mouseLocation() { 110 public static NSPoint mouseLocation() {
111 NSPoint result = NSPoint(); 111 NSPoint result = NSPoint();
112 OS.objc_msgSend_stret(result, OS.class_NSEvent, OS.sel_mouseLocation); 112 OS.objc_msgSend_stret(result, OS.class_NSEvent, OS.sel_mouseLocation);