Skip to content

Commit

Permalink
Add InternalChild correspondingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyaoyuan committed Jun 30, 2017
1 parent 9fc008d commit fbafffa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions osu.Framework/Graphics/Containers/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,22 @@ public T Child
}
}

/// <summary>
/// Gets or sets the only child in <see cref="InternalChildren"/>.
/// </summary>
public Drawable InternalChild
{
get
{
return InternalChildren.Single();
}
set
{
ClearInternal();
AddInternal(value);
}
}

private readonly LifetimeList<Drawable> internalChildren;
private readonly IReadOnlyList<T> internalChildrenAsT;

Expand Down

0 comments on commit fbafffa

Please sign in to comment.