| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 80 00 00 00 80 08 03 00 00 00 f4 e0 91 | .PNG........IHDR................ |
| 0020 | f9 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 09 70 48 59 73 00 00 03 84 00 00 03 84 | .....sBIT.....O.....pHYs........ |
| 0040 | 01 03 05 b9 e1 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 61 | .........tEXtSoftware.www.inksca |
| 0060 | 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 02 55 50 4c 54 45 ff ff ff 66 c2 ad d6 b8 52 e0 7a 70 eb cc | pe.org..<....UPLTE...f....R.zp.. |
| 0080 | 7a 5e bd b3 d9 b3 55 e3 71 71 ec d0 7b 5e bb b3 d5 b3 55 e6 77 6f ee cc 77 60 bf af d7 af 58 e7 | z^....U.qq..{^....U.wo..w`....X. |
| 00a0 | 78 70 ef cf 78 5f bd af db b6 57 e2 75 6d f0 cc 7c 60 c1 ac d6 b3 53 e3 75 6e f1 cf 7c 60 bf ac | xp..x_....W.um..|`....S.un..|`.. |
| 00c0 | d9 b3 53 e6 79 6c ec cc 79 5f be b2 d5 b2 53 e7 77 6b ed d0 7d 60 c1 b0 d7 b5 55 e3 77 6c ee d2 | ..S.yl..y_....S.wk..}`....U.wl.. |
| 00e0 | 7d 60 bf af d5 b5 55 e4 75 70 ef cf 7a 37 a0 8c 5f be af cd 50 46 d7 b4 55 e6 78 6e f0 cd 7d 39 | }`....U.up..z7.._...PF..U.xn..}9 |
| 0100 | a1 8e 63 bd af cb 50 42 d9 b3 55 e3 76 6d f1 d0 7b 39 a3 8d 61 bd b0 ca 4f 42 d7 b4 54 e5 77 6e | ..c...PB..U.vm..{9..a...OB..T.wn |
| 0120 | ed cf 7b 36 a3 8e 60 c0 b0 cd 4f 43 d5 b4 54 e6 75 6d ee d1 79 3c b3 9f e3 58 4c ef c7 60 62 be | ..{6..`...OC..T.um..y<...XL..`b. |
| 0140 | af d7 b2 54 e5 77 6c ef d0 7a d8 b4 54 61 be af e6 75 6d f0 cf 7a 61 c0 af d7 b2 53 e4 76 6c ee | ...T.wl..z..Ta...um..za....S.vl. |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Media;
namespace Tango.Scripting.Editors.Rendering
{
/// <summary>
/// Base class for known layers.
/// </summary>
class Layer : UIElement
{
protected readonly TextView textView;
protected readonly KnownLayer knownLayer;
public Layer(TextView textView, KnownLayer knownLayer)
{
Debug.Assert(textView != null);
this.textView = textView;
this.knownLayer = knownLayer;
this.Focusable = false;
}
protected override GeometryHitTestResult HitTestCore(GeometryHitTestParameters hitTestParameters)
{
return null;
}
protected override HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
{
return null;
}
protected override void OnRender(DrawingContext drawingContext)
{
base.OnRender(drawingContext);
textView.RenderBackground(drawingContext, knownLayer);
}
}
}