// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; namespace osu.Framework.Graphics.Shapes { /// /// A simple rectangular box. Can be colored using the property. /// public class Box : Sprite { public Box() { base.Texture = Texture.WhitePixel; } public override Texture Texture { get => base.Texture; set => throw new InvalidOperationException($"The texture of a {nameof(Box)} cannot be set."); } } }