A game framework written with osu! in mind.
at master 21 lines 747 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using osu.Framework.Graphics; 5 6namespace osu.Framework.Bindables 7{ 8 /// <summary> 9 /// A subclass of <see cref="Bindable{MarginPadding}"/> specifically for representing the "safe areas" of a device. 10 /// It exists to prevent regular <see cref="MarginPadding"/>s from being globally cached. 11 /// </summary> 12 public class BindableSafeArea : Bindable<MarginPadding> 13 { 14 public BindableSafeArea(MarginPadding value = default) 15 : base(value) 16 { 17 } 18 19 protected override Bindable<MarginPadding> CreateInstance() => new BindableSafeArea(); 20 } 21}