Merge branch 'master' of github.com:tgiphil/mono
[mono.git] / mcs / class / System.Drawing / System.Drawing / SystemColors.jvm.cs
1 //
2 // System.Drawing.SystemColors.cs
3 //
4 // Authors:
5 //      Andrew Skiba (andrews@mainsoft.com)
6 //  Konstantin Triger (kostat@mainsoft.com)
7 //
8 // Copyright (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
9 // 
10
11 //
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.
30 //
31
32 namespace System.Drawing {
33
34         public sealed class SystemColors
35         {
36                 private SystemColors (){}\r
37 \r
38                 static Color [] SystemColorsCache {\r
39                         get {\r
40                                 return KnownColors.Values;\r
41                         }\r
42                 }
43
44                 static public Color ActiveBorder
45                 {       
46                         get {
47                                 return SystemColorsCache[(int)KnownColor.ActiveBorder];
48                         }
49                 }
50
51                 static public Color ActiveCaption
52                 {       
53                         get {
54                                 return SystemColorsCache[(int)KnownColor.ActiveCaption];
55                         }
56                 }
57
58                 static public Color ActiveCaptionText
59                 {       
60                         get {
61                                 return SystemColorsCache[(int)KnownColor.ActiveCaptionText];
62                         }
63                 }
64
65                 static public Color AppWorkspace
66                 {       
67                         get {
68                                 return SystemColorsCache[(int)KnownColor.AppWorkspace];
69                         }
70                 }
71
72                 static public Color Control
73                 {       
74                         get {
75                                 return SystemColorsCache[(int)KnownColor.Control];
76                         }
77                 }
78
79                 static public Color ControlDark
80                 {       
81                         get {
82                                 return SystemColorsCache[(int)KnownColor.ControlDark];
83                         }
84                 }
85
86                 static public Color ControlDarkDark
87                 {       
88                         get {
89                                 return SystemColorsCache[(int)KnownColor.ControlDarkDark];
90                         }
91                 }
92
93                 static public Color ControlLight
94                 {       
95                         get {
96                                 return SystemColorsCache[(int)KnownColor.ControlLight];
97                         }
98                 }
99
100                 static public Color ControlLightLight
101                 {       
102                         get {
103                                 return SystemColorsCache[(int)KnownColor.ControlLightLight];
104                         }
105                 }
106
107                 static public Color ControlText
108                 {       
109                         get {
110                                 return SystemColorsCache[(int)KnownColor.ControlText];
111                         }
112                 }
113
114                 static public Color Desktop
115                 {       
116                         get {
117                                 return SystemColorsCache[(int)KnownColor.Desktop];
118                         }
119                 }
120
121                 static public Color GrayText
122                 {       
123                         get {
124                                 return SystemColorsCache[(int)KnownColor.GrayText];
125                         }
126                 }
127
128                 static public Color Highlight
129                 {       
130                         get {
131                                 return SystemColorsCache[(int)KnownColor.Highlight];
132                         }
133                 }
134
135                 static public Color HighlightText
136                 {       
137                         get {
138                                 return SystemColorsCache[(int)KnownColor.HighlightText];
139                         }
140                 }
141
142                 static public Color HotTrack
143                 {       
144                         get {
145                                 return SystemColorsCache[(int)KnownColor.HotTrack];
146                         }
147                 }
148
149                 static public Color InactiveBorder
150                 {       
151                         get {
152                                 return SystemColorsCache[(int)KnownColor.InactiveBorder];
153                         }
154                 }
155
156                 static public Color InactiveCaption
157                 {       
158                         get {
159                                 return SystemColorsCache[(int)KnownColor.InactiveCaption];
160                         }
161                 }
162
163                 static public Color InactiveCaptionText
164                 {       
165                         get {
166                                 return SystemColorsCache[(int)KnownColor.InactiveCaptionText];
167                         }
168                 }
169
170                 static public Color Info
171                 {       
172                         get {
173                                 return SystemColorsCache[(int)KnownColor.Info];
174                         }
175                 }
176
177                 static public Color InfoText
178                 {       
179                         get {
180                                 return SystemColorsCache[(int)KnownColor.InfoText];
181                         }
182                 }
183
184                 static public Color Menu
185                 {       
186                         get {
187                                 return SystemColorsCache[(int)KnownColor.Menu];
188                         }
189                 }
190
191                 static public Color MenuText
192                 {       
193                         get {
194                                 return SystemColorsCache[(int)KnownColor.MenuText];
195                         }
196                 }
197
198                 static public Color ScrollBar
199                 {       
200                         get {
201                                 return SystemColorsCache[(int)KnownColor.ScrollBar];
202                         }
203                 }
204
205                 static public Color Window
206                 {       
207                         get {
208                                 return SystemColorsCache[(int)KnownColor.Window];
209                         }
210                 }
211
212                 static public Color WindowFrame
213                 {       
214                         get {
215                                 return SystemColorsCache[(int)KnownColor.WindowFrame];
216                         }
217                 }
218
219                 static public Color WindowText
220                 {       
221                         get {
222                                 return SystemColorsCache[(int)KnownColor.WindowText];
223                         }
224                 }
225
226 #if NET_2_0
227
228                 static public Color ButtonFace
229                 {       
230                         get {
231                                 return SystemColorsCache [(int) KnownColor.ButtonFace];
232                         }
233                 }
234
235                 static public Color ButtonHighlight
236                 {       
237                         get {
238                                 return SystemColorsCache [(int) KnownColor.ButtonHighlight];
239                         }
240                 }
241
242                 static public Color ButtonShadow
243                 {       
244                         get {
245                                 return SystemColorsCache [(int) KnownColor.ButtonShadow];
246                         }
247                 }
248
249                 static public Color GradientActiveCaption
250                 {       
251                         get {
252                                 return SystemColorsCache [(int) KnownColor.GradientActiveCaption];
253                         }
254                 }
255
256                 static public Color GradientInactiveCaption
257                 {       
258                         get {
259                                 return SystemColorsCache [(int) KnownColor.GradientInactiveCaption];
260                         }
261                 }
262
263                 static public Color MenuBar
264                 {       
265                         get {
266                                 return SystemColorsCache [(int) KnownColor.MenuBar];
267                         }
268                 }
269
270                 static public Color MenuHighlight
271                 {       
272                         get {
273                                 return SystemColorsCache [(int) KnownColor.MenuHighlight];
274                         }
275                 }
276 #endif
277         }
278 }