This should fix #76928. This fix incorporates ideas from a patch
[mono.git] / mcs / class / Mono.Cairo / Mono.Cairo / Status.cs
1 //
2 // Mono.Cairo.Status.cs
3 //
4 // Authors:
5 //   Duncan Mak (duncan@ximian.com)
6 //   Hisham Mardam Bey (hisham.mardambey@gmail.com)
7 //   John Luke (john.luke@gmail.com)
8 //
9 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 // Copyright (C) 2005 John Luke
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 using System;
33
34 namespace Cairo
35 {
36         [Serializable]
37         public enum Status
38         {
39                 Success = 0,
40                 NoMemory,
41                 InvalidRestore,
42                 InvalidPopGroup,
43                 NoCurrentPoint,
44                 InvalidMatrix,
45                 InvalidStatus,
46                 NullPointer,
47                 InvalidString,
48                 InvalidPathData,
49                 ReadError,
50                 WriteError,
51                 SurfaceFinished,
52                 SurfaceTypeMismatch,
53                 PatternTypeMismatch,
54                 InvalidContent,
55                 InvalidFormat,
56                 InvalidVisual,
57                 FileNotFound,
58                 InvalidDash
59         }
60 }