2004-04-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / Screen.cs
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 //
10 using System.Runtime.InteropServices;
11 using System.Drawing;
12 using System.Collections;
13
14 namespace System.Windows.Forms {
15
16         // <summary>
17         // </summary>
18
19     public class Screen {
20
21                 //
22                 //  --- Public Properties
23                 //
24                 
25                 internal static ArrayList allScreens = new ArrayList();
26                 
27                 private Rectangle bounds;
28                 
29                 static Screen() {
30                         allScreens.Add (new Screen());
31                 }
32                 
33                 internal Screen() {
34                         bounds = new Rectangle(0, 0, 1024, 768);
35                 }
36                 
37                 [MonoTODO]
38                 public static Screen[] AllScreens {
39                         get {
40                                 Screen[] result = new Screen[allScreens.Count];
41                                 allScreens.CopyTo (result, 0);
42                                 return result;
43                         }
44                 }
45                 [MonoTODO]
46                 public Rectangle Bounds {
47                         get {
48                                 return bounds;
49                         }
50                 }
51                 [MonoTODO]
52                 public string DeviceName {
53                         get {
54                                 throw new NotImplementedException ();
55                         }
56                 }
57                 [MonoTODO]
58                 public bool Primary {
59                         get {
60                                 throw new NotImplementedException ();
61                         }
62                 }
63                 [MonoTODO]
64                 public static Screen PrimaryScreen {
65                         get {
66                                 throw new NotImplementedException ();
67                         }
68                 }
69                 [MonoTODO]
70                 public Rectangle WorkingArea {
71                         get {
72                                 return bounds;
73                         }
74                 }
75
76                 
77                 //  --- Public Methods
78                 
79                 [MonoTODO]
80                 public override bool Equals(object obj)
81                 {
82                         return base.Equals(obj);
83                 }
84                 [MonoTODO]
85                 public static Screen FromControl(Control ctl)
86                 {
87                         throw new NotImplementedException ();
88                 }
89                 [MonoTODO]
90                 public static Screen FromHandle(IntPtr hwnd)
91                 {
92                         throw new NotImplementedException ();
93                 }
94                 [MonoTODO]
95                 public static Screen FromPoint(Point point)
96                 {
97                         return allScreens[0] as Screen;
98                 }
99                 [MonoTODO]
100                 public static Screen FromRectangle(Rectangle rect)
101                 {
102                         throw new NotImplementedException ();
103                 }
104                 [MonoTODO]
105                 public static Rectangle GetBounds(Control ctl)
106                 {
107                         throw new NotImplementedException ();
108                 }
109                 [MonoTODO]
110                 public static Rectangle GetBounds(Point pt)
111                 {
112                         throw new NotImplementedException ();
113                 }
114                 [MonoTODO]
115                 public static Rectangle GetBounds(Rectangle rect)
116                 {
117                         throw new NotImplementedException ();
118                 }
119                 [MonoTODO]
120                 public override int GetHashCode()
121                 {
122                         return base.GetHashCode();
123                 }
124
125                 [MonoTODO]
126                 public static Rectangle GetWorkingArea(Control ctl)
127                 {
128                         throw new NotImplementedException ();
129                 }
130                 [MonoTODO]
131                 public override string ToString()
132                 {
133                         return base.ToString();
134                 }
135          }
136 }