diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 20:41:26 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 20:41:26 +0100 |
| commit | 63e3afd99db6ec60e28c12c49c8d0ae9b5d7bd7b (patch) | |
| tree | 8fe8d583cc08b795304d8e918f04611747c8885e /src/GraphicObjects/Group.cs | |
| parent | 3d9e22120b40a0a4eb470bc6ceb3de8879f74c8d (diff) | |
remove double buffered LayoutingQueue,use dirtyBmp for gl rendering
Diffstat (limited to 'src/GraphicObjects/Group.cs')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index 3b2c1380..869ec113 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -162,14 +162,14 @@ namespace Crow foreach (GraphicObject c in Children) { if (!c.Visible) continue; - c.EnqueueForLayouting (LayoutingType.X | LayoutingType.Width); + c.RegisterForLayouting (LayoutingType.X | LayoutingType.Width); } break; case LayoutingType.Height: foreach (GraphicObject c in Children) { if (!c.Visible) continue; - c.EnqueueForLayouting (LayoutingType.Y | LayoutingType.Height); } + c.RegisterForLayouting (LayoutingType.Y | LayoutingType.Height); } break; } } @@ -182,14 +182,14 @@ namespace Crow maxChildrenWidth = g.Slot.Width; largestChild = g; if (this.Bounds.Width < 0) - this.EnqueueForLayouting (LayoutingType.Width); + this.RegisterForLayouting (LayoutingType.Width); } else if (g == largestChild) { largestChild = null; maxChildrenWidth = 0; if (this.Bounds.Width < 0) - this.EnqueueForLayouting (LayoutingType.Width); + this.RegisterForLayouting (LayoutingType.Width); } break; case LayoutingType.Height: @@ -197,14 +197,14 @@ namespace Crow maxChildrenHeight = g.Slot.Height; tallestChild = g; if (this.Bounds.Height < 0) - this.EnqueueForLayouting (LayoutingType.Height); + this.RegisterForLayouting (LayoutingType.Height); } else if (g == tallestChild) { tallestChild = null; maxChildrenHeight = 0; if (this.Bounds.Height < 0) - this.EnqueueForLayouting (LayoutingType.Height); + this.RegisterForLayouting (LayoutingType.Height); } break; } @@ -226,7 +226,7 @@ namespace Crow for (int i = 0; i < Children.Count; i++) { if (!Children [i].Visible) continue; - if (children [i].QueuedLayoutings.HasFlag (LayoutingType.Width)) + if (children [i].RegisteredLayoutings.HasFlag (LayoutingType.Width)) continue; if (Children [i].Slot.Width > maxChildrenWidth) { maxChildrenWidth = Children [i].Slot.Width; @@ -243,7 +243,7 @@ namespace Crow for (int i = 0; i < Children.Count; i++) { if (!Children [i].Visible) continue; - if (children [i].QueuedLayoutings.HasFlag (LayoutingType.Height)) + if (children [i].RegisteredLayoutings.HasFlag (LayoutingType.Height)) continue; if (Children [i].Slot.Height > maxChildrenHeight) { maxChildrenHeight = Children [i].Slot.Height; |