diff options
Diffstat (limited to 'Samples')
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/DbgEventWidget.cs | 4 | ||||
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/DbgLogViewer.cs | 4 | ||||
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/DebugInterface.cs | 4 | ||||
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs | 4 | ||||
| -rw-r--r-- | Samples/PathPainter/Painter.cs | 6 | ||||
| -rw-r--r-- | Samples/common/Editor.cs | 4 | ||||
| -rw-r--r-- | Samples/dragNdrop/dragNdrop.cs | 11 |
7 files changed, 33 insertions, 4 deletions
diff --git a/Samples/DebugLogAnalyzer/src/DbgEventWidget.cs b/Samples/DebugLogAnalyzer/src/DbgEventWidget.cs index 6af3f6df..51ce140e 100644 --- a/Samples/DebugLogAnalyzer/src/DbgEventWidget.cs +++ b/Samples/DebugLogAnalyzer/src/DbgEventWidget.cs @@ -4,7 +4,11 @@ using System; using System.Collections.Generic; using System.ComponentModel; +#if VKVG +using vkvg; +#else using Crow.Cairo; +#endif using Crow.DebugLogger; using DebugLogAnalyzer; diff --git a/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs b/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs index d39cc62a..ddbb9183 100644 --- a/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs +++ b/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs @@ -10,7 +10,11 @@ using System.ComponentModel; using System.IO; using System.Linq; using System.Threading.Tasks; +#if VKVG +using vkvg; +#else using Crow.Cairo; +#endif using Crow.DebugLogger; using DebugLogAnalyzer; diff --git a/Samples/DebugLogAnalyzer/src/DebugInterface.cs b/Samples/DebugLogAnalyzer/src/DebugInterface.cs index 26a1eddf..f29da259 100644 --- a/Samples/DebugLogAnalyzer/src/DebugInterface.cs +++ b/Samples/DebugLogAnalyzer/src/DebugInterface.cs @@ -3,7 +3,11 @@ // This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) using System; +#if VKVG +using vkvg; +#else using Crow.Cairo; +#endif using System.Threading; namespace Crow diff --git a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs index c8b27d7d..9ac6a63c 100644 --- a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs +++ b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs @@ -7,7 +7,11 @@ using Glfw; using System.Reflection; using System.Runtime.Loader; using System.IO; +#if VKVG +using vkvg; +#else using Crow.Cairo; +#endif using System.Diagnostics; using System.Collections.Generic; using Crow.DebugLogger; diff --git a/Samples/PathPainter/Painter.cs b/Samples/PathPainter/Painter.cs index 7e3c97bb..2f7f4c81 100644 --- a/Samples/PathPainter/Painter.cs +++ b/Samples/PathPainter/Painter.cs @@ -1,4 +1,8 @@ -using Crow.Cairo; +#if VKVG +using vkvg; +#else +using Crow.Cairo; +#endif using System; using System.Collections; using System.Collections.Generic; diff --git a/Samples/common/Editor.cs b/Samples/common/Editor.cs index 95de4569..be8dfcdb 100644 --- a/Samples/common/Editor.cs +++ b/Samples/common/Editor.cs @@ -8,7 +8,11 @@ using System; using Glfw; using Crow.Text; using System.Collections.Generic; +#if VKVG +using vkvg; +#else using Crow.Cairo; +#endif using System.Threading.Tasks; using System.Linq; diff --git a/Samples/dragNdrop/dragNdrop.cs b/Samples/dragNdrop/dragNdrop.cs index 2ca41357..9f62ec7f 100644 --- a/Samples/dragNdrop/dragNdrop.cs +++ b/Samples/dragNdrop/dragNdrop.cs @@ -1,4 +1,9 @@ -using Crow; +#if VKVG +using vkvg; +#else +using Crow.Cairo; +#endif + namespace tests { @@ -28,9 +33,9 @@ namespace tests Rectangle r = e.DragSource.LastPaintedSlot; startGroup = e.DragSource.Parent as Group; - Crow.Cairo.Surface dragImg = surf.CreateSimilar (Crow.Cairo.Content.ColorAlpha, + Surface dragImg = surf.CreateSimilar (Content.ColorAlpha, r.Width, r.Height); - using (Crow.Cairo.Context gr = new Crow.Cairo.Context(dragImg)) { + using (Context gr = new Context(dragImg)) { gr.SetSource (e.DragSource.bmp, 0, 0); gr.Paint (); } |