diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 10:44:15 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 10:44:15 +0100 |
| commit | 3d9e22120b40a0a4eb470bc6ceb3de8879f74c8d (patch) | |
| tree | f7de48e66b09ad9427faa155be1829347b46f8b7 /UnitTest | |
| parent | b7e8ad35f6f8ce7db30f9dde5cd2628c82f34f8b (diff) | |
split update registration and user
Diffstat (limited to 'UnitTest')
| -rw-r--r-- | UnitTest/NUnitCrowWindow.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/UnitTest/NUnitCrowWindow.cs b/UnitTest/NUnitCrowWindow.cs index 961001e7..0a4a9edc 100644 --- a/UnitTest/NUnitCrowWindow.cs +++ b/UnitTest/NUnitCrowWindow.cs @@ -75,7 +75,7 @@ namespace Crow { GraphicObjects.Remove(g); GraphicObjects.Insert(0, g); - g.RegisterForRedraw (); + g.AddToRedrawList (); } } public void Quit () @@ -153,8 +153,8 @@ namespace Crow //Debug.WriteLine ("======= Layouting queue start ======="); - while (Interface.LayoutingQueue.Count > 0) { - LayoutingQueueItem lqi = Interface.LayoutingQueue.Dequeue (); + while (Interface.CurrentInterface.LayoutingQueue.Count > 0) { + LayoutingQueueItem lqi = Interface.CurrentInterface.LayoutingQueue.Dequeue (); lqi.ProcessLayouting (); } @@ -167,7 +167,7 @@ namespace Crow gobjsToRedraw.CopyTo (gotr); gobjsToRedraw.Clear (); foreach (GraphicObject p in gotr) { - p.IsQueuedForRedraw = false; + p.IsInRedrawList = false; p.Parent.RegisterClip (p.LastPaintedSlot); p.Parent.RegisterClip (p.getSlot()); } @@ -430,7 +430,7 @@ namespace Crow public void RegisterClip(Rectangle r){ clipping.AddRectangle (r); } - public void RegisterForLayouting (LayoutingType layoutType) + public void EnqueueForLayouting (LayoutingType layoutType) { throw new NotImplementedException (); } @@ -446,11 +446,11 @@ namespace Crow get { return null; } set { throw new NotImplementedException (); } } - public LayoutingType RegisteredLayoutings { + public LayoutingType QueuedLayoutings { get { return LayoutingType.None; } set { throw new NotImplementedException (); } } - public void RegisterForLayouting (int layoutType) { throw new NotImplementedException (); } + public void EnqueueForLayouting (int layoutType) { throw new NotImplementedException (); } public bool UpdateLayout (LayoutingType layoutType) { throw new NotImplementedException (); } public Rectangle ContextCoordinates (Rectangle r) => r; public Rectangle ScreenCoordinates (Rectangle r) => r; |