aboutsummaryrefslogtreecommitdiffstatsci
path: root/Drawing2D/src/Style.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2025-03-04 13:26:18 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2025-03-04 13:26:18 +0100
commit8970e6cecac4f7fb9eead2ae26d0a996c46d1590 (patch)
tree381e659484e552b507b055a43bde8c96014d6f84 /Drawing2D/src/Style.cs
parent375445c6338075b80a79b9146c86778fe6d312d2 (diff)
color picker, wipdev
Diffstat (limited to 'Drawing2D/src/Style.cs')
-rw-r--r--Drawing2D/src/Style.cs28
1 files changed, 28 insertions, 0 deletions
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);
+ }
+ }
+}
+