diff options
Diffstat (limited to 'Drawing2D')
| -rw-r--r-- | Drawing2D/Drawing2D.csproj | 1 | ||||
| -rw-r--r-- | Drawing2D/src/IMLAttributes.cs | 27 | ||||
| -rw-r--r-- | Drawing2D/src/Style.cs | 28 |
3 files changed, 56 insertions, 0 deletions
diff --git a/Drawing2D/Drawing2D.csproj b/Drawing2D/Drawing2D.csproj index 72123f26..d1c3f10f 100644 --- a/Drawing2D/Drawing2D.csproj +++ b/Drawing2D/Drawing2D.csproj @@ -10,6 +10,7 @@ <Title>Drawing 2D Library</Title> <Description> 2d shapes and drawing interfaces used in C.R.O.W and Vke.net. + Contains also most used crow basic object for sharing across load contexts. </Description> <License>MIT</License> <Authors>Jean-Philippe Bruyère</Authors> diff --git a/Drawing2D/src/IMLAttributes.cs b/Drawing2D/src/IMLAttributes.cs new file mode 100644 index 00000000..9a6d7dfb --- /dev/null +++ b/Drawing2D/src/IMLAttributes.cs @@ -0,0 +1,27 @@ +// Copyright (c) 2013-2020 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) + +using System; + +namespace Crow +{ + public class XmlIgnoreAttribute : Attribute + { + } + + public class DesignIgnore : Attribute + { + } + + public class DesignCategory : Attribute + { + public string Name { get; set; } + + public DesignCategory (string name) + { + Name = name; + } + } +} + diff --git a/Drawing2D/src/Style.cs b/Drawing2D/src/Style.cs new file mode 100644 index 00000000..3feab7c6 --- /dev/null +++ b/Drawing2D/src/Style.cs @@ -0,0 +1,28 @@ +// Copyright (c) 2013-2025 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) + +using System; +using System.Collections.Generic; + +namespace Crow +{ + public struct FileLocation { + public string FilePath; + public int Line; + public int Column; + public int Length; + + public FileLocation(string filePath, int line, int column, int length = 0){ + FilePath = filePath; + Line = line; + Column = column; + Length = length; + } + public override string ToString () + { + return string.Format ("{0} ({1},{2})", FilePath, Line, Column); + } + } +} + |