// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using JetBrains.Annotations; using osu.Framework.Lists; namespace osu.Framework.Graphics.Containers { /// /// A wrapper for the content of a that provides notifications when elements are changed. /// public class GridContainerContent : ObservableArray> { private GridContainerContent([NotNull] Drawable[][] drawables) : base(new ObservableArray[drawables.Length]) { for (int i = 0; i < drawables.Length; i++) { if (drawables[i] != null) { var observableArray = new ObservableArray(drawables[i]); this[i] = observableArray; } } } public static implicit operator GridContainerContent(Drawable[][] drawables) { if (drawables == null) return null; return new GridContainerContent(drawables); } } }