1 // =================================
 2 // Copyright (c) 2024 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 using System;
 7 
 8 namespace System.Windows
 9 {
10     public class GraphicsObject
11     {
12         public GraphicsObject() : errorId(0)
13         {
14         }
15         public virtual default ~GraphicsObject();
16         public inline bool Error() const
17         {
18             return errorId != 0;
19         }
20         public inline int GetErrorId() const
21         {
22             return errorId;
23         }
24         public void SetErrorId(int errorId_)
25         {
26             errorId = errorId_;
27         }
28         public void ResetErrorId()
29         {
30             errorId = 0;
31         }
32         private int errorId;
33     }
34 }