Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Cursors.cs « System.Windows.Forms « Managed.Windows.Forms « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37decfc21c380273a004354e94e135d5fa91411d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
// 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.
//
// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
//
// Authors:
//	Peter Bartok	pbartok@novell.com
//
//

// COMPLETE

namespace System.Windows.Forms {
	public sealed class Cursors {
		#region Local Variables
		internal static Cursor	app_starting;
		internal static Cursor	arrow;
		internal static Cursor	cross;
		internal static Cursor	def;
		internal static Cursor	hand;
		internal static Cursor	help;
		internal static Cursor	hsplit;
		internal static Cursor	ibeam;
		internal static Cursor	no;
		internal static Cursor	no_move_2d;
		internal static Cursor	no_move_horiz;
		internal static Cursor	no_move_vert;
		internal static Cursor	pan_east;
		internal static Cursor	pan_ne;
		internal static Cursor	pan_north;
		internal static Cursor	pan_nw;
		internal static Cursor	pan_se;
		internal static Cursor	pan_south;
		internal static Cursor	pan_sw;
		internal static Cursor	pan_west;
		internal static Cursor	size_all;
		internal static Cursor	size_nesw;
		internal static Cursor	size_ns;
		internal static Cursor	size_nwse;
		internal static Cursor	size_we;
		internal static Cursor	up_arrow;
		internal static Cursor	vsplit;
		internal static Cursor	wait_cursor;
		#endregion	// Local Variables

		#region Constructors
		private Cursors() {
		}
		#endregion	// Constructors

		#region Public Static Properties
		public static Cursor AppStarting {
			get {
				if (app_starting == null) {
					app_starting = new Cursor(XplatUI.DefineStdCursor(StdCursor.AppStarting));
					app_starting.name = "AppStarting";
				}
				return app_starting;
			}
		}

		public static Cursor Arrow {
			get {
				if (arrow == null) {
					arrow = new Cursor(XplatUI.DefineStdCursor(StdCursor.Arrow));
					arrow.name = "Arrow";
				}
				return arrow;
			}
		}

		public static Cursor Cross {
			get {
				if (cross == null) {
					cross = new Cursor(XplatUI.DefineStdCursor(StdCursor.Cross));
					cross.name = "Cross";
				}
				return cross;
			}
		}

		public static Cursor Default {
			get {
				if (def == null) {
					def = new Cursor(XplatUI.DefineStdCursor(StdCursor.Default));
					def.name = "Default";
				}
				return def;
			}
		}

		public static Cursor Hand {
			get {
				if (hand == null) {
					hand = new Cursor(XplatUI.DefineStdCursor(StdCursor.Hand));
					hand.name = "Hand";
				}
				return hand;
			}
		}

		public static Cursor Help {
			get {
				if (help == null) {
					help = new Cursor(XplatUI.DefineStdCursor(StdCursor.Help));
					help.name = "Help";
				}
				return help;
			}
		}

		public static Cursor HSplit {
			get {
				if (hsplit == null) {
					hsplit = new Cursor(XplatUI.DefineStdCursor(StdCursor.HSplit));
					hsplit.name = "HSplit";
				}
				return hsplit;
			}
		}

		public static Cursor IBeam {
			get {
				if (ibeam == null) {
					ibeam = new Cursor(XplatUI.DefineStdCursor(StdCursor.IBeam));
					ibeam.name = "IBeam";
				}
				return ibeam;
			}
		}

		public static Cursor No {
			get {
				if (no == null) {
					no = new Cursor(XplatUI.DefineStdCursor(StdCursor.No));
					no.name = "No";
				}
				return no;
			}
		}

		public static Cursor NoMove2D {
			get {
				if (no_move_2d == null) {
					no_move_2d = new Cursor(XplatUI.DefineStdCursor(StdCursor.NoMove2D));
					no_move_2d.name = "NoMove2D";
				}
				return no_move_2d;
			}
		}

		public static Cursor NoMoveHoriz {
			get {
				if (no_move_horiz == null) {
					no_move_horiz = new Cursor(XplatUI.DefineStdCursor(StdCursor.NoMoveHoriz));
					no_move_horiz.name = "NoMoveHoriz";
				}
				return no_move_horiz;
			}
		}

		public static Cursor NoMoveVert {
			get {
				if (no_move_vert == null) {
					no_move_vert = new Cursor(XplatUI.DefineStdCursor(StdCursor.NoMoveVert));
					no_move_vert.name = "NoMoveVert";
				}
				return no_move_vert;
			}
		}

		public static Cursor PanEast {
			get {
				if (pan_east == null) {
					pan_east = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanEast));
					pan_east.name = "PanEast";
				}
				return pan_east;
			}
		}




		public static Cursor PanNE {
			get {
				if (pan_ne == null) {
					pan_ne = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanNE));
					pan_ne.name = "PanNE";
				}
				return pan_ne;
			}
		}


		public static Cursor PanNorth {
			get {
				if (pan_north == null) {
					pan_north = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanNorth));
					pan_north.name = "PanNorth";
				}
				return pan_north;
			}
		}

		public static Cursor PanNW {
			get {
				if (pan_nw == null) {
					pan_nw = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanNW));
					pan_nw.name = "PanNW";
				}
				return pan_nw;
			}
		}

		public static Cursor PanSE {
			get {
				if (pan_se == null) {
					pan_se = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanSE));
					pan_se.name = "PanSE";
				}
				return pan_se;
			}
		}

		public static Cursor PanSouth {
			get {
				if (pan_south == null) {
					pan_south = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanSouth));
					pan_south.name = "PanSouth";
				}
				return pan_south;
			}
		}

		public static Cursor PanSW {
			get {
				if (pan_sw == null) {
					pan_sw = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanSW));
					pan_sw.name = "PanSW";
				}
				return pan_sw;
			}
		}

		public static Cursor PanWest {
			get {
				if (pan_west == null) {
					pan_west = new Cursor(XplatUI.DefineStdCursor(StdCursor.PanWest));
					pan_west.name = "PanWest";
				}
				return pan_west;
			}
		}

		public static Cursor SizeAll {
			get {
				if (size_all == null) {
					size_all = new Cursor(XplatUI.DefineStdCursor(StdCursor.SizeAll));
					size_all.name = "SizeAll";
				}
				return size_all;
			}
		}

		public static Cursor SizeNESW {
			get {
				if (size_nesw == null) {
					size_nesw = new Cursor(XplatUI.DefineStdCursor(StdCursor.SizeNESW));
					size_nesw.name = "SizeNESW";
				}
				return size_nesw;
			}
		}

		public static Cursor SizeNS {
			get {
				if (size_ns == null) {
					size_ns = new Cursor(XplatUI.DefineStdCursor(StdCursor.SizeNS));
					size_ns.name = "SizeNS";
				}
				return size_ns;
			}
		}

		public static Cursor SizeNWSE {
			get {
				if (size_nwse == null) {
					size_nwse = new Cursor(XplatUI.DefineStdCursor(StdCursor.SizeNWSE));
					size_nwse.name = "SizeNWSE";
				}
				return size_nwse;
			}
		}

		public static Cursor SizeWE {
			get {
				if (size_we == null) {
					size_we = new Cursor(XplatUI.DefineStdCursor(StdCursor.SizeWE));
					size_we.name = "SizeWE";
				}
				return size_we;
			}
		}

		public static Cursor UpArrow {
			get {
				if (up_arrow == null) {
					up_arrow = new Cursor(XplatUI.DefineStdCursor(StdCursor.UpArrow));
					up_arrow.name = "UpArrow";
				}
				return up_arrow;
			}
		}

		public static Cursor VSplit {
			get {
				if (vsplit == null) {
					vsplit = new Cursor(XplatUI.DefineStdCursor(StdCursor.VSplit));
					vsplit.name = "VSplit";
				}
				return vsplit;
			}
		}

		public static Cursor WaitCursor {
			get {
				if (wait_cursor == null) {
					wait_cursor = new Cursor(XplatUI.DefineStdCursor(StdCursor.WaitCursor));
					wait_cursor.name = "WaitCursor";
				}
				return wait_cursor;
			}
		}
		#endregion	// Public Static Properties
	}
}