// // System.Windows.Forms.Screen.cs // // Author: // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu) // Dennis Hayes (dennish@Raytek.com) // // (C) 2002 Ximian, Inc // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System.Runtime.InteropServices; using System.Drawing; using System.Collections; namespace System.Windows.Forms { // // public class Screen { // // --- Public Properties // internal static ArrayList allScreens = new ArrayList(); private Rectangle bounds; static Screen() { allScreens.Add (new Screen()); } internal Screen() { bounds = new Rectangle(0, 0, 1024, 768); } [MonoTODO] public static Screen[] AllScreens { get { Screen[] result = new Screen[allScreens.Count]; allScreens.CopyTo (result, 0); return result; } } [MonoTODO] public Rectangle Bounds { get { return bounds; } } [MonoTODO] public string DeviceName { get { throw new NotImplementedException (); } } [MonoTODO] public bool Primary { get { throw new NotImplementedException (); } } [MonoTODO] public static Screen PrimaryScreen { get { throw new NotImplementedException (); } } [MonoTODO] public Rectangle WorkingArea { get { return bounds; } } // --- Public Methods [MonoTODO] public override bool Equals(object obj) { return base.Equals(obj); } [MonoTODO] public static Screen FromControl(Control ctl) { throw new NotImplementedException (); } [MonoTODO] public static Screen FromHandle(IntPtr hwnd) { throw new NotImplementedException (); } [MonoTODO] public static Screen FromPoint(Point point) { return allScreens[0] as Screen; } [MonoTODO] public static Screen FromRectangle(Rectangle rect) { throw new NotImplementedException (); } [MonoTODO] public static Rectangle GetBounds(Control ctl) { throw new NotImplementedException (); } [MonoTODO] public static Rectangle GetBounds(Point pt) { throw new NotImplementedException (); } [MonoTODO] public static Rectangle GetBounds(Rectangle rect) { throw new NotImplementedException (); } [MonoTODO] public override int GetHashCode() { return base.GetHashCode(); } [MonoTODO] public static Rectangle GetWorkingArea(Control ctl) { throw new NotImplementedException (); } [MonoTODO] public override string ToString() { return base.ToString(); } } }