aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-23 02:23:24 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-23 02:23:24 +0100
commitd396c47e492aa7badcfefba41c36c516558fb1ec (patch)
treeb8a6b6f68313aa9ac9bf7bb10c1004df7489e633 /Samples/common
parentdbb9034d864fc42f92a66b08a0734edc3dc73e8c (diff)
save commit, Drawing2D shared lib
Diffstat (limited to 'Samples/common')
-rw-r--r--Samples/common/src/Editor.cs6
-rw-r--r--Samples/common/src/SampleBase.cs4
-rw-r--r--Samples/common/src/TestWidget.cs4
3 files changed, 8 insertions, 6 deletions
diff --git a/Samples/common/src/Editor.cs b/Samples/common/src/Editor.cs
index 90335d83..0de7af55 100644
--- a/Samples/common/src/Editor.cs
+++ b/Samples/common/src/Editor.cs
@@ -6,13 +6,15 @@ using System;
using Glfw;
using Crow.Text;
using System.Collections.Generic;
-using Crow.Drawing;
+
using System.Threading.Tasks;
using System.Linq;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Collections;
+using Drawing2D;
+
namespace Crow
{
public class Editor : TextBox {
@@ -293,7 +295,7 @@ namespace Crow
base.onKeyDown(sender, e);
}
- protected override void drawContent (Context gr) {
+ protected override void drawContent (IContext gr) {
try {
lock(TokenMutex) {
if (source == null || source.Tokens.Length == 0) {
diff --git a/Samples/common/src/SampleBase.cs b/Samples/common/src/SampleBase.cs
index 91b787fb..6d06dba4 100644
--- a/Samples/common/src/SampleBase.cs
+++ b/Samples/common/src/SampleBase.cs
@@ -10,7 +10,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
-using Crow.Drawing;
+
using System.Diagnostics;
namespace Samples
@@ -390,7 +390,7 @@ namespace Samples
initCommands();
base.OnInitialized();
}
- protected override void processDrawing(Context ctx)
+ protected override void processDrawing(IContext ctx)
{
base.processDrawing(ctx);
}
diff --git a/Samples/common/src/TestWidget.cs b/Samples/common/src/TestWidget.cs
index bf2f6bd0..40970d80 100644
--- a/Samples/common/src/TestWidget.cs
+++ b/Samples/common/src/TestWidget.cs
@@ -1,11 +1,11 @@
//Tutorial
using Crow;
-using Crow.Drawing;
+
using Glfw;
namespace TestWidget {
public class TestWidget : Widget {
- protected override void onDraw (Context gr) {
+ protected override void onDraw (IContext gr) {
base.onDraw (gr);
gr.SetSource (myColor);
gr.Rectangle (ClientRectangle);