aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Group.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-03-05 10:44:15 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-03-05 10:44:15 +0100
commit3d9e22120b40a0a4eb470bc6ceb3de8879f74c8d (patch)
treef7de48e66b09ad9427faa155be1829347b46f8b7 /src/GraphicObjects/Group.cs
parentb7e8ad35f6f8ce7db30f9dde5cd2628c82f34f8b (diff)
split update registration and user
Diffstat (limited to 'src/GraphicObjects/Group.cs')
-rw-r--r--src/GraphicObjects/Group.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs
index 869ec113..3b2c1380 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.RegisterForLayouting (LayoutingType.X | LayoutingType.Width);
+ c.EnqueueForLayouting (LayoutingType.X | LayoutingType.Width);
}
break;
case LayoutingType.Height:
foreach (GraphicObject c in Children) {
if (!c.Visible)
continue;
- c.RegisterForLayouting (LayoutingType.Y | LayoutingType.Height); }
+ c.EnqueueForLayouting (LayoutingType.Y | LayoutingType.Height); }
break;
}
}
@@ -182,14 +182,14 @@ namespace Crow
maxChildrenWidth = g.Slot.Width;
largestChild = g;
if (this.Bounds.Width < 0)
- this.RegisterForLayouting (LayoutingType.Width);
+ this.EnqueueForLayouting (LayoutingType.Width);
} else if (g == largestChild) {
largestChild = null;
maxChildrenWidth = 0;
if (this.Bounds.Width < 0)
- this.RegisterForLayouting (LayoutingType.Width);
+ this.EnqueueForLayouting (LayoutingType.Width);
}
break;
case LayoutingType.Height:
@@ -197,14 +197,14 @@ namespace Crow
maxChildrenHeight = g.Slot.Height;
tallestChild = g;
if (this.Bounds.Height < 0)
- this.RegisterForLayouting (LayoutingType.Height);
+ this.EnqueueForLayouting (LayoutingType.Height);
} else if (g == tallestChild) {
tallestChild = null;
maxChildrenHeight = 0;
if (this.Bounds.Height < 0)
- this.RegisterForLayouting (LayoutingType.Height);
+ this.EnqueueForLayouting (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].RegisteredLayoutings.HasFlag (LayoutingType.Width))
+ if (children [i].QueuedLayoutings.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].RegisteredLayoutings.HasFlag (LayoutingType.Height))
+ if (children [i].QueuedLayoutings.HasFlag (LayoutingType.Height))
continue;
if (Children [i].Slot.Height > maxChildrenHeight) {
maxChildrenHeight = Children [i].Slot.Height;