2 // System.Windows.Forms.Screen.cs
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Dennis Hayes (dennish@Raytek.com)
8 // (C) 2002 Ximian, Inc
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System
.Runtime
.InteropServices
;
33 using System
.Collections
;
35 namespace System
.Windows
.Forms
{
43 // --- Public Properties
46 internal static ArrayList allScreens
= new ArrayList();
48 private Rectangle bounds
;
51 allScreens
.Add (new Screen());
55 bounds
= new Rectangle(0, 0, 1024, 768);
59 public static Screen
[] AllScreens
{
61 Screen
[] result
= new Screen
[allScreens
.Count
];
62 allScreens
.CopyTo (result
, 0);
67 public Rectangle Bounds
{
73 public string DeviceName
{
75 throw new NotImplementedException ();
81 throw new NotImplementedException ();
85 public static Screen PrimaryScreen
{
87 throw new NotImplementedException ();
91 public Rectangle WorkingArea
{
101 public override bool Equals(object obj
)
103 return base.Equals(obj
);
106 public static Screen
FromControl(Control ctl
)
108 throw new NotImplementedException ();
111 public static Screen
FromHandle(IntPtr hwnd
)
113 throw new NotImplementedException ();
116 public static Screen
FromPoint(Point point
)
118 return allScreens
[0] as Screen
;
121 public static Screen
FromRectangle(Rectangle rect
)
123 throw new NotImplementedException ();
126 public static Rectangle
GetBounds(Control ctl
)
128 throw new NotImplementedException ();
131 public static Rectangle
GetBounds(Point pt
)
133 throw new NotImplementedException ();
136 public static Rectangle
GetBounds(Rectangle rect
)
138 throw new NotImplementedException ();
141 public override int GetHashCode()
143 return base.GetHashCode();
147 public static Rectangle
GetWorkingArea(Control ctl
)
149 throw new NotImplementedException ();
152 public override string ToString()
154 return base.ToString();