// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; namespace osu.Framework.Graphics { /// /// Holds extension methods for . /// public static class DrawableExtensions { /// /// Adjusts specified properties of a . /// /// The whose properties should be adjusted. /// The adjustment function. /// The given . public static T With(this T drawable, Action adjustment) where T : Drawable { adjustment?.Invoke(drawable); return drawable; } } }