(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / Screen.cs
blob111752339df38d910b5327abfce735ac7cd2a819
1 //
2 // System.Windows.Forms.Screen.cs
3 //
4 // Author:
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Dennis Hayes (dennish@Raytek.com)
7 //
8 // (C) 2002 Ximian, Inc
9 //
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:
19 //
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 //
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;
32 using System.Drawing;
33 using System.Collections;
35 namespace System.Windows.Forms {
37 // <summary>
38 // </summary>
40 public class Screen {
43 // --- Public Properties
46 internal static ArrayList allScreens = new ArrayList();
48 private Rectangle bounds;
50 static Screen() {
51 allScreens.Add (new Screen());
54 internal Screen() {
55 bounds = new Rectangle(0, 0, 1024, 768);
58 [MonoTODO]
59 public static Screen[] AllScreens {
60 get {
61 Screen[] result = new Screen[allScreens.Count];
62 allScreens.CopyTo (result, 0);
63 return result;
66 [MonoTODO]
67 public Rectangle Bounds {
68 get {
69 return bounds;
72 [MonoTODO]
73 public string DeviceName {
74 get {
75 throw new NotImplementedException ();
78 [MonoTODO]
79 public bool Primary {
80 get {
81 throw new NotImplementedException ();
84 [MonoTODO]
85 public static Screen PrimaryScreen {
86 get {
87 throw new NotImplementedException ();
90 [MonoTODO]
91 public Rectangle WorkingArea {
92 get {
93 return bounds;
98 // --- Public Methods
100 [MonoTODO]
101 public override bool Equals(object obj)
103 return base.Equals(obj);
105 [MonoTODO]
106 public static Screen FromControl(Control ctl)
108 throw new NotImplementedException ();
110 [MonoTODO]
111 public static Screen FromHandle(IntPtr hwnd)
113 throw new NotImplementedException ();
115 [MonoTODO]
116 public static Screen FromPoint(Point point)
118 return allScreens[0] as Screen;
120 [MonoTODO]
121 public static Screen FromRectangle(Rectangle rect)
123 throw new NotImplementedException ();
125 [MonoTODO]
126 public static Rectangle GetBounds(Control ctl)
128 throw new NotImplementedException ();
130 [MonoTODO]
131 public static Rectangle GetBounds(Point pt)
133 throw new NotImplementedException ();
135 [MonoTODO]
136 public static Rectangle GetBounds(Rectangle rect)
138 throw new NotImplementedException ();
140 [MonoTODO]
141 public override int GetHashCode()
143 return base.GetHashCode();
146 [MonoTODO]
147 public static Rectangle GetWorkingArea(Control ctl)
149 throw new NotImplementedException ();
151 [MonoTODO]
152 public override string ToString()
154 return base.ToString();