Mercurial > projects > dwt-mac
view dwt/internal/cocoa/DOMWheelEvent.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | f565d3a95c0a |
line wrap: on
line source
/******************************************************************************* * Port to the D Programming language: * Jacob Carlborg <jacob.carlborg@gmail.com> *******************************************************************************/ module dwt.internal.cocoa.DOMWheelEvent; import dwt.dwthelper.utils; import dwt.internal.cocoa.NSObject; public class DOMWheelEvent : NSObject { public this () { super(); } public this (int id) { super(id); } public bool altKey () { return OS.objc_msgSend(this.id, OS.sel_altKey) !is 0; } public int clientX () { return OS.objc_msgSend(this.id, OS.sel_clientX); } public int clientY () { return OS.objc_msgSend(this.id, OS.sel_clientY); } public bool ctrlKey () { return OS.objc_msgSend(this.id, OS.sel_ctrlKey) !is 0; } public bool isHorizontal () { return OS.objc_msgSend(this.id, OS.sel_isHorizontal) !is 0; } public bool metaKey () { return OS.objc_msgSend(this.id, OS.sel_metaKey) !is 0; } public int screenX () { return OS.objc_msgSend(this.id, OS.sel_screenX); } public int screenY () { return OS.objc_msgSend(this.id, OS.sel_screenY); } public bool shiftKey () { return OS.objc_msgSend(this.id, OS.sel_shiftKey) !is 0; } public int wheelDelta () { return OS.objc_msgSend(this.id, OS.sel_wheelDelta); } }