diff options
author | Geoff Norton <grompf@sublimeintervention.com> | 2005-03-18 18:57:18 +0300 |
---|---|---|
committer | Geoff Norton <grompf@sublimeintervention.com> | 2005-03-18 18:57:18 +0300 |
commit | a38cbc553aa4253dff90a04ab64a4a7b722b1129 (patch) | |
tree | 96af838480c6c5b7c37bafd428c3107af7141d57 | |
parent | bdf851d53d1e988256e6dacf577f8e7c84a28263 (diff) |
2005-03-17 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implemented WorkingArea property
svn path=/trunk/mcs/; revision=41996
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 9ab7258689a..acb9028559a 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,7 @@ +2005-03-17 Geoff Norton <gnorton@customerdna.com> + + * XplatUIOSX.cs: Implemented WorkingArea property + 2005-03-17 Peter Bartok <pbartok@novell.com> * XplatUIX11.cs: Fixed menu coord calculations diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs index e233ccc3dbb..25d16227424 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs @@ -1775,7 +1775,12 @@ namespace System.Windows.Forms { internal override bool MouseButtonsSwapped { get{ throw new NotImplementedException(); } } internal override bool MouseWheelPresent { get{ throw new NotImplementedException(); } } internal override Rectangle VirtualScreen { get{ throw new NotImplementedException(); } } - internal override Rectangle WorkingArea { get{ throw new NotImplementedException(); } } + internal override Rectangle WorkingArea { + get { + HIRect bounds = CGDisplayBounds (CGMainDisplayID ()); + return new Rectangle ((int)bounds.origin.x, (int)bounds.origin.y, (int)bounds.size.width, (int)bounds.size.height); + } + } #endregion [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] |